Add links back to Jupyterhub(k8s) control panel.
Project description
lab2hub
Add links back to Jupyterhub(k8s) control panel.
Requirements
- JupyterLab >= 3.0
Install
pip install lab2hub
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 lab2hub 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 run 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 run 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 run 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
Uninstall
pip uninstall lab2hub
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lab2hub-0.1.1.tar.gz
.
File metadata
- Download URL: lab2hub-0.1.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2361c1a5ea9e73207a858152daf55e3bad19871137f93de15e6061152e1f4ba0 |
|
MD5 | eab17fac01efca3f533dd6da4bf5cc66 |
|
BLAKE2b-256 | c3e7bdca7713954dd9bf2b6b7c944b1e9065b6657b0747406dc3ec2b6faa2f62 |
File details
Details for the file lab2hub-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: lab2hub-0.1.1-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8131993812bb97fe7003a5748d1a8f4733ad47e54834f843e83974c3f4402f01 |
|
MD5 | e80defa1a9bf13b4b235ed373062ded5 |
|
BLAKE2b-256 | 2d28856e1a69928fa8dcb8497a2732f136d16a0c8c1e1ec80c91d859a6da208b |