You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plt.savefig saves the figure on the ipython notebook server. It would be great to be able to download the figure (preferable as pdf) to the client browser directly. Either as a python command in a cell or as a button on the figure (save as..), which would trigger a browser file download / open.
The text was updated successfully, but these errors were encountered:
This is true for any file type, not only figures saved with savefig. And this is why we provide FileLink.
The following does what you expect. You might need to use display if have code after publishing the link:
from IPython.display import FileLink, display
plot(range(10))
savefig('foo.pdf')
FileLink('foo.pdf') #wrap in display if code after.
Some kind of save button might be useful when we add more interactivity
with plots, though. You can already right click on the image and save it,
but that can't save a vector form (assuming you're using the default, png
display)
This is true for any file type, not only figures saved with savefig. And
this is why we provide FileLink.
The following does what you expect. You might need to use display if have
code after publishing the link:
from IPython.display import FileLink, display
plot(range(10))
savefig('foo.pdf')
FileLink('foo.pdf') #wrap in display if code after.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/3446#issuecomment-19686592
.
The plt.savefig saves the figure on the ipython notebook server. It would be great to be able to download the figure (preferable as pdf) to the client browser directly. Either as a python command in a cell or as a button on the figure (save as..), which would trigger a browser file download / open.
The text was updated successfully, but these errors were encountered: