3lc-compute-plugin-jupyter
JupyterLab with the 3LC Python package, as a plugin for the 3LC compute service.
The plugin's provisioned environment is the JupyterLab environment: JupyterLab, a Python kernel,
tlc (with pandas and the dimensionality reducers) and a multi-root file browser. From the Hub's
JupyterLab page (AI Tools) you start the server on your machine or on the GPU node chosen in
"Run on", and open it in a new tab.
What you get
- The 3LC environment as a notebook.
TLC_API_KEY, the project root URL and the cloud credentials are already in the environment, soimport tlcopens tables and logs runs next to your other work. The card names the workspace's project root: that is where tables and runs go. - A plain working folder. A folder on the machine the server runs on, with a README and a
Welcome to 3LC.ipynb. It goes with a GPU node, so people keep notebooks in git; the lab has a terminal forgitandpip. No bucket browser: git is how files come and go. - The 3LC tutorials in one click.
github.com/3lc-ai/3lc-examplescloned (--depth 1) into the working folder; "Update" pulls. Without git the archive ofmainis unpacked instead. - Billing-aware lifecycle. The server shuts down after the chosen time without a running kernel (JupyterLab's own idle shutdown plus a watchdog), which ends the job, frees the node and lets the node's idle timer tear it down as usual. Stop in the Hub or the Queue does the same at once.
- VS Code and Cursor. The card shows the server URL with its token: paste it into Jupyter: Specify Jupyter Server for Connections and your editor's notebooks run in this environment.
How it reaches the browser
JupyterLab needs WebSockets for its kernels, which the compute service's plugin proxy does not carry, so the browser opens the server directly:
| Where the job ran | URL the Hub opens |
|---|---|
| this machine | http://<compute host>:8888/lab?token=… (first free port from 8888) |
| a GPU node | the node's worker URL template with port 8888 (AWS: http://<ip>:8888; RunPod: https://<pod>-8888.proxy.runpod.net) |
Port 8888 is opened on new nodes by the providers (NODE_APP_PORTS in the compute service). On
AWS the security group admits the controller's IP, which is the browser's IP when the controller
is your own machine.
Layout
src/tlc_plugin_jupyter/plugin.toml— manifest (remote_capable = true,node_routes = ["/server"]).src/tlc_plugin_jupyter/server.py— port choice, working folder, launch, status, stop, the tutorials clone.src/tlc_plugin_jupyter/routes.py—GET /server/status,POST /server/stop,POST /server/tutorials.src/tlc_plugin_jupyter/ui.html— the launcher card.
Develop
uv sync --extra jupyter
uv run pytest
uvx --from 'ruff>=0.15,<0.16' ruff check . && uvx --from 'ruff>=0.15,<0.16' ruff format --check .
The integration test starts a real JupyterLab on a free port when the jupyter extra is installed.
POC development and publishing
Staged 3LC builds (the 3lc core and SDK 0.5) resolve from the private staging index
(pypi.3lc.ai/repositories/prereleases), declared as the explicit staging index in
pyproject.toml; everything else comes from PyPI. Set only the index credentials in your shell
(keep them out of source files):
export UV_INDEX_STAGING_USERNAME="<staging index username>"
export UV_INDEX_STAGING_PASSWORD="<staging index token>"
uv sync --locked --group dev --extra jupyter
uv run --no-sync pytest
The Release workflow builds verified artifacts on manual runs. publish=true uploads them
to the private staging index (prereleases) using the CLOUDREPO_USERNAME /
CLOUDREPO_PASSWORD secrets; publishing is
disabled by default. The timestamp, run and
attempt suffix stamps the distribution and manifest together.
The separate v* tag path provides PyPI Trusted Publishing plumbing. Configure the PyPI
project's trusted publisher before using that path; no public release is needed during POC.
Metadata
Release files for 3lc-compute-plugin-jupyter 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| 3lc_compute_plugin_jupyter-0.1.1.tar.gz | 326.0 kB | Without provenance | Details for 3lc_compute_plugin_jupyter-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 3lc_compute_plugin_jupyter-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for 3lc_compute_plugin_jupyter-0.1.1-py3-none-any.whl |
Total release size: 362.8 kB
Release files / 3lc_compute_plugin_jupyter-0.1.1.tar.gz
| Download URL | 3lc_compute_plugin_jupyter-0.1.1.tar.gz |
|---|---|
| Size | 326.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d0f5165eaf8e25a7af92ca2ae8fada533517ac8c826869cd65f29fa067137a5
|
|
BLAKE2b-256 checksum How to use checksums |
138a4f8f42292ba46f9d4e80667520170bbde00c4f7a4f99b2b01dde61f13f5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.22
|
Release files / 3lc_compute_plugin_jupyter-0.1.1-py3-none-any.whl
| Download URL | 3lc_compute_plugin_jupyter-0.1.1-py3-none-any.whl |
|---|---|
| Size | 36.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
568db147e9a9d1f820a89373c8b6a4ebd0643d8afff75d6ae0dc3d6188c2497b
|
|
BLAKE2b-256 checksum How to use checksums |
8dd6e0b3d2c66d21888388836230f13acfc5da63de36063e6ca1578f57be8117
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.22
|
Security for 3lc-compute-plugin-jupyter 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.