Skip to content

Commit 73e439b

Browse files
committed
WIP: adding future notebook ideas
1 parent c2d6b0d commit 73e439b

7 files changed

+285
-13
lines changed

notebooks/y_exercise_example.ipynb

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Two ideas on how to hide solutions"
8+
]
9+
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
"## Idea 1: Hide answer in base64"
15+
]
16+
},
17+
{
18+
"cell_type": "code",
19+
"execution_count": 30,
20+
"metadata": {
21+
"collapsed": false
22+
},
23+
"outputs": [
24+
{
25+
"data": {
26+
"text/plain": [
27+
"'JXB5bGFiIGlubGluZQpmcm9tIG9zLnBhdGggaW1wb3J0IGpvaW4gYXMgb3BqCmZyb20gbmlweXBlLmludGVyZmFjZXMuZnNsIGltcG9ydCBNQ0ZMSVJULCBGTElSVApmcm9tIG5pcHlwZS5pbnRlcmZhY2VzLmFmbmkgaW1wb3J0IFJlc2FtcGxlCmZyb20gbmlweXBlLmludGVyZmFjZXMuc3BtIGltcG9ydCBTbW9vdGgKZnJvbSBuaXB5cGUuaW50ZXJmYWNlcy51dGlsaXR5IGltcG9ydCBJZGVudGl0eUludGVyZmFjZQpmcm9tIG5pcHlwZS5pbnRlcmZhY2VzLmlvIGltcG9ydCBTZWxlY3RGaWxlcywgRGF0YVNpbmsKZnJvbSBuaXB5cGUucGlwZWxpbmUuZW5naW5lIGltcG9ydCBXb3JrZmxvdywgTm9kZQ=='"
28+
]
29+
},
30+
"execution_count": 30,
31+
"metadata": {},
32+
"output_type": "execute_result"
33+
}
34+
],
35+
"source": [
36+
"import base64\n",
37+
"base64.b64encode(\"\"\"%pylab inline\n",
38+
"from os.path import join as opj\n",
39+
"from nipype.interfaces.fsl import MCFLIRT, FLIRT\n",
40+
"from nipype.interfaces.afni import Resample\n",
41+
"from nipype.interfaces.spm import Smooth\n",
42+
"from nipype.interfaces.utility import IdentityInterface\n",
43+
"from nipype.interfaces.io import SelectFiles, DataSink\n",
44+
"from nipype.pipeline.engine import Workflow, Node\"\"\")"
45+
]
46+
},
47+
{
48+
"cell_type": "code",
49+
"execution_count": 31,
50+
"metadata": {
51+
"collapsed": false
52+
},
53+
"outputs": [
54+
{
55+
"name": "stdout",
56+
"output_type": "stream",
57+
"text": [
58+
"%pylab inline\n",
59+
"from os.path import join as opj\n",
60+
"from nipype.interfaces.fsl import MCFLIRT, FLIRT\n",
61+
"from nipype.interfaces.afni import Resample\n",
62+
"from nipype.interfaces.spm import Smooth\n",
63+
"from nipype.interfaces.utility import IdentityInterface\n",
64+
"from nipype.interfaces.io import SelectFiles, DataSink\n",
65+
"from nipype.pipeline.engine import Workflow, Node\n"
66+
]
67+
}
68+
],
69+
"source": [
70+
"print base64.b64decode('JXB5bGFiIGlubGluZQpmcm9tIG9zLnBhdGggaW1wb3J0IGpvaW4gYXMgb3BqCmZyb20gbmlweXBlLmludGVyZmFjZXMuZnNsIGltcG9ydCBNQ0ZMSVJULCBGTElSVApmcm9tIG5pcHlwZS5pbnRlcmZhY2VzLmFmbmkgaW1wb3J0IFJlc2FtcGxlCmZyb20gbmlweXBlLmludGVyZmFjZXMuc3BtIGltcG9ydCBTbW9vdGgKZnJvbSBuaXB5cGUuaW50ZXJmYWNlcy51dGlsaXR5IGltcG9ydCBJZGVudGl0eUludGVyZmFjZQpmcm9tIG5pcHlwZS5pbnRlcmZhY2VzLmlvIGltcG9ydCBTZWxlY3RGaWxlcywgRGF0YVNpbmsKZnJvbSBuaXB5cGUucGlwZWxpbmUuZW5naW5lIGltcG9ydCBXb3JrZmxvdywgTm9kZQ==')"
71+
]
72+
},
73+
{
74+
"cell_type": "markdown",
75+
"metadata": {},
76+
"source": [
77+
"## Idea 2: Hide answer in file"
78+
]
79+
},
80+
{
81+
"cell_type": "code",
82+
"execution_count": 39,
83+
"metadata": {
84+
"collapsed": false
85+
},
86+
"outputs": [
87+
{
88+
"name": "stdout",
89+
"output_type": "stream",
90+
"text": [
91+
"Writing answer01.py\n"
92+
]
93+
}
94+
],
95+
"source": [
96+
"%%file answer01.py\n",
97+
"%pylab inline\n",
98+
"from os.path import join as opj\n",
99+
"from nipype.interfaces.fsl import MCFLIRT, FLIRT\n",
100+
"from nipype.interfaces.afni import Resample\n",
101+
"from nipype.interfaces.spm import Smooth\n",
102+
"from nipype.interfaces.utility import IdentityInterface\n",
103+
"from nipype.interfaces.io import SelectFiles, DataSink\n",
104+
"from nipype.pipeline.engine import Workflow, Node"
105+
]
106+
},
107+
{
108+
"cell_type": "code",
109+
"execution_count": null,
110+
"metadata": {
111+
"collapsed": false
112+
},
113+
"outputs": [],
114+
"source": [
115+
"%load answer01.py"
116+
]
117+
}
118+
],
119+
"metadata": {
120+
"kernelspec": {
121+
"display_name": "Python [default]",
122+
"language": "python",
123+
"name": "python2"
124+
},
125+
"language_info": {
126+
"codemirror_mode": {
127+
"name": "ipython",
128+
"version": 2
129+
},
130+
"file_extension": ".py",
131+
"mimetype": "text/x-python",
132+
"name": "python",
133+
"nbconvert_exporter": "python",
134+
"pygments_lexer": "ipython2",
135+
"version": "2.7.13"
136+
}
137+
},
138+
"nbformat": 4,
139+
"nbformat_minor": 2
140+
}

