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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

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

Uploaded CPython 2.7mWindows x86-64

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

Uploaded CPython 2.7mWindows x86

File details

Details for the file vpython-7.0.0b2.tar.gz.

File metadata

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

File hashes

Hashes for vpython-7.0.0b2.tar.gz
Algorithm Hash digest
SHA256 4158973a4e5e4f98e7a39f207d4e6f4382d0bde87577e9e39ec3ab84d94b9de8
MD5 413ec71693bd790cd2d5b43e034378dc
BLAKE2b-256 7301b4de1fad763711e59bd66ce213a73d2766c5d5016045018a4fe84d93eb25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d766adf7cd9d0715d608284d04cafe8106f35b30bd4fdb1efdecb6edc8525992
MD5 56cef188c372f93532702274a90aec0c
BLAKE2b-256 e9f9ecbc8d16d7107ade8911f7ce810604315b2787d248cac9233b72d9d72923

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b2-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 81a96c781bc7bfcf3e6cae4011dc1c4c350020ebd5921abffb5a137a163a96bc
MD5 4e18c21f68192f5fed43f3d7a8225a11
BLAKE2b-256 6f61fe68eceb2bddbc37c53453328d3f3ad5587608b02c5b6228f518a9204c40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 751fa2c85ea2e6a6558c1dbfcb8ee24c0c4fcb9c53f0abc0ce3df208635fa609
MD5 6b3919c6a7b48c2d1b1f38ffc4de5f14
BLAKE2b-256 ef7857d4880c7a8579eae5c48dd4ad4c81275bf59e61ad6347a7e0c1b50a3b00

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b2-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d62276cf2022f8a6ab61cdadae924887ea87003aa94dcc38d56620cd73f24a46
MD5 aabc39d21a76d53cd7b243f143d31761
BLAKE2b-256 3ac5baeb9d9c6f174cd227acd10cb246252bfdfceefb33157cd87c23c7931c72

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b2-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b2-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 aa24b0c773a5341eca2de7cfdcfa0722f77626428997f6d583ec81fef1e6b46b
MD5 30438d542330ddd91a8c067d22d9bd88
BLAKE2b-256 28085892389857debe00753e30b1422ecbc3b80a8cdfadbcbaee263a428f5dc8

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b2-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b2-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 edef3230565e26eccc8c31b60ca0b90955b4b88470ef8ebf55dc6903a2febed6
MD5 cf8d12d164307d5d5ecf43829b21a160
BLAKE2b-256 57f7125e6c998584b9e89b98bd7cc4c84eb40dc2d244aece3c1d7bb32c769a51

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b2-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 61bd59acba0a64b46b6f5ca57696333a7f1d9f836258db1dbde17e4063137063
MD5 0adee87f1ace1d3dcb9b514e7a605065
BLAKE2b-256 ea3bebf254af2f8fd99b568a2ddd77f649d4b429e0a2b24ef268a5377478383b

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b2-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b2-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 a12f507255cf4d8a5ac5b40ed28fb467c7f761e2be56a6773b3de6b29b8cc6aa
MD5 93c799754980e714c320e22f0ab58308
BLAKE2b-256 48e6eff3cdc107cf5570e48f439855795f85adc0b57cef7c61b4430b32585c28

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