Skip to content

Commit a766530

Browse files
committed
FIX: correct matplotlib warning after nilearn plotting import [skip ci]
1 parent 4def2bb commit a766530

6 files changed

+10
-0
lines changed

notebooks/basic_import_workflows.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
"metadata": {},
119119
"outputs": [],
120120
"source": [
121+
"from nilearn import plotting\n",
121122
"%matplotlib inline\n",
122123
"import matplotlib.pyplot as plt\n",
123124
"from IPython.display import Image\n",

notebooks/example_1stlevel.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"metadata": {},
3434
"outputs": [],
3535
"source": [
36+
"from nilearn import plotting\n",
3637
"%matplotlib inline\n",
3738
"from os.path import join as opj\n",
3839
"import json\n",

notebooks/example_2ndlevel.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"metadata": {},
3333
"outputs": [],
3434
"source": [
35+
"from nilearn import plotting\n",
3536
"%matplotlib inline\n",
3637
"from os.path import join as opj\n",
3738
"from nipype.interfaces.io import SelectFiles, DataSink\n",

notebooks/example_preprocessing.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"metadata": {},
7979
"outputs": [],
8080
"source": [
81+
"from nilearn import plotting\n",
8182
"%matplotlib inline\n",
8283
"from os.path import join as opj\n",
8384
"import os\n",

notebooks/handson_analysis.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
"metadata": {},
4343
"outputs": [],
4444
"source": [
45+
"from nilearn import plotting\n",
46+
"%matplotlib inline\n",
47+
"\n",
4548
"# Get the Node and Workflow object\n",
4649
"from nipype import Node, Workflow\n",
4750
"\n",

notebooks/handson_preprocessing.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
"metadata": {},
7171
"outputs": [],
7272
"source": [
73+
"from nilearn import plotting\n",
74+
"%matplotlib inline\n",
75+
"\n",
7376
"# Get the Node and Workflow object\n",
7477
"from nipype import Node, Workflow\n",
7578
"\n",

0 commit comments

Comments
 (0)