Skip to content

Commit 1106027

Browse files
committed
Minor updates
* Jupyter now requires `from __future__` import to come first in a cell * Better explanation for advanced shooting point exercise * Notebooks based on newer (and Python 3) format
1 parent 09b5d98 commit 1106027

File tree

5 files changed

+78
-169
lines changed

5 files changed

+78
-169
lines changed

0_jupyter_intro.ipynb

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
{
1111
"cell_type": "code",
1212
"execution_count": null,
13-
"metadata": {
14-
"collapsed": true
15-
},
13+
"metadata": {},
1614
"outputs": [],
1715
"source": [
1816
"from __future__ import print_function\n",
@@ -36,9 +34,7 @@
3634
{
3735
"cell_type": "code",
3836
"execution_count": null,
39-
"metadata": {
40-
"collapsed": true
41-
},
37+
"metadata": {},
4238
"outputs": [],
4339
"source": [
4440
"?paths.ShootingPointAnalysis"
@@ -54,9 +50,7 @@
5450
{
5551
"cell_type": "code",
5652
"execution_count": null,
57-
"metadata": {
58-
"collapsed": true
59-
},
53+
"metadata": {},
6054
"outputs": [],
6155
"source": [
6256
"paths.CommittorSimulation?"
@@ -88,9 +82,7 @@
8882
{
8983
"cell_type": "code",
9084
"execution_count": null,
91-
"metadata": {
92-
"collapsed": true
93-
},
85+
"metadata": {},
9486
"outputs": [],
9587
"source": [
9688
"??paths.PathSampling"
@@ -115,9 +107,7 @@
115107
{
116108
"cell_type": "code",
117109
"execution_count": null,
118-
"metadata": {
119-
"collapsed": true
120-
},
110+
"metadata": {},
121111
"outputs": [],
122112
"source": [
123113
"paths."
@@ -149,9 +139,7 @@
149139
{
150140
"cell_type": "code",
151141
"execution_count": null,
152-
"metadata": {
153-
"collapsed": true
154-
},
142+
"metadata": {},
155143
"outputs": [],
156144
"source": [
157145
"message = \"Hello world\""
@@ -169,9 +157,7 @@
169157
{
170158
"cell_type": "code",
171159
"execution_count": null,
172-
"metadata": {
173-
"collapsed": true
174-
},
160+
"metadata": {},
175161
"outputs": [],
176162
"source": [
177163
"# Shows as comment in code; as header in Markdown. *Italics in Markdown*"
@@ -187,21 +173,21 @@
187173
],
188174
"metadata": {
189175
"kernelspec": {
190-
"display_name": "Python 2",
176+
"display_name": "Python 3",
191177
"language": "python",
192-
"name": "python2"
178+
"name": "python3"
193179
},
194180
"language_info": {
195181
"codemirror_mode": {
196182
"name": "ipython",
197-
"version": 2
183+
"version": 3
198184
},
199185
"file_extension": ".py",
200186
"mimetype": "text/x-python",
201187
"name": "python",
202188
"nbconvert_exporter": "python",
203-
"pygments_lexer": "ipython2",
204-
"version": "2.7.14"
189+
"pygments_lexer": "ipython3",
190+
"version": "3.7.2"
205191
}
206192
},
207193
"nbformat": 4,

1_tps_sampling_tutorial.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"metadata": {},
2929
"outputs": [],
3030
"source": [
31-
"%matplotlib inline\n",
3231
"from __future__ import print_function\n",
32+
"%matplotlib inline\n",
3333
"import matplotlib.pyplot as plt\n",
3434
"import numpy as np\n",
3535
"\n",
@@ -364,21 +364,21 @@
364364
],
365365
"metadata": {
366366
"kernelspec": {
367-
"display_name": "Python 2",
367+
"display_name": "Python 3",
368368
"language": "python",
369-
"name": "python2"
369+
"name": "python3"
370370
},
371371
"language_info": {
372372
"codemirror_mode": {
373373
"name": "ipython",
374-
"version": 2
374+
"version": 3
375375
},
376376
"file_extension": ".py",
377377
"mimetype": "text/x-python",
378378
"name": "python",
379379
"nbconvert_exporter": "python",
380-
"pygments_lexer": "ipython2",
381-
"version": "2.7.14"
380+
"pygments_lexer": "ipython3",
381+
"version": "3.7.2"
382382
}
383383
},
384384
"nbformat": 4,

0 commit comments

Comments
 (0)