Jupyter VPython: navigable real-time 3D animations, done simply

See vpython.org for how to obtain and use the vpython module

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.

If asked to pick a notebook type, choose VPython.

Atomic solid: ball-and-spring model of a solid

Binary star: two stars orbit each other

Bounce: a ball bounces in a 3D box

Local moving lights: local lights moving around the scene

Buttons, sliders, and menus: widgets controlling a scene

RGB-HSV colors: RGB <-> HSV color conversions

Dipole electric field: the electric field of a dipole (+ and - charges)

Double pendulum: a double pendulum shows chaotic motion

Live graphs: incremental graphing; mouse over the graph with crosshairs

Gyroscope: a gyroscope precessing and nutting on a pedestal

Gyroscope-suspended: a gyroscope suspended from a spring

Hard-sphere gas: a gas of colliding hard spheres, with graph of speed distribution

Lorenz function: the Lorenz function

Mouse dragging: drag objects with the mouse

Mouse picking: click on an object to change its color; see technical details

Rotating boxes: 1000 rotating boxes

Rug: a wave moves along a Navajo rug

Stars: 20 stars interacting with each other gravitationally

Surreal Stonehenge: fly through a surreal scene

Textures: textures currently supported by Jupyter VPython

Transparency: true pixel-level transparency; see technical details

VPython objects: examples of most of the VPython objects


In [ ]:


In [ ]: