Jupyter magic commands for configuring Dash apps on nanoHUB
Project description
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
from dash import Dash, html
app = Dash(__name__)
app.layout = html.Div("Hello nanoHUB!")
if __name__ == "__main__":
app.run_server()
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.
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 nanohub_dash-0.1.0.tar.gz.
File metadata
- Download URL: nanohub_dash-0.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d47ba0f04c8e94baea79f4ad36e42ed8233c1cd42bcac115e719c124a27ffd59
|
|
| MD5 |
f7e010528cc0da02578a0a2b8cc842d7
|
|
| BLAKE2b-256 |
dfc1c7cd393e1577930101b8fb68888d0cf011e383052b1ba68e5e68b985de43
|
File details
Details for the file nanohub_dash-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nanohub_dash-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3df1480ea448f57ce38682add98ea7ccf08688480aa3e23ad6100dc0aa48420a
|
|
| MD5 |
fcf8ac08aba06234dee18d8e0a45c4cc
|
|
| BLAKE2b-256 |
e147cec5c43bf7a1a11b31ff49f75ca0d37e719734d7e713b618b8046d8698aa
|