Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to save as standalone HTML file? #100

Closed
BigColombian opened this issue Jul 27, 2017 · 2 comments
Closed

Is it possible to save as standalone HTML file? #100

BigColombian opened this issue Jul 27, 2017 · 2 comments

Comments

@BigColombian
Copy link

BigColombian commented Jul 27, 2017

No description provided.

@BigColombian
Copy link
Author

BigColombian commented Jul 27, 2017

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

@chriddyp
Copy link
Member

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)

@plotly plotly deleted a comment from BigColombian Jul 28, 2017
@chriddyp chriddyp closed this as completed Aug 9, 2017
byronz added a commit that referenced this issue Apr 23, 2019
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 22, 2021
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 22, 2021
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants