| Total Complexity | 0 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import dash |
||
| 2 | import dash_core_components as dcc |
||
| 3 | import dash_html_components as html |
||
| 4 | |||
| 5 | external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] |
||
| 6 | |||
| 7 | app = dash.Dash(__name__, external_stylesheets=external_stylesheets) |
||
| 8 | |||
| 9 | markdown_text = ''' |
||
| 10 | ### Dash and Markdown |
||
| 11 | |||
| 12 | Dash apps can be written in Markdown. |
||
| 13 | Dash uses the [CommonMark](http://commonmark.org/) |
||
| 14 | specification of Markdown. |
||
| 15 | Check out their [60 Second Markdown Tutorial](http://commonmark.org/help/) |
||
| 16 | if this is your first introduction to Markdown! |
||
| 17 | ''' |
||
| 18 | |||
| 19 | app.layout = html.Div([ |
||
| 20 | dcc.Markdown(children=markdown_text) |
||
| 21 | ]) |
||
| 22 | |||
| 23 | if __name__ == '__main__': |
||
| 24 | app.run_server(debug=True) |
||
| 25 |