diff --git a/examples/jupyter/ex1.ipynb b/examples/jupyter/ex1.ipynb index 6d01f832..bcfe50ab 100644 --- a/examples/jupyter/ex1.ipynb +++ b/examples/jupyter/ex1.ipynb @@ -14,7 +14,7 @@ "outputs": [], "source": [ "# Pip installs pyglvis (and pymfem) if in a colab notebook. Can comment out if not required\n", - "!pip install --quiet glvis\n", + "%pip install --quiet mfem==4.8.0 glvis\n", "from glvis import glvis, GlvisData" ] }, diff --git a/examples/jupyter/ex9.ipynb b/examples/jupyter/ex9.ipynb index cfc44e28..fb17c8c2 100644 --- a/examples/jupyter/ex9.ipynb +++ b/examples/jupyter/ex9.ipynb @@ -37,16 +37,13 @@ "outputs": [], "source": [ "# Pip installs pyglvis (and pymfem) if in a colab notebook. Can comment out if not required\n", - "!pip install --quiet glvis\n", - "from __future__ import print_function\n", - "from os.path import expanduser, join\n", + "%pip install --quiet mfem==4.8.0 glvis\n", "import time\n", "import numpy as np\n", "from numpy import sqrt, pi, cos, sin, hypot, arctan2\n", "from scipy.special import erfc\n", "import mfem.ser as mfem\n", - "from mfem.ser import intArray\n", - "from glvis import glvis" + "from glvis import glvis, GlvisData" ] }, {