Registry / ai-ml / vpython

vpython

JSON →
library7.6.5pypypiunverified

VPython is a 3D programming environment for Python, enabling easy creation of navigable 3D animations and simulations. This version (7.6.5) is designed for Jupyter Notebook and requires Python >= 3.7. It uses WebGL for rendering in the browser. Release cadence is irregular, with updates focused on bug fixes and Jupyter compatibility.

ai-ml
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

import vpython

Creates a 3D scene with a red sphere. Must be run in a Jupyter Notebook; VPython renders inline.

import vpython as vp scene = vp.canvas() sphere = vp.sphere(pos=vp.vector(0,0,0), radius=1, color=vp.color.red) # To view, run in a Jupyter Notebook cell
Debug
Known footguns
breakingVPython 7 is a complete rewrite from VPython 6; the API and rendering engine are entirely different. Code written for VPython 6 (classic) will not work.
breakingVPython 7 only runs in Jupyter Notebook or JupyterLab (classic). It does not work in other Python IDEs or command-line scripts.
gotchaRunning VPython code outside Jupyter (e.g., in a plain Python script) produces no output or error; it silently does nothing.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources