nanohub-dash
Tools for running Dash applications on nanoHUB.
Documentation
Full documentation is available at https://nanohub-dash.readthedocs.io
Installation
pip install nanohub-dash
Features
- Jupyter Magic Command (
%set_dash_env): Configure environment variables for Dash apps directly in Jupyter notebooks - Command-line Tool (
start_dash): Launch Dash applications with automatic proxy configuration and header injection
Quick Start
Jupyter Notebook
%load_ext nanohubdash
%set_dash_env
import os
from dash import Dash, html
app = Dash(__name__,
routes_pathname_prefix=os.getenv("DASH_ROUTES_PATHNAME_PREFIX"),
requests_pathname_prefix=os.getenv("DASH_REQUESTS_PATHNAME_PREFIX")
)
app.layout = html.Div("Hello nanoHUB!")
if __name__ == "__main__":
app.run(
jupyter_server_url=os.environ.get("DASH_BASE_PROXY"),
host=os.environ.get("DASH_HOST", "0.0.0.0"),
port=os.environ.get("DASH_PORT", "8001"),
)
Command Line
start_dash --app myapp.py
Environment Variables
The magic command sets the following environment variables:
DASH_REQUESTS_PATHNAME_PREFIX- The proxy path prefix for Dash requestsDASH_ROUTES_PATHNAME_PREFIX- Set to/DASH_HOST- The bind host for DashDASH_PORT- The port for DashDASH_BASE_PROXY- The proxy URL (https://proxy.<hub_host>)
Requirements
- Python >= 3.8
- IPython >= 7.0
- Must be running on a nanoHUB environment with
SESSIONandSESSIONDIRenvironment variables set
License
MIT License - Copyright 2026 HUBzero Foundation, LLC.
Metadata
Release files for nanohub-dash 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| nanohub_dash-0.1.2.tar.gz | 11.2 kB | Without provenance | Details for nanohub_dash-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanohub_dash-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for nanohub_dash-0.1.2-py3-none-any.whl |
Total release size: 26.0 kB
Release files / nanohub_dash-0.1.2.tar.gz
| Download URL | nanohub_dash-0.1.2.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d4c035cc4f7941eb03ba15760a120318d5878ff9cef7afe3bba2ad5f31264db
|
|
BLAKE2b-256 checksum How to use checksums |
a80861f52d8e23eb370c1410cca5af462fd5ea733ef4e4642f3d9450132c1fe6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / nanohub_dash-0.1.2-py3-none-any.whl
| Download URL | nanohub_dash-0.1.2-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5696ff3030e6a4a3ffcc9fca186363e741d460420561635051fd7715013271ef
|
|
BLAKE2b-256 checksum How to use checksums |
6547396e4f046210200f2d0d69a8e042f9aac38a645ac8e22f93bd18a932b5bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Security for nanohub-dash 0.1.2
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.