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.
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)
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
wgetor 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)