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
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 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
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 =
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
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
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
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
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
>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
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
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
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
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
14 matches
Mail list logo