Skip to main content

Command line wrapper to run a named Plotly Dash script inside a Tornado server

Project description

plotlydash-tornado-cmd

Command line wrapper to run a named Plotly Dash script inside a Tornado server.

This project is used in ContainDS Dashboards, which is a user-friendly way to launch Jupyter notebooks as shareable dashboards inside JupyterHub. Also works with Streamlit and other visualization frameworks.

Install and Run

Install using pip.

pip install plotlydash-tornado-cmd

The file to start is specified on the command line, for example:

plotlydash-tornado-cmd ~/Dev/mydashscript.py

By default the server will listen on port 8888, importing the Dash app named 'app', or locating the first dash.Dash object that it can find otherwise.

To specify a different port, use the --port flag.

To explicitly specify the name of your dash.Dash app, use the --server-name flag.

plotlydash-tornado-cmd --server-name=app --port=8888 ~/Dev/mydashscript.py

To run directly in python: python -m plotlydash_tornado_cmd.main <rest of command line>

Changelog

  • v0.0.6 Change CWD to script's folder, and also add that folder to the Python search path.

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

plotlydash-tornado-cmd-0.0.6.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

plotlydash_tornado_cmd-0.0.6-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file plotlydash-tornado-cmd-0.0.6.tar.gz.

File metadata

  • Download URL: plotlydash-tornado-cmd-0.0.6.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.6

File hashes

Hashes for plotlydash-tornado-cmd-0.0.6.tar.gz
Algorithm Hash digest
SHA256 af508a04b6a38e03dc9add58c019ce0407b01c9053a850bd4c6c6a049f64bfaf
MD5 c686083c7708b0172c8e2b63d6540620
BLAKE2b-256 1cc7cb862656e1092658d1679d38227decd65a8d24d0199e342fab6390a3ff51

See more details on using hashes here.

File details

Details for the file plotlydash_tornado_cmd-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: plotlydash_tornado_cmd-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.6

File hashes

Hashes for plotlydash_tornado_cmd-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a4d4bb490230178dbf3eb1fea0126300a697c3fdf6ff4708a3f4501e173814b5
MD5 cba1e6c43ae34afd87cb66b219a26ee9
BLAKE2b-256 291c1b83ffb56adb76abe46df91439e9a613bba45e4612a4e6a7bbebca0b35bb

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