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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

vpython-7.0.0b5-cp36-cp36m-macosx_10_7_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5mmacOS 10.7+ x86-64

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

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

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

Uploaded CPython 3.4mmacOS 10.6+ x86-64

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

Uploaded CPython 2.7mWindows x86-64

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

Uploaded CPython 2.7mWindows x86

vpython-7.0.0b5-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-7.0.0b5.tar.gz.

File metadata

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

File hashes

Hashes for vpython-7.0.0b5.tar.gz
Algorithm Hash digest
SHA256 ea0a5b9a7900fc649a24508efc99e2a90f0027e423de561b5d581555d8939330
MD5 b3cf292182c945030534c5229da49296
BLAKE2b-256 a636751ba17b1a5edadd79f69ebab3b5ce1dce8682fcbae15d82d5f29e188f61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 1f63eae7983413b816a51aa1073176296433d03cf55547c37943d12dd33872d3
MD5 03960644c0dc6947bb97b93cbb9e128b
BLAKE2b-256 690534db6db8bd2801a7136cea6f5ad4cdff81727093703b095207d01770c05f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 72a8491dd13d7e303362b6a33cfbd4a2e76f6a4d4298977600b80c028e92119c
MD5 12e2765936fa15eb6452bfa5be97e915
BLAKE2b-256 d048b0bac9620b3243389684d8f660dac447169278e619d59352d78a9e9c2b6a

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b5-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 3215f7c2d7ee907151c0f78ae6488ffab6ab9b1186946acc1b9543030943179d
MD5 4c2ace7c2638baa375288f9cb066e526
BLAKE2b-256 7f38786f84f4826aaf5dbbbb733b5260a6cc41817cd350db327301b8fd015145

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 4af00edea27fd18a0c50b51f7f9921b6a193a484855f4267bc7f51c59d356040
MD5 e26e9f463cd515c952fa2cc2c1d067bf
BLAKE2b-256 191a0465777321fed641cc5ae9585bed28bfbff4f705eeccf858603af2297720

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 17bc4c6b8b56b371ff7a0d2bd6cf2d0adf866e1fec808095c0b4762916bcdd95
MD5 5df0a587e4fc97bfd1e51de90cad2038
BLAKE2b-256 60601b78764475bf76991511ccf6299301b58ed6da04320013b53057ebf6efcb

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b5-cp35-cp35m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 55fa62cbef785a304abf3db5ae24b094e7894155f80f8bfa47c3dc8cf349a723
MD5 de7f3e6e16ac7d917f067c859e255a61
BLAKE2b-256 4e5518c4bf98b88aac7f4a35bf67b27fdfb81c16287f85f362c3b4d7a6e99663

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 df723600a42e9849286ed2878c7b807da80f133a3918cc63499b91206369f31e
MD5 0b85356708ac9e5376c59dd3662801ba
BLAKE2b-256 de59c5c08f21ab00054ef24c908e6a2bd800d0fdacc571233de5eb2d1de1e34b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 4211a0f3d62cada183870f7f3bda03d18fa0fbd5ddf7b9949d530f57578c46f0
MD5 af4e99e40f510a3a8cf43d6e304defee
BLAKE2b-256 5fc748608dc2cfd5a5124ec01932e8735657ebaaf3550b3973c402d684ec4fc2

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b5-cp34-cp34m-macosx_10_6_x86_64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 38437faca10ef0bdc2c084760b681f5a36b5927bfda3eb7d2d7372d32926eeb8
MD5 cda7b59dacfa8415cb7d00e3b4cf0fc3
BLAKE2b-256 2c6b566d1f7c17b66485ba32cdf91afbec68cdbcc3f05add522f07e2b9ebe611

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 33c047c60815448f66e40b67d156d89002bff6333074dd227abba23757979180
MD5 81f12a99b716c38df41accf6e0352a06
BLAKE2b-256 3d346c5044d36881b8264d92aa08a2860a71dafa3cc6b4976fcccc7dffa65853

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 513d75326d4ed3d678a0a1c7fb27441067900acba9beaf01bfece98f108e5ecb
MD5 aea684f833272c5f51954e5614290212
BLAKE2b-256 52cd6351cd61f1ee67befa668c3461c357c977ed12b2af121005dd52e1c6fe73

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b5-cp27-cp27m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b5-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d0fbc080eec34147a09fc689ce5adf4628f75795c5cd3b70c704f78c74f45bcd
MD5 07c61fb90b0b98e84b7d62aeb6a7a30e
BLAKE2b-256 f2c003aee0d7dcb3f16659e6bbe240ffa7ed1e2f8022975e0c114f0b8f7cb8fe

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