-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Use tempfile module to create temporary file for offline.plot #395
Comments
Another advantage would be avoiding the situation where you make two calls to |
hey @joshburkart -
Is my understanding of
I totally agree with you on this - it's really easy to accidentely overwrite a file the way we have it set up right now. I'm open to other suggestions! |
Let's revisit this as a configuration option when get to working on the |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories 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 stack. Cheers - @gvwilson |
Right now the default file that
plotly.offline.plot
outputs to istemp-plot.html
in the current working directory. I think it would be better to create a real temporary file using e.g.tempfile.NamedTemporaryFile
so as not to pollute the current working directory?Happy to contribute this myself but thought I'd test the waters first. :)
The text was updated successfully, but these errors were encountered: