Skip to main content

VPython for Jupyter Notebook

Project description

# VPython
This package enables one to run VPython in a Jupyter notebook, using the GlowScript VPython API, documented in the Help at http://glowscript.org. VPython makes it unusually easy to create navigable real-time 3D animations. The one-line program "sphere()" produces a 3D sphere with appropriate lighting and with the camera positioned so that the scene fills the view. It also activates mouse interactions to zoom and rotate the camera view. The 3D scene appears in the Jupyter notebook, using the WebGL-based GlowScript 3D graphics library. This implementation of VPython was begun by John Coady in May 2014. Ruth Chabay and Bruce Sherwood are assisting in its further development. The repository for the source code is at https://github.com/BruceSherwood/vpython-jupyter.

For instructions on how to install Jupyter VPython, see http://vpython.org.

Here is a simple example that will run in a Jupyter Notebook cell:

```python
from vpython import *
sphere()
```

This will create a 3D window in the Notebook containing a 3D sphere, with mouse and touch controls available to zoom and rotate the camera:

Right button drag or Ctrl-drag to rotate "camera" to view scene.
To zoom, drag with middle button or Alt/Option depressed, or use scroll wheel.
On a two-button mouse, middle is left + right.
Touch screen: pinch/extend to zoom, swipe or two-finger rotate.

Run example VPython programs: [![Binder](http://mybinder.org/badge.svg)](http://mybinder.org/repo/BruceSherwood/vpython-jupyter)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

vpython-7.0.0b4-cp36-cp36m-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.6mWindows x86-64

vpython-7.0.0b4-cp35-cp35m-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.5mWindows x86-64

File details

Details for the file vpython-7.0.0b4-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 a17931376772d9721a52d2134270a1adc82b4d91b5220edeabdbcc50eba44708
MD5 bafa3a918c667487c02b4f0cce33309b
BLAKE2b-256 d70ce2bd50733bf3c02ef8479893cede6b0428c2bac0df34c99ad51eeaf85c39

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b4-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b4-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 9b800adcb5958269abd767132103c2f555d7cb476d38387309098524c5c526e3
MD5 119e1789740ec3f15b885d30c1f1991b
BLAKE2b-256 ea1887b3d6125106341d010c80bee02b4b7ec78112ad2261b4ec455fecd067ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page