Skip to main content

Jupyter magic commands for configuring Dash apps on nanoHUB

Project description

nanohub-dash

Documentation Status

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 requests
  • DASH_ROUTES_PATHNAME_PREFIX - Set to /
  • DASH_HOST - The bind host for Dash
  • DASH_PORT - The port for Dash
  • DASH_BASE_PROXY - The proxy URL (https://proxy.<hub_host>)

Requirements

  • Python >= 3.8
  • IPython >= 7.0
  • Must be running on a nanoHUB environment with SESSION and SESSIONDIR environment variables set

License

MIT License - Copyright 2026 HUBzero Foundation, LLC.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nanohub_dash-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nanohub_dash-0.1.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

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

Hashes for nanohub_dash-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d47ba0f04c8e94baea79f4ad36e42ed8233c1cd42bcac115e719c124a27ffd59
MD5 f7e010528cc0da02578a0a2b8cc842d7
BLAKE2b-256 dfc1c7cd393e1577930101b8fb68888d0cf011e383052b1ba68e5e68b985de43

See more details on using hashes here.

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

Hashes for nanohub_dash-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3df1480ea448f57ce38682add98ea7ccf08688480aa3e23ad6100dc0aa48420a
MD5 fcf8ac08aba06234dee18d8e0a45c4cc
BLAKE2b-256 e147cec5c43bf7a1a11b31ff49f75ca0d37e719734d7e713b618b8046d8698aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page