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 benefit: Jupyter users won't have to look up e.g. fig.savefig("img/foo.png") or similar lines for other libraries and can simply type %%save_png.
I think IPython might be a good place for this feature, as similar cell magic already exists, and users won't need to install another package.
The text was updated successfully, but these errors were encountered:
There might be a more general approach, e.g.
%%save_outputs path/to
As a short hand for
%%save_outputs --path path/to --pattern {idx}.{ext}
Where _all_ outputs would get written, with an incrementing counter, e.g
path/to/00.png
path/to/00.txt
Perhaps it could take as arguments extensions and/or mimetypes to limit
this set.
This is not entirely like nbexplode, and has also been used a few times
where splitting (especially base64) content out from json is desirable.
Re: nbexplode, thombashi/sqlitebiter will also split a notebook into components across a set of simple sqlite database tables. (I don't think there's a recombiner though?)
Similar to %%capture, it would be nice to have a cell magic to save Jupyter image cell output to files.
Usage could look like this:
and an implementation could look like this:
https://discourse.jupyter.org/t/cell-magic-to-save-image-output-as-a-png-file/11906/2?u=kolibril13
The benefit: Jupyter users won't have to look up e.g.
fig.savefig("img/foo.png")
or similar lines for other libraries and can simply type%%save_png
.I think IPython might be a good place for this feature, as similar cell magic already exists, and users won't need to install another package.
The text was updated successfully, but these errors were encountered: