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

Uploaded Source

Built Distributions

vpython-1.0.6-cp35-cp35m-win_amd64.whl (307.1 kB view details)

Uploaded CPython 3.5mWindows x86-64

vpython-1.0.6-cp35-cp35m-win32.whl (301.4 kB view details)

Uploaded CPython 3.5mWindows x86

vpython-1.0.6-cp35-cp35m-macosx_10_6_x86_64.whl (311.7 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

vpython-1.0.6-cp34-cp34m-win_amd64.whl (306.9 kB view details)

Uploaded CPython 3.4mWindows x86-64

vpython-1.0.6-cp34-cp34m-win32.whl (302.2 kB view details)

Uploaded CPython 3.4mWindows x86

vpython-1.0.6-cp34-cp34m-macosx_10_6_x86_64.whl (311.6 kB view details)

Uploaded CPython 3.4mmacOS 10.6+ x86-64

vpython-1.0.6-cp27-cp27m-win_amd64.whl (308.7 kB view details)

Uploaded CPython 2.7mWindows x86-64

vpython-1.0.6-cp27-cp27m-win32.whl (302.2 kB view details)

Uploaded CPython 2.7mWindows x86

vpython-1.0.6-cp27-cp27m-macosx_10_6_x86_64.whl (312.4 kB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

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

File hashes

Hashes for vpython-1.0.6.tar.gz
Algorithm Hash digest
SHA256 919f7eb2a4c1429ae41f65d9a56f92852cf0da2613d7a450c916c8c0b2b92297
MD5 11f5a0208df3ab42339ebb37635f498e
BLAKE2b-256 4ab55c8ae1b39c4b86f8747e9d1083d4a54e7f90249a45a50b3e931abba5abfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.6-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 ebfc5aabebb1acb141ff5c4bff1bac7d9a2f843c19a5b3ba8b910140f2dd4941
MD5 7abdae68b91757e03981ff2d90c798a4
BLAKE2b-256 722aa546cd1e24bcef50833bef1470a9e29f59ce1985c90c905d4dfcf57f8c8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.6-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d6f9c6d81a31fef983b9905fbc31383b2b590eeb1197c475d6f88a0dba821b36
MD5 94a3d4ba2d4989ad6bbda4c15b19da7d
BLAKE2b-256 8008222e1945e39e6a7edf8b0d05474d0e1bcdc03fcc62f5b3a22be4d1bd193e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.6-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 301595316a2e770f927500f74442f7e6871e90733af67ee064a6e6538e2254cb
MD5 743be32e5ec17ed591b6b4bcef82942b
BLAKE2b-256 994bc58c1a03fd88ccf993f70eee886b6644511f966fc78fcf6dc27f7407c8cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.6-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 4e7b7577028b868e587a573711c4cc48c6744813b8229d92cb4847e345a9177d
MD5 bf31a6130ff716e63286553117f5670a
BLAKE2b-256 83298436d9269e120b23b3eed6576733b22804da667b94cfe6b6f3a9eedc258a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.6-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 7adcc25f6c8e5e3cfd1386aa183bdec8bf556afe3fab04043c85a2f152b29296
MD5 44136ee03e5de5e8291e966324e0644d
BLAKE2b-256 99706740cfe0ced7d1fa9684045b8ed4c40df41c46cd214945a80c69ae23fcab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.6-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 4a47f71f5ede8e8f1145111492b4a0eea62f25df0881d7b7334247383c333747
MD5 486fda7d7e23154b36133075e7d6999b
BLAKE2b-256 65b2dc3ebe5eed4b89ad74ee47c057509d0c78d9c4e62e05efaf4921a5a29b2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.6-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 8cce04881faeb201a41ea968098dc207739d642738faec4953ddff3fd0283572
MD5 d992b53ef18e5694391d0f50707fcd60
BLAKE2b-256 f72adb909908ab765c1761ee866d6e3983ba434c5489d4c9dc72bff214baeffc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.6-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 decea8a0304bac6447d1ef1b96c2c4c744b95ef6ebbad2c465ac20daf6989c97
MD5 1c21b25a7c8258e5e0ffd57712398dc3
BLAKE2b-256 f0d8d4f326f8485b7cba81e11bc8e8ad074c7b0829da0d1dfd577fb7685aeedd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.6-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 374690f4b1b556c63a30f93fe9ae02e9c5cc6b33481147e205389265cbafbbc5
MD5 54e4515b188dd0b95f7f586671ed1a43
BLAKE2b-256 1f14a9ea36828ddf9ae66493cfdd22ff770c8a6d0f2eb5ab9319c1cd22cefa37

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