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-1.0.3.tar.gz (275.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vpython-1.0.3-cp35-cp35m-win_amd64.whl (259.2 kB view details)

Uploaded CPython 3.5mWindows x86-64

vpython-1.0.3-cp35-cp35m-macosx_10_6_x86_64.whl (263.9 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

vpython-1.0.3-cp34-cp34m-win_amd64.whl (259.0 kB view details)

Uploaded CPython 3.4mWindows x86-64

vpython-1.0.3-cp34-cp34m-macosx_10_6_x86_64.whl (263.7 kB view details)

Uploaded CPython 3.4mmacOS 10.6+ x86-64

vpython-1.0.3-cp27-cp27m-win_amd64.whl (260.8 kB view details)

Uploaded CPython 2.7mWindows x86-64

vpython-1.0.3-cp27-cp27m-macosx_10_6_x86_64.whl (264.5 kB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

  • Download URL: vpython-1.0.3.tar.gz
  • Upload date:
  • Size: 275.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vpython-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d3c00e62e70243c2be4bce2636298cd79af66f0ea0156a0739722565fa98b6f7
MD5 42d6ff6765c64ffd8473e2a892fe82c7
BLAKE2b-256 31712df97b490f5380cf5cf817122b396b7ebcc808cfe7a5958efd96a0a01036

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.3-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 8ec3753240d01cb3da6d0c8ed14ac942a414c9b03edc3f4dcbbe6b2d96c60c2a
MD5 294b4a73b3e6099db7a6abd07891d3db
BLAKE2b-256 33aca14ebdbbc729b95ada8bc87ecb9bba85c79d999fa79c8c5d767eace047cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.3-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 3e04609e4f5b37a958ced0d6f5a746db75ba9454decb6d2c92ab6baaa7108075
MD5 e05d8c8d0000278031a8e05c53e1512f
BLAKE2b-256 233222351c3ad72efeaa97dd28a5b35d06c2834cd443305d82a274f605009e56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.3-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 2ad40259eb01271c3828f46ba9840bb85673d25d7397016417cb75267cfad0af
MD5 ef5364a35f60dc1394eae0e4a852d0e5
BLAKE2b-256 6dbdc64b1c6f808e338cf5f1afe3215638fe35ca1b6c0177d561774c41f484f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.3-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 e8bf1ecaa16c0edc74e8f3ccbdb26035744641571914efd9db7bfec1bc6f2fa0
MD5 f25889d7bdbd0c48f87cfd440fa68f26
BLAKE2b-256 9935f22574f895043b11eeaf4c3ac8229fc312c1e467f8654c9e76a4b394dbf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.3-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 53133b56c0a0c0dda868b8949fc752c0d57046dac1e3e15b2b0915f5699e20b9
MD5 de35b07037901f2db995dea349773f57
BLAKE2b-256 5deb223f625893c0a370b1fd5d8908dd221640b822082525b58948eef1f9feef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.3-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 d66ea867a8f2c18f6546d973a79f2b4261be84f3ee38c32a10d1a99aac61a704
MD5 c5410762d7972f1540b51bde72f4d3eb
BLAKE2b-256 45b1d906d4dacdeb59bebfec24795d24fad69ca6d1257c0183f0aacdb3f537f9

See more details on using hashes here.

Supported by

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