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

Uploaded Source

Built Distributions

vpython-1.0.8-cp35-cp35m-win_amd64.whl (280.5 kB view details)

Uploaded CPython 3.5mWindows x86-64

vpython-1.0.8-cp35-cp35m-win32.whl (274.9 kB view details)

Uploaded CPython 3.5mWindows x86

vpython-1.0.8-cp35-cp35m-macosx_10_6_x86_64.whl (285.2 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

vpython-1.0.8-cp34-cp34m-win_amd64.whl (280.3 kB view details)

Uploaded CPython 3.4mWindows x86-64

vpython-1.0.8-cp34-cp34m-win32.whl (275.7 kB view details)

Uploaded CPython 3.4mWindows x86

vpython-1.0.8-cp34-cp34m-macosx_10_6_x86_64.whl (285.1 kB view details)

Uploaded CPython 3.4mmacOS 10.6+ x86-64

vpython-1.0.8-cp27-cp27m-win_amd64.whl (282.2 kB view details)

Uploaded CPython 2.7mWindows x86-64

vpython-1.0.8-cp27-cp27m-win32.whl (275.7 kB view details)

Uploaded CPython 2.7mWindows x86

vpython-1.0.8-cp27-cp27m-macosx_10_6_x86_64.whl (285.9 kB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

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

File hashes

Hashes for vpython-1.0.8.tar.gz
Algorithm Hash digest
SHA256 047b8747edb065272c909505a47ef08d50aef49d4e3f529ec56fb42ab898fa11
MD5 788bfb288cc7e1d09c4098f2d1007bab
BLAKE2b-256 772b3541e0475b87e14eae9ac23463fcc1c3940e743b474ca1dca1bc9ed0be81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.8-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 57549cf6681eefa9d7cc903c5a5897e54cdb50223f70abbef22e661f5529019c
MD5 abd5d5b7bae3f9caf0ae83a7805a2aa7
BLAKE2b-256 607df6632f21e2b0dfacf98d52912a56c7b1d0f89eb7fc5b8bf9dd61978a3cd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.8-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 da6cbe85da349f6496f6341d8c8f533be06e970c046153f697f6994076db758c
MD5 4947883c4e59bf590ddcf3341210d3d0
BLAKE2b-256 8c5544fe94d7b47fbd286a227daadfb0de91a40b35633cc66be106e7b5ce4de5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.8-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 4bb92de97b980181b0ed91feecd7cc062ae33a3c5750791bcbd75f765792367a
MD5 65c58b5daf072fd3108e0b5dabfcb290
BLAKE2b-256 b425ab43fcae58ff5ba68f6dc1f3b98f4e112bf7d0a6ebd2baa051c62e83a82e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.8-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 0413ccf1b7bac607eabe81ccdeab4a70c39f531a087ec88ee1ea5850d77146e4
MD5 fcd8be77537386afccaaea838f3e0d24
BLAKE2b-256 83674e194a4abe4cb89117142660ad4047b7881cd861ade8bb3511f72fe00852

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.8-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 965792ace9199344ecc56bf7e15acd00107b7b1b635f31157f4a4bdf81c35bd4
MD5 6bca48bd2abd8dacd5ab8502e8a03cb1
BLAKE2b-256 682cfe26d8d6649c8dc4a61cb4398c919deb1cef8ccb945d67b7bf7f43913b91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.8-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 44c7876d61b6f71d4897d34340707e96f696fe13fb0c1f85900dd91e144d9df2
MD5 b07a7316c562d21e279a7b3084bea3f9
BLAKE2b-256 578ca0550cb83c1eb5b7135fcdeaccf3fb3adc6e3bb959e89a584adfe491ae5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.8-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 2e5dd3e8cb535eaab5adf927dbd187b0a50703ced80b5af9aada5a5dc4fc0150
MD5 e89033af5fa8bbb453a6f7d87c32fce6
BLAKE2b-256 f896eb742fcb96f520453a8bee6273e4595853a962d4220467816deccd76f104

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.8-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 b01f1a460424ba918efb72392b2d2a400d9133d710da43c0b15be93e50a1e860
MD5 edd8d320026760e5c0f1699e0af5582e
BLAKE2b-256 2a088b18d3fe48f8342638993d07fd8f4140e560683b970611abe8bc643fe4e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.8-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 208ef7192c61d091e78910ef4632912d35b5f3fc25fe29c5df06cc5d541a3abe
MD5 33e5cf1031506d8abfdde2f1835ada91
BLAKE2b-256 26504876b384f8b65ff388f1e63ff5ae38cb6a10ec64ba1b1d04128668ecf092

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