https://github.com/datajoint/datajoint-dashboard
Developing tool to build a Plotly Dash app for a DataJoint pipeline
https://github.com/datajoint/datajoint-dashboard
Last synced: 2 months ago
JSON representation
Developing tool to build a Plotly Dash app for a DataJoint pipeline
- Host: GitHub
- URL: https://github.com/datajoint/datajoint-dashboard
- Owner: datajoint
- Created: 2020-12-08T01:39:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-31T15:14:29.000Z (almost 4 years ago)
- Last Synced: 2025-04-05T19:51:12.849Z (3 months ago)
- Language: Python
- Size: 219 KB
- Stars: 3
- Watchers: 11
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# datajoint-dashboard
Developing toolbox to build a Plotly Dash app for a DataJoint pipelineA simple example to build a page for DataJoint table subject.Subject:
```
import dash
import dash_bootstrap_components as dbc
from pipeline import lab, subject # import all modules that the target tables may depend on
from datajoint_dashboard.templates import TableBlockapp = dash.Dash(__name__,
external_stylesheets=[dbc.themes.BOOTSTRAP],
suppress_callback_exceptions=True)app.layout = TableBlock(subject.Subject, app)
if name == '__main__':
app.run_server(port='8050')
```Run the script, open your broswer and visit http://localhost:8050, You will get a page like this:
