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

Uploaded Source

Built Distributions

vpython-7.0.0b1-cp36-cp36m-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.6m Windows x86-64

vpython-7.0.0b1-cp36-cp36m-win32.whl (2.5 MB view details)

Uploaded CPython 3.6m Windows x86

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m Windows x86

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

Uploaded CPython 3.4m Windows x86-64

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

Uploaded CPython 3.4m Windows x86

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

Uploaded CPython 2.7m Windows x86-64

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

Uploaded CPython 2.7m Windows x86

File details

Details for the file vpython-7.0.0b1.tar.gz.

File metadata

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

File hashes

Hashes for vpython-7.0.0b1.tar.gz
Algorithm Hash digest
SHA256 0a01a407c376cc25553b9005659d22e6af0db8d28ea72a99877e8bbf35be9f6b
MD5 29455eea9ba208bae81e7a08f9176757
BLAKE2b-256 d77820d282357339d0c188b2494ec680fde9fbe523d2fa935494424383e8d490

See more details on using hashes here.

Provenance

File details

Details for the file vpython-7.0.0b1-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 dbc0817ef07eeb923dba83d4284eebd48016a9acb778e4dc25d0503f11d6bef5
MD5 1dc7dbe4819023ee91e124c563bb0797
BLAKE2b-256 433a27ddbb5bfdaa1bff3f4a29456447d5152a40a26ba7a0218775e9c8b323ab

See more details on using hashes here.

Provenance

File details

Details for the file vpython-7.0.0b1-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 1b1f2d3631e7cd31028af70eac67d63fff5b3f89ae3cf458ddaa3c9346ffff59
MD5 9692aeb47ed45ddc577e6c08792e0186
BLAKE2b-256 5617584ca8c08fc01421862fc2f37aeea7274581f4f23880d35dac978746b0d3

See more details on using hashes here.

Provenance

File details

Details for the file vpython-7.0.0b1-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 3a0baac3ca2a286a1992ac8ae404ac812b1fe1cb9cbbfd479190de2a9b86fd21
MD5 0a1112fdb28a51e010b7c94903a4c76b
BLAKE2b-256 8178e8066336f991934994ed19bdc5eee9cec9e4acd8167470b0775ce6db8d97

See more details on using hashes here.

Provenance

File details

Details for the file vpython-7.0.0b1-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 cd52c3c1ab54c5d6232fa2920c3df2e5887c8f99b74f37d6c80820cf6c29de3d
MD5 8b611ac60315270be569ba598311b372
BLAKE2b-256 a21c1a3e25dadf152ed13597cc190a01db617109c2bd1651f5e298fd86219030

See more details on using hashes here.

Provenance

File details

Details for the file vpython-7.0.0b1-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 fbe99018949903258ddc2c5f00135495aa23c2d80fb9e34fff183895fd49a939
MD5 db5b2861c79a125681bb2fc3c4da20a7
BLAKE2b-256 4e3ddc9d413aac1da46cb25b01d00036ecae7769229e41f37be15d18c1127514

See more details on using hashes here.

Provenance

File details

Details for the file vpython-7.0.0b1-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 c3e8e50c83421e8af2d0229e9467c41b721c765afd50b4788b8908283ad0cfdb
MD5 8b3c463b5e54ffb67213cfcec2fc0eaf
BLAKE2b-256 07ba863d982dd43013f49f5aa6a42d4530ee18625cbdb01de87b2b3e8fae7a3a

See more details on using hashes here.

Provenance

File details

Details for the file vpython-7.0.0b1-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 d1ef4fe0f6bb91dd81cfeae8a311b8f8c373705dcec44dab0f07f0c006777348
MD5 a4f438c9de87a26778aa28bfcbf51ecc
BLAKE2b-256 c439bac882b2fcb9c6986aad6ead99a60617255974cb2b2491b712362d9be098

See more details on using hashes here.

Provenance

File details

Details for the file vpython-7.0.0b1-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 227285ab986def8d7bed938c09c53ac0a9fc6f60656a95f89aff186b29786454
MD5 de4a55ab2d3f2723302276ff5258cf9b
BLAKE2b-256 940b7461f45bd476d92ad544a237da80be1e90f8a87691324c29aaccf256f19c

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