Utility routines used in Jupyter notebooks in PySDM, PyMPDATA and PyPartMC projects:
show_plot()
- a drop-in replacement for matplotlib's show() displaying the figure inline using vector graphics (svg) by default and offering a download-as-pdf-or-svg widget just below (on Colab the widget triggers Google Drive download)show_anim()
- a replacement for matplotlib's FuncAnimate() that inline-displays animations in gif format (thus github renderer compatible) and offers a way to download the .gif file (on Colab the widget triggers Google Drive download)TemporaryFile
- a class equipped withmake_link_widget()
method returning a click-to-download Colab-compatible widget to be display()-ed in a Jupyter notebookpip_install_on_colab('package_a', 'package_b', ...)
- a function handling execution ofpip
(andldconfig
) on Colab
public API docs are maintained at: https://open-atmos.github.io/jupyter-utils/