diff --git a/doc/notebooks/01_tutorial_getting_started.ipynb b/doc/notebooks/01_tutorial_getting_started.ipynb
index 0d5e8378702ca9c450eb6452fe8db81e89a9f253..70b3c2a8a3e86d81fb8972ad50ffbdd0ad4bcb89 100644
--- a/doc/notebooks/01_tutorial_getting_started.ipynb
+++ b/doc/notebooks/01_tutorial_getting_started.ipynb
@@ -965,11 +965,10 @@
     }
    ],
    "source": [
-    "if img:\n",
-    "    filtered_image = np.zeros_like(img[..., 0])\n",
-    "    # here we call the compiled stencil function\n",
-    "    compiled_kernel(img=img, dst=filtered_image, w_2=0.5)\n",
-    "    plt.imshow(filtered_image, cmap='gray');"
+    "filtered_image = np.zeros_like(img[..., 0])\n",
+    "# here we call the compiled stencil function\n",
+    "compiled_kernel(img=img, dst=filtered_image, w_2=0.5)\n",
+    "plt.imshow(filtered_image, cmap='gray');"
    ]
   },
   {
diff --git a/doc/notebooks/demo_plotting_and_animation.ipynb b/doc/notebooks/demo_plotting_and_animation.ipynb
index 732f33bd01273442dc93898343f53b88343a949e..13d658a9cb4980a78cc984caeeb78e220b543553 100644
--- a/doc/notebooks/demo_plotting_and_animation.ipynb
+++ b/doc/notebooks/demo_plotting_and_animation.ipynb
@@ -6,7 +6,9 @@
    "metadata": {},
    "outputs": [],
    "source": [
-    "from pystencils.session import *"
+    "from pystencils.session import *\n",
+    "\n",
+    "import shutil"
    ]
   },
   {