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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.5mmacOS 10.7+ x86-64

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

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

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

Uploaded CPython 3.4mmacOS 10.6+ x86-64

vpython-2.0.6-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.6.tar.gz.

File metadata

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

File hashes

Hashes for vpython-2.0.6.tar.gz
Algorithm Hash digest
SHA256 088fd82194617e240e3a2846b61ffe26006554f0845cf7cdf6745b4dd4ea83c1
MD5 2d684aa7d7bfa5402dd5b5a0c982dc56
BLAKE2b-256 a835b7949d7a7da7ceb641785499bf2eeb798d0eeabcd09776f811c5bbeefd84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.6-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 11be9bf8ab15a6b125de50ce1817be1a2d4c6b6bbb52cae69fc9955d42f871df
MD5 9fd44e3751d88884b78dc629543eb920
BLAKE2b-256 6337279f1741cef9421c0acfb298b5a85d58f93d537b58f71293ce090b5df105

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.6-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 8c0d87060dde8e48562e8fd941ffc989f784e0db63b8acecf2efa7aee813f8d1
MD5 07bc546659a317d3a8619c246911e1a1
BLAKE2b-256 fb8e11ba9fa923f2926baf829672f5f243d5ef06252d78f3133e62b6436e9fba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.6-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 efe0d935a6bf3ce8b5e4bceb71bc35e002dbbd45e241bfce1b3123f68153ed21
MD5 9b47162b0d3fd172540877137c2df06b
BLAKE2b-256 01856c258bafe7e13a67fdeccf7ba5895d5d6ccb0206cc07bf7af89a76f19971

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.6-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 552883d680471967c9b6c80276cb7d2fc2504dd255fd2b0db017e49bc20cb5c9
MD5 2ecf8392ec0af275a260c106a9fc0ce7
BLAKE2b-256 caa80844c2fc944eb551975427671fbd0c87b605e6c062da61cde8f922acf152

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.6-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 3a2ceeb51ef15c462105865d2735369f5f3d4e4c4cbc1785634104471308b44f
MD5 e9aee87a9b49cc0511b674e905554daf
BLAKE2b-256 499edd6746a3f0931007396ba1d652c210bc6ec004b5d75bffdda1369a7450b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.6-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 40062fc5c3faf455b1526372bd9454c4cbb4f21b96e473233c969c985e59c100
MD5 d5ba03c9e3a99eebc89f50a0ec6a3049
BLAKE2b-256 47aec31180344fb2d87d17fedd0aaa657fc1860e1b624f5e14e3461b454a6a1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-2.0.6-cp27-cp27m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 8a2f4f77cbc1b69eef0121fd805305111f81b179f6216e0d75b054e5d276a5a7
MD5 0a9460a0e6cd263ac04c4594ef4bdfde
BLAKE2b-256 244494b70a92ed23e470a749d237ddca2f0525fad486480f0b81c14c9e88512b

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