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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

vpython-7.0.0b3-cp36-cp36m-macosx_10_7_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 3.4mWindows x86-64

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

Uploaded CPython 3.4mWindows x86

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

Uploaded CPython 2.7mWindows x86-64

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

Uploaded CPython 2.7mWindows x86

File details

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

File metadata

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

File hashes

Hashes for vpython-7.0.0b3.tar.gz
Algorithm Hash digest
SHA256 3a6c1b61633c8605a9dd2f751a21ddb9644f4e6b5ab83885853c09e905b4035e
MD5 ff8aebd23aa319976a8c80578b2f878e
BLAKE2b-256 fbe8b63e9eb79b3a6d31c15673ddd946926d37bece97ef0875a47f52415603b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d2b4c08d26176246e214cb9a94a9d091c952ee6311ed79099530213473d656e3
MD5 f3fcb3c773488b92fafd6f86954b7842
BLAKE2b-256 b4c7b6c863741208004296bc4107d4156271018a66aeb7573183226c8cdcd6d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b3-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 e07bf73cb46cc471ec9d3390454c4732c1a8bea005c68d3e71eb949ba2112e2e
MD5 d71093bfbc315811f5027fb93f740ea5
BLAKE2b-256 1c02d8c11f8405df94cea73e471459516a583f366476b2541e26984c58ec17e6

See more details on using hashes here.

File details

Details for the file vpython-7.0.0b3-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for vpython-7.0.0b3-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b86810331f8a8330c3edf27eec3ef64f8b9f6c95c28df1b21031d96280a7b7fd
MD5 6303c590903968d732709effbc2f7ce6
BLAKE2b-256 7aa252713aa7fdc95510c9ba654a3eb4211a0c331c72fa692f00276227b9941d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b3-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 db4e496739bc608a4cd0bb732b941e24542eecf7c366ea0dd3b03c066d9c5c50
MD5 98b958a1cada93636f4deff330485476
BLAKE2b-256 e90d083bdc6e55c2926291cbaaaa0e1ae65b9cab7fbd7eca0b8484b1ea0601a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b3-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 5d096da2ceda0cb1888b64231a9e6b7a1ff28477c80c65db3d18cbd4d2ce2c53
MD5 5e7abd43a50496837c222f7a2477c6f8
BLAKE2b-256 b7a076a08b39e06a5cdf42b45772b4c86064dca926ebf2a45be707110b592883

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b3-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 d2e146810499a4f563e8a27f250604c256d4feb71ad58abbb0ac8e2787cd291a
MD5 98f376f691eea6250c50ffc12d813ec9
BLAKE2b-256 4b50852cb795fb7d9c307072a8f06103928be064386990b8ed668d04e7fd96b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b3-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 07dadd724d9a64603a736d31a676687ff712b60394d56271471aced91b47ff18
MD5 681e51a4b8ce2eb78902c2c1561bad90
BLAKE2b-256 6cd3ed6f66909925b4806778a431600f097a1a8718874a084b02daf302f48fb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b3-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 6206b35d95482c65f5490f4a8452841f49d502513fb1e127a372cd0d06d62f23
MD5 ac6520f8a5f4430fa144c3867983aeb7
BLAKE2b-256 ed18ab4e922b1c7658860dfbf6b9b59fbc84aa874dbaf197b6a7eafb9e2953f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vpython-7.0.0b3-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 c9ff62789ecf8aa8b68b0dcc6146dd2ec0cbc70026ceffc67d2b72d4c519f221
MD5 efd15f05153424feea9e7438d019412f
BLAKE2b-256 1bf6b535b32e82ed3539b974ead6dc0c5c81add55afa137ffce8252129b9a493

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