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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5mmacOS 10.7+ x86-64

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

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

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

Uploaded CPython 3.4mmacOS 10.6+ x86-64

vpython-2.0.3-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.3.tar.gz.

File metadata

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

File hashes

Hashes for vpython-2.0.3.tar.gz
Algorithm Hash digest
SHA256 f1a042a0984a2ff56a7497321e5144e070ddad624c41a240c29f8a954ca468f9
MD5 6bb7800b9de6afc7b616e4cd9e1e7219
BLAKE2b-256 8a8d9f62b2be5ab2d41da97aa08a5c9f793293fb15e15a262b61f8ea90b08d66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.3-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 1a9bd3775943feac306fad562afe2c3b639a2afa9f3d887a3bff470345370724
MD5 630b2bd6b2caf205d1d08afe084c5a34
BLAKE2b-256 63d74bb2caebd63678586a70bc4ae425f9fd65ff06171e93baed6c5c666426c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.3-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 b5392adeae6de03c83ab4e37ecf83dfbda61f84e4b85ddfd3ee55ba64a92f4c4
MD5 d7dddc7fd37da5ab1c4d6de307d786be
BLAKE2b-256 bf5cf2109456e61ebc75d2c4f8ea038c71b833fcd21283972812e35f92624e0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.3-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 30ebda79f9df73b0ff54f3e5d74bae0ff735fe1aeccc831cbdfe3142671c1e7c
MD5 2b363aa92b153f25196d5a64d6e18add
BLAKE2b-256 0ff58b6ad8b2b00a5149a8fbbfbb93dcda9391396676ebd41fe87a81c6c330bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.3-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 821b55f16ddffd0da323e727014b2c6d7e4c43c30c2be95182983f4e183fb9b7
MD5 f48d26fbd0e31309701426d944936ce9
BLAKE2b-256 78df6e6cded256b476e2ca5596360316d64a1cd0114bf3e0e2547f5cf596b55e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.3-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 0a4b2c32d839c0efdfa752355ea4cb919fba7780e2d2b929e21c955b92c7df22
MD5 162736d680586afee842e43c144abad5
BLAKE2b-256 7ceae6e163ee1a7c31a3a85c91c0cb98b1fc4293d7ebde709f1dfcc3e22c6f88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.3-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 ba6f3b689dd03759ca1fbff3daacf903af63f63a09dbc77165438a4fb9cc4389
MD5 02c086826760e2ba8005095068b74592
BLAKE2b-256 48be17ee18493c2eb74d2e2652bd0d103d379c690051fff74db510222cb244cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.3-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 3a0c8e0fb4bc649244f07a2d0ec6f039698691f1f2f354a774ebcf0286764183
MD5 9ad1421a89df49285621834379ed2d30
BLAKE2b-256 cd6e308232f660f146cdd05ad69dadb615a1f4f1e21698dfc7d79f4b3bdc4ce8

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