{"id":28446,"library":"vpython","title":"VPython","description":"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.","status":"active","version":"7.6.5","language":"python","source_language":"en","source_url":"https://github.com/vpython/vpython-jupyter","tags":["3D","animation","education","physics","jupyter","visualization","webgl"],"install":[{"cmd":"pip install vpython","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Required for Jupyter integration","package":"ipython","optional":false},{"reason":"Required for running in Jupyter Notebook/Lab","package":"jupyter","optional":true}],"imports":[{"wrong":"import vpython as vp","symbol":"vpython","correct":"import vpython"}],"quickstart":{"code":"import vpython as vp\n\nscene = vp.canvas()\nsphere = vp.sphere(pos=vp.vector(0,0,0), radius=1, color=vp.color.red)\n# To view, run in a Jupyter Notebook cell","lang":"python","description":"Creates a 3D scene with a red sphere. Must be run in a Jupyter Notebook; VPython renders inline."},"warnings":[{"fix":"Migrate to VPython 7 syntax: use 'vpython' module, 'canvas()', 'vector()', and avoid 'visual' module.","message":"VPython 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.","severity":"breaking","affected_versions":"7.0+"},{"fix":"Install Jupyter and run code in a notebook cell. Use 'pip install jupyter' then 'jupyter notebook'.","message":"VPython 7 only runs in Jupyter Notebook or JupyterLab (classic). It does not work in other Python IDEs or command-line scripts.","severity":"breaking","affected_versions":"7.0+"},{"fix":"Always run VPython 7 code inside a Jupyter notebook cell.","message":"Running VPython code outside Jupyter (e.g., in a plain Python script) produces no output or error; it silently does nothing.","severity":"gotcha","affected_versions":"7.0+"}],"env_vars":null,"search_vec":"'3.7':30 '3d':5,15,52 '7.6.5':21 'anim':16,53 'browser':38 'bug':47 'cadenc':40 'compat':51 'creation':12 'design':23 'easi':11 'educ':54 'enabl':10 'environ':7 'fix':48 'focus':45 'irregular':42 'jupyt':25,50,56 'navig':14 'notebook':26 'physic':55 'program':6 'python':9,29 'releas':39 'render':35 'requir':28 'simul':18 'updat':44 'use':32 'version':20 'visual':57 'vpython':1,2 'webgl':33,58","created_at":"2026-05-09T05:55:34.048667+00:00","updated_at":"2026-05-09T05:55:34.048667+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpwez_ex2q/venv/lib/python3.12/site-packages/vpython/__init__.py\", line 1, in <module>\n    from pkg_resources import get_distribution, DistributionNotFound\nModuleNotFoundError: No module named 'pkg_resources'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"http://pypi.python.org/pypi/vpython/","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/vpython/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}