Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Jupyter - Three.js bridge

License

NotificationsYou must be signed in to change notification settings

jupyter-widgets/pythreejs

Repository files navigation

Interactive demo on BinderInstall from PyPIInstall from conda-forgeReuse from npmDocumentation StatusBuild Status

A Python / ThreeJS bridge forJupyter Widgets.

Screencast

Installation

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

Troubleshooting

If the extension is not automatically installed, you can manually enable it

Jupyter Notebook Classic

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.

JupyterLab

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 viapip,conda or other package managers,and does not require rebuilding the entire application.

Uninstallation

Usingpip:

pip uninstall pythreejs

orconda:

conda uninstall pythreejs

If you applied any manual steps above, it may be necessary to remove the

Jupyter Notebook Classic

jupyter nbextension disable --py --sys-prefix pythreejs

Jupyter Lab

jupyter labextension uninstall jupyter-threejs

Open Source

This software is licensed under theBSD-3-Clause License.

About

A Jupyter - Three.js bridge

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors27


[8]ページ先頭

©2009-2025 Movatter.jp