oceanumlab
A Jupyterlab extension to interact with the Oceanum.io platform
This extension is composed of a Python package named oceanumlab
for the server extension and a NPM package named oceanumlab
for the frontend extension.
Requirements
- JupyterLab >= 4.0
Install
To install the extension, execute:
pip install oceanumlab
Uninstall
To remove the extension, execute:
pip uninstall oceanumlab
Contributing
Development install
Note: You will need NodeJS 22.12 or later (or 20.19+) to build the extension package.
The jlpm command is JupyterLab's pinned version of
yarn that is installed with JupyterLab. You may use
yarn or npm in lieu of jlpm below.
# Clone the repo to your local environment
# Change directory to the oceanumlab directory
# Install package in development mode, with jupyter-builder for building the extension
pip install -e ".[dev]"
# Link your development version of the extension with JupyterLab
jupyter-builder develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm build
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
By default, the jlpm build command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
jupyter lab build --minimize=False
Development uninstall
pip uninstall oceanumlab
In development mode, you will also need to remove the symlink created by jupyter-builder develop
command. To find its location, you can run jupyter labextension list to figure out where the labextensions
folder is located. Then you can remove the symlink named oceanumlab within that folder.
Testing the extension
Server tests
This extension is using Pytest for Python code testing.
Install test dependencies (needed only once):
pip install -e ".[test]"
To execute them, run:
pytest -vv -r ap --cov oceanumlab
Frontend tests
This extension is using Jest for JavaScript code testing.
To execute them, execute:
jlpm
jlpm test
Integration tests
This extension uses Playwright for the integration tests (aka user level tests). More precisely, the JupyterLab helper Galata is used to handle testing the extension in JupyterLab.
More information are provided within the ui-tests README.
Packaging the extension
See RELEASE
Release files for oceanumlab 4.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| oceanumlab-4.6.2.tar.gz | 1.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oceanumlab-4.6.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.5 MB
Release files / oceanumlab-4.6.2.tar.gz
| Download URL | oceanumlab-4.6.2.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54c8156543e2774d5f85cd2864900d8a30bb7013c78541e57cce73a4fa89a88d
|
|
BLAKE2b-256 checksum How to use checksums |
aa30d96950f140f47a2a9afac6efe81ea961a3ee6e0880f5d83b6cb7025f4151
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / oceanumlab-4.6.2-py3-none-any.whl
| Download URL | oceanumlab-4.6.2-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ed4412b904481a69095d7446deca5ce494971e33226b551876cda2897f65742
|
|
BLAKE2b-256 checksum How to use checksums |
6fdcbcf03597987981fdf517ff52054de04697c7d5ec66db31141e6247e7af19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency log