Skip to content

Commit 614327b

Browse files
committed
this may address nicole's import error.
hard for me to test, though
1 parent b0f05eb commit 614327b

1 file changed

Lines changed: 9 additions & 16 deletions

File tree

lithology/introduction_to_lithology.ipynb

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
"import numpy as np\n",
3333
"import xarray as xr\n",
3434
"import dask\n",
35+
"\n",
36+
"import matplotlib\n",
37+
"matplotlib.use('Agg')\n",
38+
"import matplotlib.pyplot as plt\n",
3539
"%matplotlib inline\n",
3640
"\n",
3741
"import holoviews as hv\n",
@@ -261,9 +265,7 @@
261265
{
262266
"cell_type": "code",
263267
"execution_count": null,
264-
"metadata": {
265-
"collapsed": true
266-
},
268+
"metadata": {},
267269
"outputs": [],
268270
"source": [
269271
"imshow_grid(mg, 'topographic__elevation', cmap='viridis')"
@@ -283,9 +285,7 @@
283285
{
284286
"cell_type": "code",
285287
"execution_count": null,
286-
"metadata": {
287-
"collapsed": true
288-
},
288+
"metadata": {},
289289
"outputs": [],
290290
"source": [
291291
"hvds_topo = hv.Dataset(ds.topographic__elevation)\n",
@@ -305,9 +305,7 @@
305305
{
306306
"cell_type": "code",
307307
"execution_count": null,
308-
"metadata": {
309-
"collapsed": true
310-
},
308+
"metadata": {},
311309
"outputs": [],
312310
"source": [
313311
"%opts Image style(interpolation='bilinear', cmap='viridis') plot[colorbar=True]\n",
@@ -427,9 +425,7 @@
427425
{
428426
"cell_type": "code",
429427
"execution_count": null,
430-
"metadata": {
431-
"collapsed": true
432-
},
428+
"metadata": {},
433429
"outputs": [],
434430
"source": [
435431
"imshow_grid(mg2, 'topographic__elevation', cmap='viridis')"
@@ -447,9 +443,7 @@
447443
{
448444
"cell_type": "code",
449445
"execution_count": null,
450-
"metadata": {
451-
"collapsed": true
452-
},
446+
"metadata": {},
453447
"outputs": [],
454448
"source": [
455449
"volcanic_deposits = np.zeros(mg2.size('node'))\n",
@@ -505,7 +499,6 @@
505499
"cell_type": "code",
506500
"execution_count": null,
507501
"metadata": {
508-
"collapsed": true,
509502
"scrolled": true
510503
},
511504
"outputs": [],

0 commit comments

Comments
 (0)