Skip to content

Commit 6500901

Browse files
committed
Explicitly import triplot from firedrake
1 parent 260d64a commit 6500901

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

01-spd-helmholtz.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"cell_type": "markdown",
123123
"metadata": {},
124124
"source": [
125-
"To start, we must make Firedrake available in the notebook. It is available as a normal Python package, named `firedrake`. To save on typing, we will import all of the public API into the current namespace"
125+
"To start, we must make Firedrake available in the notebook. We will import it through the `gadopt` package. To save on typing, we will import all of the public API into the current namespace. For plotting within this notebook, we also explicitly import the `triplot` function."
126126
]
127127
},
128128
{
@@ -131,7 +131,8 @@
131131
"metadata": {},
132132
"outputs": [],
133133
"source": [
134-
"from gadopt import *"
134+
"from gadopt import *\n",
135+
"from firedrake.pyplot import triplot, tripcolor"
135136
]
136137
},
137138
{

02-poisson.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
" !wget \"https://github.com/g-adopt/tutorials/releases/latest/download/firedrake-install-real.sh\" -O \"/tmp/firedrake-install.sh\" && bash \"/tmp/firedrake-install.sh\"\n",
6161
" import firedrake\n",
6262
"from gadopt import *\n",
63+
"from firedrake.pyplot import tripcolor\n",
6364
"mesh = UnitSquareMesh(10, 10)\n",
6465
"V = FunctionSpace(mesh, \"Lagrange\", 1)"
6566
]

0 commit comments

Comments
 (0)