Skip to content

Commit 2747bad

Browse files
authored
Merge pull request #296 from mfem/update-notebooks-sep2025
Update notebooks
2 parents baf8e68 + a257c64 commit 2747bad

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

examples/jupyter/ex1.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"outputs": [],
1515
"source": [
1616
"# Pip installs pyglvis (and pymfem) if in a colab notebook. Can comment out if not required\n",
17-
"!pip install --quiet glvis\n",
17+
"%pip install --quiet mfem==4.8.0 glvis\n",
1818
"from glvis import glvis, GlvisData"
1919
]
2020
},

examples/jupyter/ex9.ipynb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,13 @@
3737
"outputs": [],
3838
"source": [
3939
"# Pip installs pyglvis (and pymfem) if in a colab notebook. Can comment out if not required\n",
40-
"!pip install --quiet glvis\n",
41-
"from __future__ import print_function\n",
42-
"from os.path import expanduser, join\n",
40+
"%pip install --quiet mfem==4.8.0 glvis\n",
4341
"import time\n",
4442
"import numpy as np\n",
4543
"from numpy import sqrt, pi, cos, sin, hypot, arctan2\n",
4644
"from scipy.special import erfc\n",
4745
"import mfem.ser as mfem\n",
48-
"from mfem.ser import intArray\n",
49-
"from glvis import glvis"
46+
"from glvis import glvis, GlvisData"
5047
]
5148
},
5249
{

0 commit comments

Comments
 (0)