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 Distribution

vpython-2.0.5.tar.gz (2.5 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.5mWindows x86-64

vpython-2.0.5-cp35-cp35m-win32.whl (2.5 MB view details)

Uploaded CPython 3.5mWindows x86

vpython-2.0.5-cp35-cp35m-macosx_10_7_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.5mmacOS 10.7+ x86-64

vpython-2.0.5-cp34-cp34m-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.4mWindows x86-64

vpython-2.0.5-cp34-cp34m-win32.whl (2.5 MB view details)

Uploaded CPython 3.4mWindows x86

vpython-2.0.5-cp34-cp34m-macosx_10_6_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.4mmacOS 10.6+ x86-64

vpython-2.0.5-cp27-cp27m-macosx_10_7_x86_64.whl (2.5 MB view details)

Uploaded CPython 2.7mmacOS 10.7+ x86-64

File details

Details for the file vpython-2.0.5.tar.gz.

File metadata

  • Download URL: vpython-2.0.5.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vpython-2.0.5.tar.gz
Algorithm Hash digest
SHA256 46a776e35ec101b01a6e2a53a18d7671ac7043bd899615b3234446caa8231ba3
MD5 12fba9a5c1501c036d96773948936dcb
BLAKE2b-256 5b23a8720f9df6086be727ba90dd7be3703d7306b3c92295e9931ab19cbcdb74

See more details on using hashes here.

File details

Details for the file vpython-2.0.5-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-2.0.5-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 80c771c5a7177ede76ecd4ec4eb146452e5e1b342785eacc4d26e86097840342
MD5 9bf695425c35db30a2180ed6015b521c
BLAKE2b-256 30bc4e33b0a605b1debb5e0e6e6b2a6ca6783f47c44bed5b1ad149d3e088967f

See more details on using hashes here.

File details

Details for the file vpython-2.0.5-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for vpython-2.0.5-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 5c4a2df8f70cf4f3fa7efb2f9a6d2ce61dd18dcc9728fedca5f19dc68341c303
MD5 977e135dccfb3203a8a3f8b6371e3a71
BLAKE2b-256 370c3f2119edb6d1ba6a6cb466e200e9bb14c30a52ce87ca701a2c12219b9047

See more details on using hashes here.

File details

Details for the file vpython-2.0.5-cp35-cp35m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for vpython-2.0.5-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 042da78b39c7d111ba672ad1e0849a19de5ce3ee5a72bcad0eee9048391ce4bc
MD5 22f0919d0b01d80c7146cb765aa62ccb
BLAKE2b-256 9fff5c62658b0b6f0cbeedc4599b4d4f7fbcb9c8fded359a86da107f642e4002

See more details on using hashes here.

File details

Details for the file vpython-2.0.5-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-2.0.5-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 53f9e366b8c36d7ce908fd2f14061914c0281735382f443bf4a0906fc972af94
MD5 b983de8e37b88df9ab5a5911a8b286f3
BLAKE2b-256 edc146d797a3a3ecce1f87c2ccbc9df2d9027777ece8f68353391d309c66b2de

See more details on using hashes here.

File details

Details for the file vpython-2.0.5-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for vpython-2.0.5-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 9f91e3e60f1631024103c855c13147b42db0b0a87c89fac3bdb39c1bc7dcc359
MD5 74365f849cf3ef8bfa17749fa62e4fc0
BLAKE2b-256 f2637b8f282099da75b63a6f44c710249622af7c83f761f23327debbad79b7ff

See more details on using hashes here.

File details

Details for the file vpython-2.0.5-cp34-cp34m-macosx_10_6_x86_64.whl.

File metadata

File hashes

Hashes for vpython-2.0.5-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 8c765eb3ff757077e7ebf21dcfc1b58f79b06020129ed32c75e18993c373ccef
MD5 0bc419fc7d0fee40825884852f781e1d
BLAKE2b-256 c2c3d2d5c4d3f26a4e8466bb39c7df795de9ff1e8f616ab9c0c6a4709ce20ed7

See more details on using hashes here.

File details

Details for the file vpython-2.0.5-cp27-cp27m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for vpython-2.0.5-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 2fd589e67b4efa99cd8bb53d0fa87f367e12e5f0f0026cc4d706e372a1e772ad
MD5 ae92f065fb0f27bc5acd048c6a886002
BLAKE2b-256 192bb1a2445f192fa8b0b5d8f01ea7a90a6ab3626bea1086bd0eca8c01aa6774

See more details on using hashes here.

Supported by

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