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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5mmacOS 10.6+ x86-64

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

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

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

Uploaded CPython 3.4mmacOS 10.6+ x86-64

vpython-2.0.2-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.2.tar.gz.

File metadata

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

File hashes

Hashes for vpython-2.0.2.tar.gz
Algorithm Hash digest
SHA256 049130b82006dfc25b66a05bc8ef60799c83314a18685a9e0215ebd684693714
MD5 6ba2b0a856f83f1d272e5706db658da5
BLAKE2b-256 0b438d7540c51a6bd72196bbc8490c61562cddd02ce543ce1c2b188c5015357a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b975fa5ad2f690359ecf9e70f29ae81959be3799928f4bb27139577abe1de265
MD5 f7abbaad7c5f5b9d230736e67c51c682
BLAKE2b-256 78685f8383c4e424846eedb2f719b079c76e3c37e79896c52b22cb8531ef413f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 7ce9965bba0347665d007477476ec22589462b618433d6248da14a00190f7494
MD5 dd187d7f4c6bf7d94ed05bcd7fcb2458
BLAKE2b-256 69e1f505a6097c9a5cbd7e85845cb506907c2ab7edf47c63dc8c419628a6dbe0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.2-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 8f663f948086ed67e67cd4b739e7c3fa954a18beb4d758f07347fecf5a56e3bc
MD5 990a870d014b8728a7c4895838b60b09
BLAKE2b-256 465e7f8d600e9f0a638bbf73eccf0d65d13c213ea789acf641389ff73605a139

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.2-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 2891de57026a46852e37bca3a46ab32cfb3023b6bb7133eb8b5b80b4feac20a9
MD5 d5af77b4a5258ecc3f7b64baf93710f5
BLAKE2b-256 b81c39402e0e74832659ed078506592eabaa24c3b0b09b7f158c295147332991

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.2-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 f412ce9ad8aff9369fb1449cbc49325d13fc30b4b9df7fe94d1476ea6669a392
MD5 0d0566f4c907fa554d3db138dc2cbe9f
BLAKE2b-256 f488da205d40e6c1a73d3d89b1fa607233512a308e89fd9dd14bff6899f20872

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.2-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 c69d1e31324d5fdfad293c48e23448e21527745171ae4284d409bd50080a9d56
MD5 98f35de3092070e6b996259856caf06c
BLAKE2b-256 2bc47f74d0e87df9607225fa3794792cdef0eb59d12af57ad7a3713a9af0b6ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.2-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 6e01b715e2ce7e15b17dc53240378b93834506fdc409c3d213752fcccf238bda
MD5 f9a87f374254dd844792774c2af4bf9b
BLAKE2b-256 385687405c598b171bcd58facd0709513ea86fbe59ab05e5c23ea1e6fdaf477e

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