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

This version

2.0.8

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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

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

Uploaded CPython 2.7mWindows x86-64

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

Uploaded CPython 2.7mWindows x86

File details

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

File metadata

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

File hashes

Hashes for vpython-2.0.8.tar.gz
Algorithm Hash digest
SHA256 ceea41cb56037fd08d28f7084314e8d81a7c0a38e56a23b1b7d210ba4262a35e
MD5 c6edf0cb4607f0aae9e83fe6a2fd44fb
BLAKE2b-256 7dd44d4b5c021a7fc33d3e1e0baee3c4abd2b1cd01ce86ee9622bf6a290e2d7c

See more details on using hashes here.

File details

Details for the file vpython-2.0.8-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-2.0.8-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 a95dc755d26aca8040be0591e468b67feb6f1309d562a4af1bdc48c2ca4f7587
MD5 44e61b32521aefeb7b3ffd250dddaf93
BLAKE2b-256 42ea401a20375946fb666841b057f1ee05750012d6433d16ef495942ad515598

See more details on using hashes here.

File details

Details for the file vpython-2.0.8-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for vpython-2.0.8-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 d596fed9e6a6f82f91e8f145468dc5fc4a86945c89fb97eb5eb519d4d1fdb1e5
MD5 18343ee0330f3a9f02ab2696b9d3a482
BLAKE2b-256 2911e8a5f9ac10727440281d8ea1416fa516a8fc55667125eec27b302f26128e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.8-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 68f4374664372d5f002c2c3fba85be5e05ff877777b7bcb28531c4bafe7c16c6
MD5 cc43db20c2fce1d423030920b2585d44
BLAKE2b-256 4201302ac0340350a6d3dcaf58e1bad07007741b1d125c2f70c88c339a193eb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.8-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 044cd9111e7191bea9109c9ba52c31df2898374fd9c60f8f6cc3df54f69e825a
MD5 a7bfe6820ef2cd28c56ca65596f9634a
BLAKE2b-256 1efa45fb4414608fc09206bc6e0125f8296890fc754f6445b97cb15866b8f63f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.8-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 22148b004779687553e8734997399c761c1fa94d12d989f797c926c4e9490406
MD5 0d37f0c1b36835b30041d5d94304128b
BLAKE2b-256 30d736547487bd26d082c2088bcf5bba2787b48470391ffe0d4c4995f2587a28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.8-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 34006ded4412f7133c0c4236615a348becb3d296a6e91210b1c10fb8afabfa02
MD5 c3ad4b9c2592407618f16ac4534bef98
BLAKE2b-256 984a8800afec8215ee0cc4a796bf0bb04bc1840e47370927a59a30579ff43652

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.8-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 e2abc8917d3d4561e0f4cb2f9d4afd676a94a7f70f94b83f2bb1eb26d33366f4
MD5 899e139c2b1adccea27fd337ad284f3e
BLAKE2b-256 8a6905872dec7a102019063d21813d39bc71ab0844daf04caeaddbce35533c00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.8-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 959b3d5a3d938a3c10eb3c8cc0d7d5ef4e4249ad314f28237a4708dfe42e34e7
MD5 ff537324ca303fc5997c302530d4f81f
BLAKE2b-256 f7bc022fd9719386beb4e853c1cf820b3f32510d496bb7fae876ab1b28bb8625

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