Skip to content

Commit 95bc950

Browse files
author
Michael Tsang
committed
add %matplotlib inline flag to demos
1 parent aba1210 commit 95bc950

4 files changed

+14
-11
lines changed

demos/1. text analysis/demo_bert_tf.ipynb

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"from viz.text import viz_text\n",
1919
"\n",
2020
"%load_ext autoreload\n",
21-
"%autoreload 2"
21+
"%autoreload 2\n",
22+
"%matplotlib inline"
2223
]
2324
},
2425
{
@@ -147,7 +148,7 @@
147148
],
148149
"metadata": {
149150
"kernelspec": {
150-
"display_name": "Python 3",
151+
"display_name": "Python [default]",
151152
"language": "python",
152153
"name": "python3"
153154
},
@@ -161,7 +162,7 @@
161162
"name": "python",
162163
"nbconvert_exporter": "python",
163164
"pygments_lexer": "ipython3",
164-
"version": "3.6.12"
165+
"version": "3.6.2"
165166
}
166167
},
167168
"nbformat": 4,

demos/1. text analysis/demo_bert_torch.ipynb

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"from viz.text import viz_text\n",
1919
"\n",
2020
"%load_ext autoreload\n",
21-
"%autoreload 2"
21+
"%autoreload 2\n",
22+
"%matplotlib inline"
2223
]
2324
},
2425
{
@@ -148,7 +149,7 @@
148149
],
149150
"metadata": {
150151
"kernelspec": {
151-
"display_name": "Python 3",
152+
"display_name": "Python [default]",
152153
"language": "python",
153154
"name": "python3"
154155
},
@@ -162,7 +163,7 @@
162163
"name": "python",
163164
"nbconvert_exporter": "python",
164165
"pygments_lexer": "ipython3",
165-
"version": "3.6.12"
166+
"version": "3.6.2"
166167
}
167168
},
168169
"nbformat": 4,

demos/1. text analysis/demo_bert_torch_submission_figure.ipynb

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"from matplotlib import lines\n",
2424
"\n",
2525
"%load_ext autoreload\n",
26-
"%autoreload 2"
26+
"%autoreload 2\n",
27+
"%matplotlib inline"
2728
]
2829
},
2930
{
@@ -243,7 +244,7 @@
243244
],
244245
"metadata": {
245246
"kernelspec": {
246-
"display_name": "Python 3",
247+
"display_name": "Python [default]",
247248
"language": "python",
248249
"name": "python3"
249250
},
@@ -257,7 +258,7 @@
257258
"name": "python",
258259
"nbconvert_exporter": "python",
259260
"pygments_lexer": "ipython3",
260-
"version": "3.6.12"
261+
"version": "3.6.2"
261262
}
262263
},
263264
"nbformat": 4,

demos/1. text analysis/demo_bert_torch_word_level.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"from application_utils.text_utils_torch import BertWrapperTorch\n",
2525
"from viz.text import viz_text\n",
2626
"\n",
27-
"%matplotlib inline\n",
2827
"%load_ext autoreload\n",
29-
"%autoreload 2"
28+
"%autoreload 2\n",
29+
"%matplotlib inline"
3030
]
3131
},
3232
{

0 commit comments

Comments
 (0)