Skip to main content

A JupyterLab extension to retrieve the base URL from the frontend. It was developped as a workaround for current limitation of `dash` jupyterlab extension that cannot be installed with jupyterlab v4.

Project description

jupyterlab-retrieve-base-url

Github Actions Status

A JupyterLab extension to retrieve the base URL from the frontend. It was developped as a workaround for current limitation of dash jupyterlab extension that cannot be installed with jupyterlab v4.

Requirements

  • JupyterLab >= 4.0.0

Install

To install the extension, execute:

pip install jupyterlab-retrieve-base-url

Uninstall

To remove the extension, execute:

pip uninstall jupyterlab-retrieve-base-url

Contributing

Development install

Note: You will need NodeJS 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 jupyterlab-retrieve-base-url directory
# Install package in development mode
pip install -e "."
# Link your development version of the extension with JupyterLab
jupyter labextension 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 jupyterlab-retrieve-base-url

In development mode, you will also need to remove the symlink created by jupyter labextension 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 jupyterlab-retrieve-base-url within that folder.

Packaging the extension

See RELEASE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterlab_retrieve_base_url-0.1.0.tar.gz (92.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file jupyterlab_retrieve_base_url-0.1.0.tar.gz.

File metadata

File hashes

Hashes for jupyterlab_retrieve_base_url-0.1.0.tar.gz
Algorithm Hash digest
SHA256 776de4815fc26fad6842dc72075221273a35bbc4c5a81d9089c12a1e36e91796
MD5 20541f8eec4cd3e1a99bd1089da6b282
BLAKE2b-256 c1c4bd305f35253ba0c1eb280fd9827c749ed6486955d07029e664342ba0d57f

See more details on using hashes here.

File details

Details for the file jupyterlab_retrieve_base_url-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_retrieve_base_url-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b0af07f52d5dc24301806ef5738a61e177a3d803bb26fd29ad77cc9d4fb62bc
MD5 c812dabd34779c71b08db7ab6bd4a98b
BLAKE2b-256 c5295db0d39300653c4f0ef50c05be6ea2e411918a1b89b616bf95bffb7e1874

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page