notebooks/z_advanced_caching.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"http://nipype.readthedocs.io/en/latest/users/caching_tutorial.html"
8+
]
9+
},
310
{
411
"cell_type": "markdown",
512
"metadata": {},

notebooks/z_advanced_commandline.ipynb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {
6+
"collapsed": true
7+
},
8+
"source": [
9+
"http://nipype.readthedocs.io/en/latest/users/cli.html"
10+
]
11+
},
12+
{
13+
"cell_type": "markdown",
14+
"metadata": {
15+
"collapsed": true
16+
},
17+
"source": [
18+
"http://nipype.readthedocs.io/en/latest/users/nipypecmd.html"
19+
]
20+
},
321
{
422
"cell_type": "code",
523
"execution_count": null,

notebooks/z_advanced_databases.ipynb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"https://github.com/nipy/nipype/blob/master/examples/fmri_ants_openfmri.py"
8+
]
9+
},
10+
{
11+
"cell_type": "code",
12+
"execution_count": null,
13+
"metadata": {
14+
"collapsed": true
15+
},
16+
"outputs": [],
17+
"source": []
18+
},
319
{
420
"cell_type": "markdown",
521
"metadata": {},

notebooks/z_advanced_debug.ipynb

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"http://nipype.readthedocs.io/en/latest/users/debug.html"
8+
]
9+
},
10+
{
11+
"cell_type": "code",
12+
"execution_count": null,
13+
"metadata": {
14+
"collapsed": true
15+
},
16+
"outputs": [],
17+
"source": []
18+
}
19+
],
20+
"metadata": {
21+
"kernelspec": {
22+
"display_name": "Python [default]",
23+
"language": "python",
24+
"name": "python2"
25+
},
26+
"language_info": {
27+
"codemirror_mode": {
28+
"name": "ipython",
29+
"version": 2
30+
},
31+
"file_extension": ".py",
32+
"mimetype": "text/x-python",
33+
"name": "python",
34+
"nbconvert_exporter": "python",
35+
"pygments_lexer": "ipython2",
36+
"version": "2.7.13"
37+
}
38+
},
39+
"nbformat": 4,
40+
"nbformat_minor": 2
41+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"http://nipype.readthedocs.io/en/latest/users/saving_workflows.html"
8+
]
9+
},
10+
{
11+
"cell_type": "code",
12+
"execution_count": null,
13+
"metadata": {
14+
"collapsed": true
15+
},
16+
"outputs": [],
17+
"source": []
18+
}
19+
],
20+
"metadata": {
21+
"kernelspec": {
22+
"display_name": "Python [default]",
23+
"language": "python",
24+
"name": "python2"
25+
},
26+
"language_info": {
27+
"codemirror_mode": {
28+
"name": "ipython",
29+
"version": 2
30+
},
31+
"file_extension": ".py",
32+
"mimetype": "text/x-python",
33+
"name": "python",
34+
"nbconvert_exporter": "python",
35+
"pygments_lexer": "ipython2",
36+
"version": "2.7.13"
37+
}
38+
},
39+
"nbformat": 4,
40+
"nbformat_minor": 2
41+
}

notebooks/z_resources_faq.ipynb renamed to notebooks/z_development_wrap_your_interface.ipynb

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,40 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"metadata": {
6-
"collapsed": true
7-
},
5+
"metadata": {},
86
"source": [
9-
"# Frequently Asked Questions\n",
10-
"\n",
11-
"This section will cover all FAQ around Nipype. For questions about neuroimaging in general, see the [FAQ on the Nipype Beginner's Guide](http://miykael.github.io/nipype-beginner-s-guide/faq.html)."
7+
"http://nipype.readthedocs.io/en/latest/devel/cmd_interface_devel.html"
128
]
139
},
1410
{
1511
"cell_type": "markdown",
1612
"metadata": {},
1713
"source": [
18-
"## How cool is Nipype?\n",
19-
"\n",
20-
"Nipype is really really cool!"
14+
"http://nipype.readthedocs.io/en/latest/devel/matlab_interface_devel.html"
2115
]
16+
},
17+
{
18+
"cell_type": "markdown",
19+
"metadata": {},
20+
"source": [
21+
"http://nipype.readthedocs.io/en/latest/devel/python_interface_devel.html"
22+
]
23+
},
24+
{
25+
"cell_type": "code",
26+
"execution_count": null,
27+
"metadata": {
28+
"collapsed": true
29+
},
30+
"outputs": [],
31+
"source": []
2232
}
2333
],
2434
"metadata": {
25-
"anaconda-cloud": {},
2635
"kernelspec": {
27-
"display_name": "Python [conda root]",
36+
"display_name": "Python [default]",
2837
"language": "python",
29-
"name": "conda-root-py"
38+
"name": "python2"
3039
},
3140
"language_info": {
3241
"codemirror_mode": {
@@ -42,5 +51,5 @@
4251
}
4352
},
4453
"nbformat": 4,
45-
"nbformat_minor": 0
54+
"nbformat_minor": 2
4655
}

0 commit comments

Comments
 (0)