[jupyter] Jupyter VPython 2.0.2

2017-02-23 Thread Bruce Sherwood
There is a new version 2.0.2 of Jupyter VPython, the 3D graphics module (*pip install vpython* or *pip install vpython --upgrade*; see vpython.org for more details): * It supports extrusion and 3D text objects. * There are important improvements to the way compound objects work. * The axis

Re: [jupyter] Jupyter VPython 2.0.2

2017-02-26 Thread Bruce Sherwood
With crucial help from John Coady, there is a version 2.0.6 that works successfully at mybinder.org: http://mybinder.org/repo/BruceSherwood/vpython-jupyter It lets you run Jupyter VPython programs even on computers or mobile devices that do not have Python installed. *Here is an explanation

[jupyter] Library length limit?

2016-09-05 Thread Bruce Sherwood
Jupyter VPython (pip install vpython; see vpython.org) includes a JavaScript program that invokes the GlowScript WebGL 3D graphics library to display 3D animations in a notebook cell. When that library went from 420 KB to 620 KB there were frequent JavaScript errors in require.js, concerning

Re: [jupyter] Library length limit?

2016-09-06 Thread Bruce Sherwood
It's a good suggestion that this could be a race condition. However, it's then odd that every other execution works. Here is the structure we're using. In the Python portion of the vpython module were these statement (before breaking the glow library into two pieces): package_dir =

Re: [jupyter] Library length limit?

2016-09-06 Thread Bruce Sherwood
A race condition does seem a possible explanation. Thanks for the suggestion. -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[jupyter] Processing mouse events

2016-10-07 Thread Bruce Sherwood
Using the vpython module one can drag an object through a 3D scene. Mouse events are sent regularly from the browser to the server, and I gather they are buffered until the Python program reaches the end of a cell, then all of them are sent. I would like to use only the most recent mouse

Re: [jupyter] A Python module with JavaScript and related components

2016-09-17 Thread Bruce Sherwood
My colleague John Coady found a way to reference the location of nbextensions: from IPython.display import Image from jupyter_core.paths import jupyter_data_dir Image(filename=jupyter_data_dir()+"/nbextensions/images.png") -- You received this message because you are subscribed to the Google

Re: [jupyter] Keyboard input

2016-10-25 Thread Bruce Sherwood
Many thanks! -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [jupyter] Re: Jupyter VPython

2016-12-07 Thread Bruce Sherwood
At the end of the Python program the JavaScript machinery is still active, which is important because it makes it possible to rotate and zoom the camera to examine the 3D scene created by the Python program. Also, there are still messages being sent between the server and the browser. You can

[jupyter] Jupyter VPython for Python 3.6

2017-03-14 Thread Bruce Sherwood
>From Matt Craig: A new release of vpython-jupyter, version 2.0.7, was made over the weekend that fixes some installation issues: - Some Windows users installing with 'pip install vpython' were getting messages that they needed to install a compiler. Binary versions of vpython for

[jupyter] How do communications beetween server and client work in Jupyter?

2017-04-26 Thread Bruce Sherwood
I've previously written here about the vpython module that makes it easy to display program-driven 3D animations in a Jupyter notebook. I'm now trying to extend the vpython module to function if the user is not running in a notebook, in response to requests from users. I detect whether you're

Re: [jupyter] How do communications beetween server and client work in Jupyter?

2017-06-10 Thread Bruce Sherwood
The solution did indeed involve asyncio, thanks to detailed advice from John Coady. The vpython module now (released two days ago) detects whether it is running in a Jupyter notebook or not. When running outside the Jupyter notebook environment it sets up an http server to serve image files (for

[jupyter] Contribute to VPython 7 for Jupyter notebook and Jupyterlab

2019-02-24 Thread Bruce Sherwood
For users of the vpython module ("VPython 7") in Juptyer notebook or (imminently) Jupyterlab: An essential core component of VPython 7 is the GlowScript library that is also used at glowscript.org and trinket.io. The open source code for GlowScript is at

[jupyter] One-click running of complete programs

2019-01-25 Thread Bruce Sherwood
I don't know how general this need is, but I would SO like there to be a single-key short cut for the notebook and lab environments to restart, clear outputs, and run all cells, without interposing a scary dialog box requiring a response. Just hit F5 or some other key and start over. In