Dash: Is it possible to save as standalone HTML file?

Created on 27 Jul 2017  路  2Comments  路  Source: plotly/dash

Most helpful comment

If you're just looking for a solution with Graphs, then use the plotly python graphing library in offline mode. This saves an HTML file: https://plot.ly/python/offline.

Otherwise, you could run a Dash app and then maybe use something like wget or the browser to download a snapshot of that HTML file. However, don't expect that the widgets in the file will work - they require a Python backend (as that's the other half of Dash apps: custom Python callbacks that describe and update your application)

All 2 comments

I would like to be able to programmatically save my interactive graphs from dash locally so that they can be viewed by another user without having to use Python or run a plotly server. Is this possible? As an example - bokeh has this feature - but I would prefer to use dash since everything can be created in pure Python.

I found an example where the script for a plotly graph can printed out and inserted into an HTML file. I tried implementing this in Dash, but could not figure out how to access all of the scripts that allow the dashboard to render in the browser.

https://stackoverflow.com/questions/36262748/python-save-plotly-plot-to-local-file-and-insert-into-html

If you're just looking for a solution with Graphs, then use the plotly python graphing library in offline mode. This saves an HTML file: https://plot.ly/python/offline.

Otherwise, you could run a Dash app and then maybe use something like wget or the browser to download a snapshot of that HTML file. However, don't expect that the widgets in the file will work - they require a Python backend (as that's the other half of Dash apps: custom Python callbacks that describe and update your application)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jerry-Ma picture Jerry-Ma  路  3Comments

Ricardo-C-Oliveira picture Ricardo-C-Oliveira  路  4Comments

ninjakx picture ninjakx  路  3Comments

germayneng picture germayneng  路  4Comments

Mondrik picture Mondrik  路  3Comments