-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Raise warning in plotly.offline.plot when output_type='file' and include_plotlyjs=False #1227
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
Comments
Hi @capelastegui , thanks for the suggestion. Perhaps |
Hi @capelastegui, This issue was part of the motivation for the #1234 PR. Here is the updated docstring for
I don't want to make the |
Thanks, this looks great to me. I agree that throwing a new error risks breaking stuff - perhaps a warning could be useful instead? But the new explanation in the docs may be enough. |
Thanks for the feedback @capelastegui. A warning is a reasonable suggestion. I'm going to consider the |
Hi - we are currently trying to tidy up Plotly's public repositories to help us focus our efforts on things that will help users most. Since this issue has been sitting for several years, I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our backlog. Thanks for your help - @gvwilson |
When calling plotly.offline.plot(), if we use output_type='file' and include_plotlyjs=False, the resulting html file is useless, as it cannot be rendered.
I'm using plotly 3.3.0.
According to the documentation:
I guess we are not supposed to use include_plotly_js=False and output_type='file' at the same time? If that is the case, the function should probably raise an error, rather than generating a useless file. However, I think the ideal solution would be to have the standalone html load plotly.js from an online CDN, like we do in Jupyter notebooks after calling
init_notebook_mode(connected=False)
. So we would insert something like the following block in the html file:The text was updated successfully, but these errors were encountered: