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:

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

Uploaded Source

Built Distributions

vpython-1.0.7-cp35-cp35m-win_amd64.whl (254.6 kB view details)

Uploaded CPython 3.5mWindows x86-64

vpython-1.0.7-cp35-cp35m-win32.whl (249.0 kB view details)

Uploaded CPython 3.5mWindows x86

vpython-1.0.7-cp35-cp35m-macosx_10_6_x86_64.whl (259.3 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ x86-64

vpython-1.0.7-cp34-cp34m-win_amd64.whl (254.4 kB view details)

Uploaded CPython 3.4mWindows x86-64

vpython-1.0.7-cp34-cp34m-win32.whl (249.7 kB view details)

Uploaded CPython 3.4mWindows x86

vpython-1.0.7-cp34-cp34m-macosx_10_6_x86_64.whl (259.1 kB view details)

Uploaded CPython 3.4mmacOS 10.6+ x86-64

vpython-1.0.7-cp27-cp27m-win_amd64.whl (256.3 kB view details)

Uploaded CPython 2.7mWindows x86-64

vpython-1.0.7-cp27-cp27m-win32.whl (249.7 kB view details)

Uploaded CPython 2.7mWindows x86

vpython-1.0.7-cp27-cp27m-macosx_10_6_x86_64.whl (259.9 kB view details)

Uploaded CPython 2.7mmacOS 10.6+ x86-64

File details

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

File metadata

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

File hashes

Hashes for vpython-1.0.7.tar.gz
Algorithm Hash digest
SHA256 368705cc078955c2f05466e5094e0ebef757e7e6757f3f268173dbc1a6c14475
MD5 0d1d8150388dfda3bd9b58caa46f2518
BLAKE2b-256 afcc5e4fc59440a48e57b1c2cd7badd4381233f850d51c2d5b3b09712082b9c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.7-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 2d15035ef753913249d779c760dda5789c59573a9ab4ead27746d7c2754c6743
MD5 867f832e0543e01032c4d741c06c7ef1
BLAKE2b-256 d17989722072e7230bebc15a1906ad0aab6a0f76b1abf2ba0b891ca47f31ae47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.7-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 99227eed791d4b820c91ee219cde24133432195986ca1adfd89a5491b6a6eb3a
MD5 7dab309df0805d7bc1d96fc007f45a57
BLAKE2b-256 4b4e5cd239eb717da0d40b630a674739e4c72b3c8b3e85a56645cf5537dafb92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.7-cp35-cp35m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 da40fee70c20e0d64fd85fae03fa0942f5f175bb22e6b8c28426ca8d5a165211
MD5 1be5d81271998f7fcbad711b2d9e0014
BLAKE2b-256 42a5d820acd3ff012c4ed6396fea236722f0f0b53447fb8ef8511b48ce25ffb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.7-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 776a411466bdda7573ee65bc103a0d16f755db2ace1d2c14c07d6121ff97ddc8
MD5 d19a282806e99bb78b3505c62d0403ee
BLAKE2b-256 5d5c914d8fbdc5d0ff8dd8921e603ad008de954ad2a1f8b95240023b0b057cf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.7-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 bbb220a5d822634e4dbc001d3d2d8e539f0a8955ec198a32834ee88eb16a2e6a
MD5 7aaa17839c9c1862784c732eb720f3f3
BLAKE2b-256 411a137de6a5c720b615a09f1fb1fc12c12e00641f84775feecf3f23217457bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.7-cp34-cp34m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 970b91e81e6c5689dcb97ea05855368cfa53b9a820b23bcc7ed02f6b31d06956
MD5 510fa1871b9b8173f2dd1a3134e05e0f
BLAKE2b-256 cecc3b5b43868bb1c2545ddd9c652875613e31aba2ddd888c04263fe73b024cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.7-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 5721c323ff774dad9436f2636d3b870e55d44f818253163ef72001915b804cc1
MD5 e5f48a38dab492e439f116d4a204055d
BLAKE2b-256 080608855d03c57f91f448885271643ee91f70ed6cbc9493ca8f3b2b529e64a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.7-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 f51525ab386c42d7d223996922f966c1e4b03686a029ce6b8fa6a13692d34c3f
MD5 e59413a9bc60e1459c27fd12753d0bd7
BLAKE2b-256 fff3ac17f672b9b552a0c1204e6cd55ac4d87ce05944953cd5d8284c52f707b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-1.0.7-cp27-cp27m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 f7cee0511df2337155eb04ba276e385dffd9581ae14a4ffac6d4b06fdbcb60f5
MD5 2880ee009666c17eef8b1942d3327e8d
BLAKE2b-256 59e6b23be040acdcd9aedbe9f126156b7d57e0d0ad6b75b5e68285c5af5dc7ca

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