open_atmos_jupyter_utils

open-atmos-jupyter-utils

License: GPL v3 Github Actions Status PyPI version

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)
  • TemporaryFile - a class equipped with make_link_widget() method returning a click-to-download Colab-compatible widget to be display()-ed in a Jupyter notebook
  • pip_install_on_colab('package_a', 'package_b', ...) - a function handling execution of pip (and ldconfig) on Colab

public API docs are maintained at: https://open-atmos.github.io/jupyter-utils/

1"""
2.. include::../README.md
3"""
4from open_atmos_jupyter_utils.pip_install_on_colab import pip_install_on_colab
5from open_atmos_jupyter_utils.temporary_file import TemporaryFile
6from open_atmos_jupyter_utils.show_plot import show_plot, save_and_make_link