sd-material-ui
StratoDem Analytics Dash implementation of material-ui components.
Dash wrappers around the excellent material-ui
package
Installation and usage
$ pip install sd-material-ui
import dashimport dash_html_components as html import sd_material_ui my_app = # A FlatButton on Paper my_app.layout = # Callback for FlatButton if n_clicks_flat: return else:return if __name__ == '__main__':
Material-UI components ported to Dash
-
AutoComplete
-
BottomNavigation
-
Checkbox
-
CircularProgress
-
Dialog
-
Divider
-
Drawer
-
DropDownMenu
-
FlatButton
-
FontIcon
-
IconButton
-
Paper
-
RaisedButton
-
Snackbar
-
Subheader
-
Toggle
Examples
Dash
Go to this link to learn about Dash.
Dash help
See the dash-components-archetype repo for more information.
Contributing
To set up the development environment:
$ npm install# Run webpack to create the Dash React bundle $ npm run build-dist# Set up a virtualenv $ virtualenv venv -p python3$ source venv/bin/activate# Install the local Python Dash package $ npm run install-local
Running a local server
Run usage.py
in the virtual environment
$ source venv/bin/activate
$ python usage.py