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.1.tar.gz (2.5 MB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

vpython-2.0.1-cp35-cp35m-macosx_10_6_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.5m macOS 10.6+ x86-64

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

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

Uploaded CPython 3.4m macOS 10.6+ x86-64

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

Uploaded CPython 2.7m macOS 10.7+ x86-64

File details

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

File metadata

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

File hashes

Hashes for vpython-2.0.1.tar.gz
Algorithm Hash digest
SHA256 1ca3c2caab38ad2c43fcb046b86c9f3f043e93fe2778e319fc13d1a1cfdc9458
MD5 d3bd399ae12421bfa1017c8fac670174
BLAKE2b-256 8eb36874bd45cd9f6e490f6eb5672d7df65ccc240b9385c52dec6fd56ca1ef05

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-2.0.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 d6ec7ab5e3c1fa1e02c061acfe733622336f0c611d642b733310280fa82e4266
MD5 67d719ceebe2468653d80e4ea9c5bc82
BLAKE2b-256 8bae39483d91b518d217c926e3a7b828776456ffebf634376058adbab579f212

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-2.0.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 89e36e8f5249ab2af50f59f1a2404ce9fd7ef7960ad89449e6b835f9cd98fa97
MD5 0d64d3b0e9883cdf474295549c2caa81
BLAKE2b-256 6bb4f63084065e9d52d76cea769e3058be8ea8126643d62555e7f206e2d299ff

See more details on using hashes here.

Provenance

File details

Details for the file vpython-2.0.1-cp35-cp35m-macosx_10_6_x86_64.whl.

File metadata

File hashes

Hashes for vpython-2.0.1-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 e36bae52d6aa51ffe89ca611f91974b8e965f9f1ed611f9558b85327068bc95f
MD5 98fcc9a65b1a8ea95ac4a55bbf0cb504
BLAKE2b-256 4fdbd6364c809dd245bc2111eee33e9a55294e00d19a93d9dc1635b04d189fbc

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-2.0.1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 10292033bc0df9e7ad56d68e9bffb511cff84a86d8c62f33719c812be258a662
MD5 533f032e56285d3c26aaf6cc8f4c47ff
BLAKE2b-256 9cc6b7927f606b7ebb5de5b7e24eb1d983fd3de7c8c24051653bac81e097e436

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-2.0.1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 415918830dec2a71be59c1a5360991a4883a62afbe2b630ee9d71779fd801009
MD5 d2861d88da66ce07371e42a55dbd69a7
BLAKE2b-256 1e546fa229c988c262b792a5ca0468ffbb3c4b611145e9388a0e159f2f95ce2d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-2.0.1-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 c4ac912e2fde73a900ea4a873954704488510ea5071589d21496e91c12a08aae
MD5 c2396b7e7887d0d5028865dd4340ece8
BLAKE2b-256 c986afc06e3ffe76b387d0669603cb632878aa801802b9fa36bcd0ef141af6da

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-2.0.1-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 14b39756f491f503e2a8dbc30a9a8b072276166843cc04bc9fbe94ad6fc8f8f4
MD5 ff7912ed939f826c3f79eca091ae25f9
BLAKE2b-256 28923d5db41203a2899efdf75471cb55472ebd67c0bc6cc52e5407b30c0361af

See more details on using hashes here.

Provenance

Supported by

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