I need most images in my jupyter notebook, https://cdn.rawgit.com/cqcn1991/Wind-Speed-Analysis/master/output_HTML/marham.html
The problem is that there are too many, and saving them one by one, by command or manually is very time-consuming.
Is there a way to automatically save all images in a notebook?
For example, maybe I can make a magic command
%matplotlib autosave
and the images would be saved sequentially, named as 1.pic, 2.pic ... in the dir of the notebook.
Addtionally, what is the recommand image format for publishing? It would be good if the image could be edit, change styles, etc.
You can use the convert option of Jupyter. The syntax is
jupyter nbconvert --to FORMAT notebook.ipynb
The default is html, so it will convert your images to PNG files. You can also use a LaTeX conversion
jupyter nbconvert --to latex notebook.ipynb
Alternatively, you can use the menu File>>Download as
, and use Markdown, reSTructured Text or LaTeX there.
Regarding the format for publication, it depends on the journal you're aiming. My suggestion would be to export your images as SVG when you want to edit later. Inkscape can be used for this purpose), and they can be embedded in LibreOffice. Use PDF when you want them ready to go. Vector graphics are generally better for the type of graphics in your notebook. If you're planning to use MS Word, then you might want to convert the graphics from SVG to EMF as an intermediate step.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With