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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

vpython-1.0.9-cp35-cp35m-macosx_10_6_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

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

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

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

Uploaded CPython 3.4mmacOS 10.6+ x86-64

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

Uploaded CPython 2.7mWindows x86-64

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

Uploaded CPython 2.7mWindows x86

vpython-1.0.9-cp27-cp27m-macosx_10_6_x86_64.whl (2.5 MB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

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

File hashes

Hashes for vpython-1.0.9.tar.gz
Algorithm Hash digest
SHA256 edf6434af3ccfa85572cc6a1db17544cee2c5cf6c51a6f3a3be0236d161a2d93
MD5 ad0c2a6c9660e14a60c5065e676152f8
BLAKE2b-256 1e62ad29cffac56eb3ddcb6336e8d27a86d19305e7e13e5f8c270563d3f44dcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.9-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 309fdb64428b825bee0cfe94e2fffd2c610acf604e9ff90f0e060c104eafee06
MD5 0f2228906cffd8ca24f13b4a5a27a799
BLAKE2b-256 a6cffeff5db5917b8b13d9563953a35c4cca88702a247c5901166c4adc3d5e9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.9-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d67e665ccb72c48662809a6cc44ba42478c4fec7e95c4f89e254cb71abf91f58
MD5 364dbdca610158f349028300bde761e3
BLAKE2b-256 498bc7f2d50db39fc60ab85933c94f630e5c75cd69dfdacc06c6bc984314f896

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.9-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 5a42f35216676a624701b572dd3d5c182783684250880ecf4e730b4aa8adfa52
MD5 a5de40fa00a9646a80f420debc5d42dc
BLAKE2b-256 1491854c3a7199c7578791c059d0d9e33edacb7351eb74522d99a39d95fbf292

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.9-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 37d0b49aba617066670d41fd6f6d8e9215795264084bd73db85be0d59a094262
MD5 2833c3b3a9dab7da2f89e6ce40f6737d
BLAKE2b-256 7d4f3dcb1b8eae469ed1fefbbaa43fea35f4e78c8a44a21ce0176236a6a0349e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.9-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 a09165abcd543514e4da38cd30c4ed418f2f9c49885c3e8b8658d4229a1d9492
MD5 1ee47e08e2e87b46c3157ed9a74a0b0d
BLAKE2b-256 47ab790a934b174f1dc1df9c09fd986b4c0cadd13138dca18503f32c5074c457

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.9-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 343ca1363d9cb92cc31d1f4bdac86c91cedfa85457245db5047f6b101787e37a
MD5 bb99002ee7f04b475a28a2827ff952c3
BLAKE2b-256 e6ac24a6d9d99255df6dd74ad7a314d095087628e2eae9dee5a15b15f79abe7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.9-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 4109bea56a48cf7a7e2559d602bb9ace6f7ed66ca0bc21abcb4ea45a251df7b6
MD5 06bb26c5260ba1925a7e4b60d119c353
BLAKE2b-256 ceddb42b13ee3e2494893df7b6bf08c6e72bcd4cd8ba9cd1612390ad095cfc67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.9-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 65c5b15f7f1f5d3fd0aba98e2ec3cd421318147568e054bbbc074db1fdd0b5af
MD5 d8019aa7bedc398fdb977bef8b93aca2
BLAKE2b-256 9c03981ee61422ee023d143bac45355b3b181a4fbf5bc14c1e17ccdf95e28ff6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.9-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 faa0efce7bef7f715dcea191f2719bde3b5778d56232f3c2b4109bbc5c4a539e
MD5 56e85d36e19c9ead39a35b66fad407c3
BLAKE2b-256 a63098d5fa847aea5fce599e77515c549363182f9c5dcffa8d00b03cc57a6da4

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