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

Uploaded Source

Built Distributions

vpython-1.0.5-cp35-cp35m-win_amd64.whl (299.0 kB view details)

Uploaded CPython 3.5m Windows x86-64

vpython-1.0.5-cp35-cp35m-win32.whl (293.4 kB view details)

Uploaded CPython 3.5m Windows x86

vpython-1.0.5-cp35-cp35m-macosx_10_6_x86_64.whl (303.7 kB view details)

Uploaded CPython 3.5m macOS 10.6+ x86-64

vpython-1.0.5-cp34-cp34m-win_amd64.whl (298.8 kB view details)

Uploaded CPython 3.4m Windows x86-64

vpython-1.0.5-cp34-cp34m-win32.whl (294.1 kB view details)

Uploaded CPython 3.4m Windows x86

vpython-1.0.5-cp34-cp34m-macosx_10_6_x86_64.whl (303.5 kB view details)

Uploaded CPython 3.4m macOS 10.6+ x86-64

vpython-1.0.5-cp27-cp27m-win_amd64.whl (300.6 kB view details)

Uploaded CPython 2.7m Windows x86-64

vpython-1.0.5-cp27-cp27m-win32.whl (294.1 kB view details)

Uploaded CPython 2.7m Windows x86

vpython-1.0.5-cp27-cp27m-macosx_10_6_x86_64.whl (304.3 kB view details)

Uploaded CPython 2.7m macOS 10.6+ x86-64

File details

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

File metadata

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

File hashes

Hashes for vpython-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ae56250316e86c16b26c4acc7dce751953583e113525d368a4cbd9d0f441e23a
MD5 fc07e44007df10c4b8efa1ec1ead85bf
BLAKE2b-256 dd190a82f027f71ec90640924eae92b6efd5306213b91e656ebc238439d9bbc8

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-1.0.5-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 3bb3ed065d9849c4addcd9f074e7bdd6ebafec41e4dfc77ea7944f4ac29e3ec3
MD5 9ac12f915480454d139264059e415f4c
BLAKE2b-256 8d8e0537ddedd4d7ee81d9529c3f1d31f62addde5e458849a915d3d15d97c431

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-1.0.5-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 ebd7091623b73939b48d576ee372fe6ff7d2a597f2b924c510128214a1845d88
MD5 a46661a57e0a31911f5e19bcae990c62
BLAKE2b-256 9f27300bd998e311448471adb414f3a19e5b5de752140ce69a9b30b206880f8d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-1.0.5-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 61512c5707970e99f9bd4a4286e4ba296bbe1de16ed36fb633efde9a515b7d39
MD5 5b6059717bd624ee15203ed266833670
BLAKE2b-256 264f18c26dacc0032c83d9c3442ef6ec80772f3cab868ee1deecf264a90c355e

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-1.0.5-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 1d0168f7c75f73e85e50f1b3b5110f0007f1ea9ce33a94560654b03663454f6b
MD5 e18424bcde968a7b4e386e3c620158e1
BLAKE2b-256 527a7faec93920ec4d71b58b506de525f3a914c15b757fa0c2c1e4afd863bc3e

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-1.0.5-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 f86af02f5778038dad293209f35dbbe6b9f3a0d2b5c03a52946f41ccbd6f284f
MD5 f90a7e3d4f07ec6249dd27dba206a469
BLAKE2b-256 6eeec032f68987c60b8b9b30ff7d6c84f71bbe20f3b3ca1e81bca85d680530ba

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-1.0.5-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 11b8acb9f7774c2f62e360640c0029b2ebe48a76879f48deb152defa9867232f
MD5 5fe97ef1a44fc885524615508cd65567
BLAKE2b-256 17759df1b0ee8cd5969a518a65445c3f417081b8bc9c961f53e1ae5c8dec5310

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-1.0.5-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 3ffd19224bf17015f88e86fd73701b7bc48eecdb76d1cf2ea87c12dd496b5fd2
MD5 e45d5e81210e17efe86ba76713d6f9e0
BLAKE2b-256 b5150ccd4c15773b4bdb027eedcaba0885259a903eef07c7bd060e2723c6cd8b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-1.0.5-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 8d627d7be5ffc0f1220a723275b6d9d19a80573cbb81a2a9fcdaeb3e3d2465e9
MD5 77ea8c3f6300deb306e50806a12f0445
BLAKE2b-256 835b93b34d888696ddad368a97bc140814c65dd9fcdd35e6f13d63b7e9ced088

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for vpython-1.0.5-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 7e7486d3ff8de6f4b4a5193d9843833c826b74170c7e4b00b00a5c6af02939e7
MD5 253d78dc5b1a053c7f7b0bfafdd98971
BLAKE2b-256 cd92fc438d92ac6d4e3bee5a114eb0a4bb8b8c4bc01b34ed082c822ad6998abe

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page