From 9b0f9ae2b857066c4761d736e54e500e938cfca9 Mon Sep 17 00:00:00 2001 From: Sylwester Arabas Date: Mon, 23 Sep 2024 00:00:11 +0200 Subject: [PATCH 1/2] add missing Colab header-cell to advection-diffusion-2d.ipynb --- .../advection-diffusion-2d.ipynb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/examples/PyMPDATA_examples/advection_diffusion_2d/advection-diffusion-2d.ipynb b/examples/PyMPDATA_examples/advection_diffusion_2d/advection-diffusion-2d.ipynb index c843a777..017e8053 100644 --- a/examples/PyMPDATA_examples/advection_diffusion_2d/advection-diffusion-2d.ipynb +++ b/examples/PyMPDATA_examples/advection_diffusion_2d/advection-diffusion-2d.ipynb @@ -10,6 +10,23 @@ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PyMPDATA/blob/main/examples/PyMPDATA_examples/advection_diffusion_2d/advection-diffusion-2d.ipynb)" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, + "outputs": [], + "source": [ + "import sys\n", + "if 'google.colab' in sys.modules:\n", + " !pip --quiet install open-atmos-jupyter-utils\n", + " from open_atmos_jupyter_utils import pip_install_on_colab\n", + " pip_install_on_colab('PyMPDATA-examples')" + ] + }, { "cell_type": "code", "id": "43d2893d-f472-43ac-ad5b-bf342a3783b9", From 0ce08f76747b70c11d992b4ddecf96f12c33708b Mon Sep 17 00:00:00 2001 From: Sylwester Arabas Date: Mon, 23 Sep 2024 00:06:18 +0200 Subject: [PATCH 2/2] add an id field --- .../advection_diffusion_2d/advection-diffusion-2d.ipynb | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/PyMPDATA_examples/advection_diffusion_2d/advection-diffusion-2d.ipynb b/examples/PyMPDATA_examples/advection_diffusion_2d/advection-diffusion-2d.ipynb index 017e8053..fbc5cf35 100644 --- a/examples/PyMPDATA_examples/advection_diffusion_2d/advection-diffusion-2d.ipynb +++ b/examples/PyMPDATA_examples/advection_diffusion_2d/advection-diffusion-2d.ipynb @@ -12,6 +12,7 @@ }, { "cell_type": "code", + "id": "e333666d", "execution_count": null, "metadata": { "pycharm": {