- Notifications
You must be signed in to change notification settings - Fork194
A Jupyter - Three.js bridge
License
jupyter-widgets/pythreejs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Python / ThreeJS bridge forJupyter Widgets.
Usingpip
:
pip install pythreejs
orconda
:
conda install -c conda-forge pythreejs
For a development install, see thecontributing guide.
The extension should then be installed automatically for your Jupyter client.
For JupyterLab
<3
, you may also need to ensurenodejs
is installed, andrebuild the application:# conda install -c cond-forge 'nodejs>=12'jupyter lab build
If the extension is not automatically installed, you can manually enable it
jupyter nbextension listjupyter nbextension install --py --symlink --sys-prefix pythreejsjupyter nbextensionenable --py --sys-prefix pythreejsjupyter nbextension list
You should see:
Known nbextensions: ... jupyter-js-widgets/extension enabled - Validating: OK
Note for developers: the
--symlink
argument on Linux or MacOS allows one tomodify the JavaScript code in-place. This feature is not available on Windows.
To perform asource installation:
## ensure you have nodejs install, e.g. with conda# conda install -c conda-forge 'nodejs>=12'jupyter labextension listjupyter labextension install --no-build @jupyter-widgets/jupyterlab-managerjupyter labextension install --no-build jupyter-datawidgets/extensionjupyter labextension install jupyter-threejsjupyter labextension list
You should see:
JupyterLab v... ... jupyterlab-datawidgets v... enabled OK @jupyter-widgets/jupyterlab-manager v... enabled OK jupyter-threejs v... enabled OK
This approach isnot recommended for JupyterLab 3, which enablesfederated modules, installed via
pip
,conda
or other package managers,and does not require rebuilding the entire application.
Usingpip
:
pip uninstall pythreejs
orconda
:
conda uninstall pythreejs
If you applied any manual steps above, it may be necessary to remove the
jupyter nbextension disable --py --sys-prefix pythreejs
jupyter labextension uninstall jupyter-threejs
This software is licensed under theBSD-3-Clause License.
About
A Jupyter - Three.js bridge
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.