No project description provided
Project description
JupyterLab MLflow Extension
A JupyterLab extension for browsing MLflow experiments, runs, models, and artifacts directly from the JupyterLab sidebar.
Features
- Browse MLflow experiments, runs, models, and artifacts
- Tree view for hierarchical navigation
- Details/Object view for exploring metadata and child objects
- View artifacts in new JupyterLab tabs
- Copy experiment/run/model IDs to clipboard
- Generate and insert MLflow Python API code snippets
- Connect to remote MLflow tracking servers
- Launch local MLflow server with SQLite backend
- Settings UI with environment variable fallback
- MLflow shortcuts panel for common operations
Requirements
- JupyterLab >= 4.0.0
- Python >= 3.8
- MLflow >= 2.0.0
Installation
pip install jupyterlab-mlflow
Or install from source:
git clone https://github.com/BioLM/jupyterlab-mlflow.git
cd jupyterlab-mlflow
pip install -e .
jlpm install
jlpm build
Configuration
The extension can be configured via:
- Settings UI: Open JupyterLab Settings → Advanced Settings Editor → MLflow
- Environment Variable: Set
MLFLOW_TRACKING_URIenvironment variable
Server Extension
The extension includes a server-side component that must be enabled. After installation, enable it with:
jupyter server extension enable jupyterlab_mlflow.serverextension
Or enable it system-wide:
jupyter server extension enable jupyterlab_mlflow.serverextension --sys-prefix
Verify it's enabled:
jupyter server extension list
You should see jupyterlab_mlflow.serverextension in the enabled extensions list.
Note: In some JupyterLab deployments (especially managed environments), the server extension may need to be enabled by an administrator or configured in the deployment settings.
Troubleshooting
If you're experiencing 404 errors when using the extension:
-
Run the diagnostic script:
python scripts/diagnose_extension.pyThis will check:
- Package installation
- Entry point discovery
- Configuration files
- Extension status
- Handler registration
-
Check if the extension is enabled:
jupyter server extension list | grep mlflow
If it's not listed or not enabled, enable it:
jupyter server extension enable jupyterlab_mlflow.serverextension
-
Verify the health endpoint: After starting JupyterLab, try accessing:
http://your-jupyterlab-url/mlflow/api/healthIf this returns
{"status": "ok", ...}, the extension is loaded correctly. -
Check server logs: Look for messages like:
✅ Registered jupyterlab-mlflow server extension ✅ Registered 11 API handlers with base_url: /jupyter/ -
For managed deployments:
- Ensure the package is installed in the correct Python environment
- Check that config files are present in
/etc/jupyter/or the deployment's config directory - Verify that entry points are discoverable (the diagnostic script checks this)
- Some managed environments require explicit enablement even with config files
Usage
- Configure your MLflow tracking URI in the settings or via environment variable
- The MLflow sidebar will appear in the left sidebar
- Browse experiments, runs, models, and artifacts
- Click on artifacts to view them in new tabs
- Right-click on items to copy IDs to clipboard
Development
Quick Local Testing
To test the extension locally without publishing to PyPI:
# Option 1: Use the test script (recommended)
./test_server_extension.sh
# Option 2: Manual steps
pip install -e .
npm run build:lib
python -m jupyter labextension build . --dev
jupyter server extension enable jupyterlab_mlflow.serverextension
jupyter lab
Testing API Endpoints
After starting JupyterLab, test the server extension API endpoints:
# In another terminal, test the endpoints
./test_api_endpoints.sh http://localhost:8888 http://localhost:5000
Or manually test with curl:
# Test connection endpoint
curl "http://localhost:8888/mlflow/api/connection/test?tracking_uri=http://localhost:5000"
# Test local server status
curl "http://localhost:8888/mlflow/api/local-server"
Development Workflow
# Install dependencies
jlpm install
# Build the extension
jlpm build
# Watch for changes
jlpm watch
# Run tests
pytest
Publishing
This package uses automatic version bumping and is published to PyPI when a new release is created on GitHub.
Automatic Version Bumping
Version bumping is handled automatically by semantic-release based on commit messages:
feat: something→ minor version bump (0.1.0 → 0.2.0)fix: something→ patch version bump (0.1.0 → 0.1.1)BREAKING: something→ major version bump (0.1.0 → 1.0.0)
When you push to main, semantic-release will:
- Analyze commits since last release
- Bump version in
package.json(if needed) - Create a git tag
- Push the tag to GitHub
Publishing to PyPI
-
Create a GitHub Release:
- Go to: https://github.com/BioLM/jupyterlab-mlflow/releases/new
- Select the tag created by semantic-release (e.g.,
v0.2.0) - Add release notes
- Click "Publish release"
-
Automatic Publishing:
- The publish workflow automatically builds and publishes to PyPI
- No manual steps required after creating the release
See PUBLISHING.md for detailed instructions.
License
BSD-3-Clause
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jupyterlab_mlflow-0.2.9.tar.gz.
File metadata
- Download URL: jupyterlab_mlflow-0.2.9.tar.gz
- Upload date:
- Size: 191.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a77d7c5bb4f55ec4a5b9327b3005edbd334cd5175bb6c07a3a53cd2e99528715
|
|
| MD5 |
808fa2fc661979927acc601ba7c0d3c0
|
|
| BLAKE2b-256 |
4a16477019f00de481d03362d77acf57d29425ed46b4fdd8c14eb5b110b73982
|
Provenance
The following attestation bundles were made for jupyterlab_mlflow-0.2.9.tar.gz:
Publisher:
publish.yml on BioLM/jupyterlab-mlflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jupyterlab_mlflow-0.2.9.tar.gz -
Subject digest:
a77d7c5bb4f55ec4a5b9327b3005edbd334cd5175bb6c07a3a53cd2e99528715 - Sigstore transparency entry: 685391512
- Sigstore integration time:
-
Permalink:
BioLM/jupyterlab-mlflow@fe2d6a814bd0111e0eea9304cae74b6fb8ac25b9 -
Branch / Tag:
refs/tags/v0.2.9 - Owner: https://github.com/BioLM
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fe2d6a814bd0111e0eea9304cae74b6fb8ac25b9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jupyterlab_mlflow-0.2.9-py3-none-any.whl.
File metadata
- Download URL: jupyterlab_mlflow-0.2.9-py3-none-any.whl
- Upload date:
- Size: 42.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45705ba7bda5056dc2cf20a94bc2b6220e36c1520db530203109cabe4e174a6e
|
|
| MD5 |
f3f472a8a2b9dc596d332a07764bc2f1
|
|
| BLAKE2b-256 |
7d80d322e9c0d3dcb4245ff3478c8912319b12766ef3c7069b912c7a71443461
|
Provenance
The following attestation bundles were made for jupyterlab_mlflow-0.2.9-py3-none-any.whl:
Publisher:
publish.yml on BioLM/jupyterlab-mlflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jupyterlab_mlflow-0.2.9-py3-none-any.whl -
Subject digest:
45705ba7bda5056dc2cf20a94bc2b6220e36c1520db530203109cabe4e174a6e - Sigstore transparency entry: 685391514
- Sigstore integration time:
-
Permalink:
BioLM/jupyterlab-mlflow@fe2d6a814bd0111e0eea9304cae74b6fb8ac25b9 -
Branch / Tag:
refs/tags/v0.2.9 - Owner: https://github.com/BioLM
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fe2d6a814bd0111e0eea9304cae74b6fb8ac25b9 -
Trigger Event:
release
-
Statement type: