An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# datajoint-dashboard
Developing toolbox to build a Plotly Dash app for a DataJoint pipeline

A 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 TableBlock

app = 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:
![page preview](images/page_preview.png)