Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ideonate/plotlydash-tornado-cmd
Simple wrapper to run a Plotly Dash script inside Tornado
https://github.com/ideonate/plotlydash-tornado-cmd
Last synced: about 2 months ago
JSON representation
Simple wrapper to run a Plotly Dash script inside Tornado
- Host: GitHub
- URL: https://github.com/ideonate/plotlydash-tornado-cmd
- Owner: ideonate
- License: apache-2.0
- Created: 2020-06-02T09:45:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-01T08:49:10.000Z (about 4 years ago)
- Last Synced: 2024-11-02T04:19:33.402Z (2 months ago)
- Language: Python
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# plotlydash-tornado-cmd
Command line wrapper to run a named Plotly Dash script inside a Tornado server.
This project is used in [ContainDS Dashboards](https://github.com/ideonate/cdsdashboards), 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 `
## Changelog
- v0.0.6 Change CWD to script's folder, and also add that folder to the Python search path.