Registry / data / jupyterlab-vpython

jupyterlab-vpython

JSON →
library3.1.8pypypiunverified

A VPython extension for JupyterLab that enables 3D animations and simulations in notebooks. Current version is 3.1.8, released under the Jupyter ecosystem. Release cadence is irregular, with updates tied to JupyterLab version compatibility.

pip install jupyterlab-vpython
INSTALL
IMPORT
SIG · JUPYTERLAB-VPYTHON
J
jupyterlab-vpython
datapythonv3.1.8
harness data pending
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.

canvas
from jupyterlab_vpython import canvas
from vpython import canvas

After installing jupyterlab-vpython, launch JupyterLab and run this code in a notebook to display a red sphere.

from vpython import canvas, sphere, vector scene = canvas(width=500, height=500) sphere(pos=vector(0,0,0), radius=0.5, color=vector(1,0,0))
Debug
Known issues
breakingRequires JupyterLab 3.x; does not work with JupyterLab 4.x. Extension must be rebuilt or updated for each JupyterLab version.
fix
Ensure JupyterLab version is 3.x. Check compatibility before upgrading JupyterLab.
affects: all
gotchaThe extension must be built after installation (or prebuilt). If changes are made to the extension source, you need to rebuild. Missing rebuild results in 'Failed to fetch' or blank output.
fix
Run `jupyter lab build` after installing the extension, or install a prebuilt version if available.
affects: all
deprecatedThe package is no longer actively maintained and may not work with newer Python versions (>3.10) due to dependency issues.
fix
Consider using an alternative like pyodide or offline VPython, or run in a Python 3.9 environment.
affects: >=3.1.0
Upgrade
Version history
3.1.8latest on PyPI · released Mar 11, 2024
Audit
Dependencies
jupyterlabrequiredRequires JupyterLab 3.x installed in the same environment
ipywidgetsrequiredRequired for widget integration
numpyoptionalUsed for vector operations
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
jupyterlab-vpython — pip install jupyterlab-vpython · libregistry