By being based on top of the jupyter-widgets infrastructure, it allows for eased integration with other interactive tools for notebooks.
To get started with pythreejs, install with pip:
pip install pythreejs
If you are using a notebook version older than 5.3, or if your kernel is in another environment than the notebook server, you will also need to register the front-end extensions.
For the notebook front-end:
jupyter nbextension install [--sys-prefix | --user | --system] --py pythreejs jupyter nbextension enable [--sys-prefix | --user | --system] --py pythreejs
jupyter labextension install jupyter-threejs
If you are installing an older version of pythreejs, you might have to add a version specifier for the labextension to match the Python package, e.g. email@example.com.