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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.6mWindows x86-64

vpython-2.0.7-cp36-cp36m-win32.whl (2.5 MB view details)

Uploaded CPython 3.6mWindows x86

vpython-2.0.7-cp36-cp36m-macosx_10_7_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5mmacOS 10.7+ x86-64

vpython-2.0.7-cp27-cp27m-win_amd64.whl (2.5 MB view details)

Uploaded CPython 2.7mWindows x86-64

vpython-2.0.7-cp27-cp27m-win32.whl (2.5 MB view details)

Uploaded CPython 2.7mWindows x86

vpython-2.0.7-cp27-cp27m-macosx_10_6_x86_64.whl (2.5 MB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

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

File hashes

Hashes for vpython-2.0.7.tar.gz
Algorithm Hash digest
SHA256 736c1f684fb0f83d4ab846a58c07c379c2f80f08423ba0b0ad1bd99a37025bfc
MD5 6b7eb6c35cd67eecc0dd8d1f80a53575
BLAKE2b-256 e47832675ce58e120e631000d8c0ce79d8e0928457e80d21bf4f2333bbe4687f

See more details on using hashes here.

File details

Details for the file vpython-2.0.7-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-2.0.7-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 eed582324d813d7b470bc5b9ec215d14d1f37df9518f0af4ebe1f340143f30e6
MD5 a420f26099de494dca6205d11234e64e
BLAKE2b-256 b81cb0c536c60cab9b34f923eb09b0c9b77f7199f1c57af01ce63ed8e7938897

See more details on using hashes here.

File details

Details for the file vpython-2.0.7-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for vpython-2.0.7-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 b73dbdacf84b43fa4f4392c026304fadb6aea127499052403851c85189b6d141
MD5 74fbe90a4b544611eb45ecd1ad9b1cb5
BLAKE2b-256 b789130c25a15fe3f35200f8cfefc9b39ade5bfb3f06e0cd4d79c76ac108b184

See more details on using hashes here.

File details

Details for the file vpython-2.0.7-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for vpython-2.0.7-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 746cdd909b36307e452bbed162c5a130753c96184d5aff3cbfe02ca37394adee
MD5 e476cf0a232ea7343691739c8d280b5b
BLAKE2b-256 b6204ac4ffce24a46c2ec70a4224bee15e746af532fe95c20edea2eee4412355

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.7-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 5c00236c647c697ddc06dcdf004ea05b66a527bd47a68770262498f4a2868821
MD5 58d1bb41aa36c38dc6717572a18e5f11
BLAKE2b-256 850fe8bdd1263cf1815839e41849a8571932df20c3512c7bc722218830a7c0fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.7-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 9f9bebc3d809d5240c858b4941924e80098ecf3320d13ef6017656acb87c1a52
MD5 e88398421b8a8c9cf57224100599d96d
BLAKE2b-256 137ac8772d2cdeac0f07cc0032aae81ac51f8d118cb9f152ade2af7af923b6bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.7-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 4f10406219d9ee3495ff920d809d85f0a34ee6003e0c27c3c9b2b1f42926c60a
MD5 1c2764e6e1af1dd46fb2eba510b5ed3b
BLAKE2b-256 8f1b1c3850f5ebb27db95510e4f6ed2b41b2a787c764f1408291993f21191d36

See more details on using hashes here.

File details

Details for the file vpython-2.0.7-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-2.0.7-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 75ed5377e316a00934829e4bf79041c05700a8c31376f8770d2f60f9877dd7d4
MD5 81a47817bb714fe1637e3159d1658671
BLAKE2b-256 a0b8814b568d4815998ebfdce0a32104db950fe5d27ee704581790be614a5210

See more details on using hashes here.

File details

Details for the file vpython-2.0.7-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for vpython-2.0.7-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 20b95a319f4f10686af36d72e4d9fe08943070b091bbd69fd87bc04a2335263f
MD5 ed225d43ea1f9ae447a9ad2d2623ea31
BLAKE2b-256 dc084c8b4cd2a74fffdaafd25ec842e15881a2430deecc5e9860a85ed4832c63

See more details on using hashes here.

File details

Details for the file vpython-2.0.7-cp27-cp27m-macosx_10_6_x86_64.whl.

File metadata

File hashes

Hashes for vpython-2.0.7-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 50f9c8aeb7c30e0c436ba6a68a037e769d413b7db02424ce7aba597c5cc2f5a7
MD5 dd6d080db42341e7a9fb5c9fd30864d0
BLAKE2b-256 fa711bb5b124744390098011df09c6e52fe7fe46b00e3a5147a5d1067b6347f7

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