Installation¶
Guidance for installing the Onyx JupyterLab extension, or building it manually for development.
Usage within CLIMB JupyterLab Servers
If you are running a CLIMB JupyterLab server, you do not need to install the extension, as it comes pre-configured in your environment.
If you cannot see the most up-to-date version of the Onyx JupyterLab extension, this is because you will have previously installed your own version manually.
To revert your Onyx JupyterLab extension to the managed up-to-date version, navigate to your terminal and run:
And restart your JupyterLab server.
Install from PyPI¶
Assuming you have JupyterLab installed:
Otherwise:
Build from source¶
Clone the repository:
Ensure you have Miniconda (or an alternative conda installer) available. Installation instructions for Conda can be found here.
Create and activate a conda environment with JupyterLab and NodeJS:
$ conda create -n jupyterlab-ext -c conda-forge jupyterlab=4 nodejs=20
$ conda activate jupyterlab-ext
Install the extension dependencies with the JupyterLab package manager jlpm:
Build the extension and install it:
Optionally, copy and edit .env.example with ONYX_DOMAIN and ONYX_TOKEN for your development instance of Onyx:
You can now launch JupyterLab with:
And the Onyx extension will be ready on the launcher.
Local development¶
If you wish to develop the extension, ensure you have followed the above steps to build, install and run the extension from source.
From there, you can simply modify the extension code and dependencies, and reinstall/rebuild the extension by executing:
and then relaunching JupyterLab.
Troubleshooting¶
If you are seeing the frontend extension, but it is not working, check that the server extension is enabled with:
If the server extension is installed and enabled, but you are not seeing the frontend extension, check the frontend extension is installed with: