##// END OF EJS Templates
Simplify .py listing code, moving Misc examples.
Brian E. Granger -
Show More
@@ -0,0 +1,6 b''
1 # A simple IPython script that provides Notebook links to .py files in the cwd
2
3 from IPython.display import FileLink, display
4 files =!ls *.py
5 for f in files:
6 display(FileLink(f)) No newline at end of file
@@ -0,0 +1,6 b''
1 # A simple IPython script that lists files in all subdirs
2
3 from IPython.display import FileLinks, display
4 dirs =!ls -d */
5 for d in dirs:
6 display(FileLinks(d)) No newline at end of file
@@ -1,124 +1,111 b''
1 1 {
2 2 "metadata": {
3 3 "name": "",
4 "signature": "sha256:2fc11a62b83396569f64bfde2516a0219a62108a64f920dedb7217a63d67a9bc"
4 "signature": "sha256:a805b2c46cc61ed300cc06162f057e5c2f934cf3df10daa27ca885a1ab74674a"
5 5 },
6 6 "nbformat": 3,
7 7 "nbformat_minor": 0,
8 8 "worksheets": [
9 9 {
10 10 "cells": [
11 11 {
12 12 "cell_type": "markdown",
13 13 "metadata": {},
14 14 "source": [
15 15 "<img src=\"../images/ipython_logo.png\">"
16 16 ]
17 17 },
18 18 {
19 19 "cell_type": "markdown",
20 20 "metadata": {},
21 21 "source": [
22 22 "Back to the main [Index](../Index.ipynb)"
23 23 ]
24 24 },
25 25 {
26 26 "cell_type": "heading",
27 27 "level": 1,
28 28 "metadata": {},
29 29 "source": [
30 30 "Customization"
31 31 ]
32 32 },
33 33 {
34 34 "cell_type": "markdown",
35 35 "metadata": {},
36 36 "source": [
37 37 "IPython has rich APIs for customization. Many behaviors of the different IPython applications can be configured using command line arguments or configuration files. IPython's core syntax and command line features can also be customized through input filters, custom magic commands, etc."
38 38 ]
39 39 },
40 40 {
41 41 "cell_type": "heading",
42 42 "level": 2,
43 43 "metadata": {},
44 44 "source": [
45 45 "Tutorials"
46 46 ]
47 47 },
48 48 {
49 49 "cell_type": "markdown",
50 50 "metadata": {},
51 51 "source": [
52 52 "Coming soon."
53 53 ]
54 54 },
55 55 {
56 56 "cell_type": "heading",
57 57 "level": 2,
58 58 "metadata": {},
59 59 "source": [
60 60 "Examples"
61 61 ]
62 62 },
63 63 {
64 64 "cell_type": "markdown",
65 65 "metadata": {},
66 66 "source": [
67 67 "Coming soon."
68 68 ]
69 69 },
70 70 {
71 71 "cell_type": "heading",
72 72 "level": 2,
73 73 "metadata": {},
74 74 "source": [
75 75 "Non-notebook examples"
76 76 ]
77 77 },
78 78 {
79 79 "cell_type": "markdown",
80 80 "metadata": {},
81 81 "source": [
82 82 "This directory also contains examples that are regular Python (`.py`) files."
83 83 ]
84 84 },
85 85 {
86 86 "cell_type": "code",
87 87 "collapsed": false,
88 88 "input": [
89 "from IPython.display import FileLink, display"
90 ],
91 "language": "python",
92 "metadata": {},
93 "outputs": [],
94 "prompt_number": 1
95 },
96 {
97 "cell_type": "code",
98 "collapsed": false,
99 "input": [
100 "files =!ls *.py\n",
101 "for f in files:\n",
102 " display(FileLink(f))"
89 "%run ../list_pyfiles.ipy"
103 90 ],
104 91 "language": "python",
105 92 "metadata": {},
106 93 "outputs": [
107 94 {
108 95 "html": [
109 96 "<a href='appconfig.py' target='_blank'>appconfig.py</a><br>"
110 97 ],
111 98 "metadata": {},
112 99 "output_type": "display_data",
113 100 "text": [
114 101 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Customization/appconfig.py"
115 102 ]
116 103 }
117 104 ],
118 105 "prompt_number": 2
119 106 }
120 107 ],
121 108 "metadata": {}
122 109 }
123 110 ]
124 111 } No newline at end of file
@@ -1,201 +1,188 b''
1 1 {
2 2 "metadata": {
3 3 "name": "",
4 "signature": "sha256:78b90d18791f32ff5abbbf5b4a9846ad8fad0a46af65125faac15f86f68da57f"
4 "signature": "sha256:29db13dc7016ac387a7b8f535ee31c19456004997ba93c328fa0abae41704e5f"
5 5 },
6 6 "nbformat": 3,
7 7 "nbformat_minor": 0,
8 8 "worksheets": [
9 9 {
10 10 "cells": [
11 11 {
12 12 "cell_type": "markdown",
13 13 "metadata": {},
14 14 "source": [
15 15 "<img src=\"../images/ipython_logo.png\">"
16 16 ]
17 17 },
18 18 {
19 19 "cell_type": "markdown",
20 20 "metadata": {},
21 21 "source": [
22 22 "Back to the main [Index](../Index.ipynb)"
23 23 ]
24 24 },
25 25 {
26 26 "cell_type": "heading",
27 27 "level": 1,
28 28 "metadata": {},
29 29 "source": [
30 30 "Embedding IPython Into Other Applications"
31 31 ]
32 32 },
33 33 {
34 34 "cell_type": "markdown",
35 35 "metadata": {},
36 36 "source": [
37 37 "The architecture of IPython is built with reusable components. These components include:\n",
38 38 "\n",
39 39 "* The configuration system for processing command line arguments and configuration files\n",
40 40 "* The IPython `InteractiveShell` object that provides the core interactive features across the entire code base\n",
41 41 "* The IPython kernel, which provides the capabilities of the `InteractiveShell` object over a ZeroMQ/JSON based message protocol to various frontends\n",
42 42 "* The IPython frontends (Notebook, Qt Console, Console, Terminal)\n",
43 43 "\n",
44 44 "These components can be embedded into other applications."
45 45 ]
46 46 },
47 47 {
48 48 "cell_type": "heading",
49 49 "level": 2,
50 50 "metadata": {},
51 51 "source": [
52 52 "Tutorials"
53 53 ]
54 54 },
55 55 {
56 56 "cell_type": "markdown",
57 57 "metadata": {},
58 58 "source": [
59 59 "Coming soon."
60 60 ]
61 61 },
62 62 {
63 63 "cell_type": "heading",
64 64 "level": 2,
65 65 "metadata": {},
66 66 "source": [
67 67 "Examples"
68 68 ]
69 69 },
70 70 {
71 71 "cell_type": "markdown",
72 72 "metadata": {},
73 73 "source": [
74 74 "Coming soon."
75 75 ]
76 76 },
77 77 {
78 78 "cell_type": "heading",
79 79 "level": 2,
80 80 "metadata": {},
81 81 "source": [
82 82 "Non-notebook examples"
83 83 ]
84 84 },
85 85 {
86 86 "cell_type": "markdown",
87 87 "metadata": {},
88 88 "source": [
89 89 "This directory also contains examples that are regular Python (`.py`) files."
90 90 ]
91 91 },
92 92 {
93 93 "cell_type": "code",
94 94 "collapsed": false,
95 95 "input": [
96 "from IPython.display import FileLink, display"
97 ],
98 "language": "python",
99 "metadata": {},
100 "outputs": [],
101 "prompt_number": 2
102 },
103 {
104 "cell_type": "code",
105 "collapsed": false,
106 "input": [
107 "files =!ls *.py\n",
108 "for f in files:\n",
109 " display(FileLink(f))"
96 "%run ../list_pyfiles.ipy"
110 97 ],
111 98 "language": "python",
112 99 "metadata": {},
113 100 "outputs": [
114 101 {
115 102 "html": [
116 103 "<a href='embed_class_long.py' target='_blank'>embed_class_long.py</a><br>"
117 104 ],
118 105 "metadata": {},
119 106 "output_type": "display_data",
120 107 "text": [
121 108 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Embedding/embed_class_long.py"
122 109 ]
123 110 },
124 111 {
125 112 "html": [
126 113 "<a href='embed_class_short.py' target='_blank'>embed_class_short.py</a><br>"
127 114 ],
128 115 "metadata": {},
129 116 "output_type": "display_data",
130 117 "text": [
131 118 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Embedding/embed_class_short.py"
132 119 ]
133 120 },
134 121 {
135 122 "html": [
136 123 "<a href='embed_function.py' target='_blank'>embed_function.py</a><br>"
137 124 ],
138 125 "metadata": {},
139 126 "output_type": "display_data",
140 127 "text": [
141 128 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Embedding/embed_function.py"
142 129 ]
143 130 },
144 131 {
145 132 "html": [
146 133 "<a href='inprocess_qtconsole.py' target='_blank'>inprocess_qtconsole.py</a><br>"
147 134 ],
148 135 "metadata": {},
149 136 "output_type": "display_data",
150 137 "text": [
151 138 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Embedding/inprocess_qtconsole.py"
152 139 ]
153 140 },
154 141 {
155 142 "html": [
156 143 "<a href='inprocess_terminal.py' target='_blank'>inprocess_terminal.py</a><br>"
157 144 ],
158 145 "metadata": {},
159 146 "output_type": "display_data",
160 147 "text": [
161 148 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Embedding/inprocess_terminal.py"
162 149 ]
163 150 },
164 151 {
165 152 "html": [
166 153 "<a href='internal_ipkernel.py' target='_blank'>internal_ipkernel.py</a><br>"
167 154 ],
168 155 "metadata": {},
169 156 "output_type": "display_data",
170 157 "text": [
171 158 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Embedding/internal_ipkernel.py"
172 159 ]
173 160 },
174 161 {
175 162 "html": [
176 163 "<a href='ipkernel_qtapp.py' target='_blank'>ipkernel_qtapp.py</a><br>"
177 164 ],
178 165 "metadata": {},
179 166 "output_type": "display_data",
180 167 "text": [
181 168 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Embedding/ipkernel_qtapp.py"
182 169 ]
183 170 },
184 171 {
185 172 "html": [
186 173 "<a href='ipkernel_wxapp.py' target='_blank'>ipkernel_wxapp.py</a><br>"
187 174 ],
188 175 "metadata": {},
189 176 "output_type": "display_data",
190 177 "text": [
191 178 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Embedding/ipkernel_wxapp.py"
192 179 ]
193 180 }
194 181 ],
195 "prompt_number": 3
182 "prompt_number": 1
196 183 }
197 184 ],
198 185 "metadata": {}
199 186 }
200 187 ]
201 188 } No newline at end of file
@@ -1,352 +1,358 b''
1 1 {
2 2 "metadata": {
3 3 "name": "",
4 "signature": "sha256:178b84c6ec2464bc76d655fb49d06913fcdcac5aad9e3442b6039c219f583e49"
4 "signature": "sha256:481e128e553ec13e039f3e3f5e567cc3caffe391b78b9821ee883fb8770ebc82"
5 5 },
6 6 "nbformat": 3,
7 7 "nbformat_minor": 0,
8 8 "worksheets": [
9 9 {
10 10 "cells": [
11 11 {
12 "cell_type": "heading",
13 "level": 1,
14 "metadata": {},
15 "source": [
16 "Background Jobs"
17 ]
18 },
19 {
12 20 "cell_type": "markdown",
13 21 "metadata": {},
14 22 "source": [
15 "# Simple interactive bacgkround jobs with IPython\n",
16 "\n",
17 23 "We start by loading the `backgroundjobs` library and defining a few trivial functions to illustrate things with."
18 24 ]
19 25 },
20 26 {
21 27 "cell_type": "code",
22 28 "collapsed": false,
23 29 "input": [
24 30 "from __future__ import print_function\n",
25 31 "from IPython.lib import backgroundjobs as bg\n",
26 32 "\n",
27 33 "import sys\n",
28 34 "import time\n",
29 35 "\n",
30 36 "def sleepfunc(interval=2, *a, **kw):\n",
31 37 " args = dict(interval=interval,\n",
32 38 " args=a,\n",
33 39 " kwargs=kw)\n",
34 40 " time.sleep(interval)\n",
35 41 " return args\n",
36 42 "\n",
37 43 "def diefunc(interval=2, *a, **kw):\n",
38 44 " time.sleep(interval)\n",
39 45 " raise Exception(\"Dead job with interval %s\" % interval)\n",
40 46 "\n",
41 47 "def printfunc(interval=1, reps=5):\n",
42 48 " for n in range(reps):\n",
43 49 " time.sleep(interval)\n",
44 50 " print('In the background...', n)\n",
45 51 " sys.stdout.flush()\n",
46 52 " print('All done!')\n",
47 53 " sys.stdout.flush()"
48 54 ],
49 55 "language": "python",
50 56 "metadata": {},
51 57 "outputs": [],
52 58 "prompt_number": 1
53 59 },
54 60 {
55 61 "cell_type": "markdown",
56 62 "metadata": {},
57 63 "source": [
58 64 "Now, we can create a job manager (called simply `jobs`) and use it to submit new jobs.\n",
59 65 "<br>\n",
60 66 "Run the cell below and wait a few seconds for the whole thing to finish, until you see the \"All done!\" printout."
61 67 ]
62 68 },
63 69 {
64 70 "cell_type": "code",
65 71 "collapsed": false,
66 72 "input": [
67 73 "jobs = bg.BackgroundJobManager()\n",
68 74 "\n",
69 75 "# Start a few jobs, the first one will have ID # 0\n",
70 76 "jobs.new(sleepfunc, 4)\n",
71 77 "jobs.new(sleepfunc, kw={'reps':2})\n",
72 78 "jobs.new('printfunc(1,3)')\n",
73 79 "\n",
74 80 "# This makes a couple of jobs which will die. Let's keep a reference to\n",
75 81 "# them for easier traceback reporting later\n",
76 82 "diejob1 = jobs.new(diefunc, 1)\n",
77 83 "diejob2 = jobs.new(diefunc, 2)"
78 84 ],
79 85 "language": "python",
80 86 "metadata": {},
81 87 "outputs": [
82 88 {
83 89 "output_type": "stream",
84 90 "stream": "stdout",
85 91 "text": [
86 92 "Starting job # 0 in a separate thread.\n",
87 93 "Starting job # 2 in a separate thread.\n",
88 94 "Starting job # 3 in a separate thread.\n",
89 95 "Starting job # 4 in a separate thread.\n",
90 96 "Starting job # 5 in a separate thread.\n"
91 97 ]
92 98 }
93 99 ],
94 100 "prompt_number": 2
95 101 },
96 102 {
97 103 "cell_type": "markdown",
98 104 "metadata": {},
99 105 "source": [
100 106 "You can check the status of your jobs at any time:"
101 107 ]
102 108 },
103 109 {
104 110 "cell_type": "code",
105 111 "collapsed": false,
106 112 "input": [
107 113 "jobs.status()"
108 114 ],
109 115 "language": "python",
110 116 "metadata": {},
111 117 "outputs": [
112 118 {
113 119 "output_type": "stream",
114 120 "stream": "stdout",
115 121 "text": [
116 122 "In the background... 0\n",
117 123 "Running jobs:"
118 124 ]
119 125 },
120 126 {
121 127 "output_type": "stream",
122 128 "stream": "stdout",
123 129 "text": [
124 130 "\n",
125 131 "0 : <function sleepfunc at 0x102cc6848>\n",
126 132 "2 : <function sleepfunc at 0x102cc6848>\n",
127 133 "3 : printfunc(1,3)\n",
128 134 "5 : <function diefunc at 0x102cc68c0>\n",
129 135 "\n",
130 136 "Dead jobs:\n",
131 137 "4 : <function diefunc at 0x102cc68c0>\n",
132 138 "\n"
133 139 ]
134 140 }
135 141 ],
136 142 "prompt_number": 3
137 143 },
138 144 {
139 145 "cell_type": "markdown",
140 146 "metadata": {},
141 147 "source": [
142 148 "For any completed job, you can get its result easily:"
143 149 ]
144 150 },
145 151 {
146 152 "cell_type": "code",
147 153 "collapsed": false,
148 154 "input": [
149 155 "jobs[0].result\n",
150 156 "j0 = jobs[0]\n",
151 157 "j0.join?"
152 158 ],
153 159 "language": "python",
154 160 "metadata": {},
155 161 "outputs": [],
156 162 "prompt_number": 4
157 163 },
158 164 {
159 165 "cell_type": "markdown",
160 166 "metadata": {},
161 167 "source": [
162 168 "You can get the traceback of any dead job. Run the line\n",
163 169 "below again interactively until it prints a traceback (check the status\n",
164 170 "of the job):\n"
165 171 ]
166 172 },
167 173 {
168 174 "cell_type": "code",
169 175 "collapsed": false,
170 176 "input": [
171 177 "print \"Status of diejob1:\", diejob1.status\n",
172 178 "diejob1.traceback() # jobs.traceback(4) would also work here, with the job number"
173 179 ],
174 180 "language": "python",
175 181 "metadata": {},
176 182 "outputs": [
177 183 {
178 184 "output_type": "stream",
179 185 "stream": "stdout",
180 186 "text": [
181 187 "In the background... 1\n",
182 188 "In the background... 2\n",
183 189 "All done!\n"
184 190 ]
185 191 },
186 192 {
187 193 "ename": "SyntaxError",
188 194 "evalue": "invalid syntax (<ipython-input-5-a90bd59af669>, line 1)",
189 195 "output_type": "pyerr",
190 196 "traceback": [
191 197 "\u001b[0;36m File \u001b[0;32m\"<ipython-input-5-a90bd59af669>\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m print \"Status of diejob1:\", diejob1.status\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
192 198 ]
193 199 }
194 200 ],
195 201 "prompt_number": 5
196 202 },
197 203 {
198 204 "cell_type": "markdown",
199 205 "metadata": {},
200 206 "source": [
201 207 "This will print all tracebacks for all dead jobs:"
202 208 ]
203 209 },
204 210 {
205 211 "cell_type": "code",
206 212 "collapsed": false,
207 213 "input": [
208 214 "jobs.traceback()"
209 215 ],
210 216 "language": "python",
211 217 "metadata": {},
212 218 "outputs": [
213 219 {
214 220 "output_type": "stream",
215 221 "stream": "stdout",
216 222 "text": [
217 223 "Traceback for: <BackgroundJob #4: <function diefunc at 0x102cc68c0>>\n",
218 224 "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n",
219 225 "\u001b[0;31mException\u001b[0m Traceback (most recent call last)\n",
220 226 "\u001b[0;32m/Users/bgranger/Documents/Computing/IPython/code/ipython/IPython/lib/backgroundjobs.pyc\u001b[0m in \u001b[0;36mcall\u001b[0;34m(self)\u001b[0m\n",
221 227 "\u001b[1;32m 489\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
222 228 "\u001b[1;32m 490\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mcall\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
223 229 "\u001b[0;32m--> 491\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfunc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
224 230 "\u001b[0m\n",
225 231 "\u001b[0;32m<ipython-input-1-7391f8ae281b>\u001b[0m in \u001b[0;36mdiefunc\u001b[0;34m(interval, *a, **kw)\u001b[0m\n",
226 232 "\u001b[1;32m 14\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mdiefunc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minterval\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkw\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
227 233 "\u001b[1;32m 15\u001b[0m \u001b[0mtime\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msleep\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minterval\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
228 234 "\u001b[0;32m---> 16\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mException\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Dead job with interval %s\"\u001b[0m \u001b[0;34m%\u001b[0m \u001b[0minterval\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
229 235 "\u001b[0m\u001b[1;32m 17\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
230 236 "\u001b[1;32m 18\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mprintfunc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minterval\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mreps\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m5\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
231 237 "\n",
232 238 "\u001b[0;31mException\u001b[0m: Dead job with interval 1\n",
233 239 "\n",
234 240 "Traceback for: <BackgroundJob #5: <function diefunc at 0x102cc68c0>>\n",
235 241 "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n",
236 242 "\u001b[0;31mException\u001b[0m Traceback (most recent call last)\n",
237 243 "\u001b[0;32m/Users/bgranger/Documents/Computing/IPython/code/ipython/IPython/lib/backgroundjobs.pyc\u001b[0m in \u001b[0;36mcall\u001b[0;34m(self)\u001b[0m\n",
238 244 "\u001b[1;32m 489\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
239 245 "\u001b[1;32m 490\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mcall\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
240 246 "\u001b[0;32m--> 491\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfunc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
241 247 "\u001b[0m\n",
242 248 "\u001b[0;32m<ipython-input-1-7391f8ae281b>\u001b[0m in \u001b[0;36mdiefunc\u001b[0;34m(interval, *a, **kw)\u001b[0m\n",
243 249 "\u001b[1;32m 14\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mdiefunc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minterval\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkw\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
244 250 "\u001b[1;32m 15\u001b[0m \u001b[0mtime\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msleep\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minterval\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
245 251 "\u001b[0;32m---> 16\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mException\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Dead job with interval %s\"\u001b[0m \u001b[0;34m%\u001b[0m \u001b[0minterval\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
246 252 "\u001b[0m\u001b[1;32m 17\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
247 253 "\u001b[1;32m 18\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mprintfunc\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minterval\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mreps\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m5\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
248 254 "\n",
249 255 "\u001b[0;31mException\u001b[0m: Dead job with interval 2\n",
250 256 "\n"
251 257 ]
252 258 }
253 259 ],
254 260 "prompt_number": 6
255 261 },
256 262 {
257 263 "cell_type": "markdown",
258 264 "metadata": {},
259 265 "source": [
260 266 "The job manager can be flushed of all completed jobs at any time:"
261 267 ]
262 268 },
263 269 {
264 270 "cell_type": "code",
265 271 "collapsed": false,
266 272 "input": [
267 273 "jobs.flush()"
268 274 ],
269 275 "language": "python",
270 276 "metadata": {},
271 277 "outputs": [
272 278 {
273 279 "output_type": "stream",
274 280 "stream": "stdout",
275 281 "text": [
276 282 "Flushing 3 Completed jobs.\n",
277 283 "Flushing 2 Dead jobs.\n"
278 284 ]
279 285 }
280 286 ],
281 287 "prompt_number": 7
282 288 },
283 289 {
284 290 "cell_type": "markdown",
285 291 "metadata": {},
286 292 "source": [
287 293 "After that, the status is simply empty:"
288 294 ]
289 295 },
290 296 {
291 297 "cell_type": "code",
292 298 "collapsed": true,
293 299 "input": [
294 300 "jobs.status()"
295 301 ],
296 302 "language": "python",
297 303 "metadata": {},
298 304 "outputs": [],
299 305 "prompt_number": 8
300 306 },
301 307 {
302 308 "cell_type": "markdown",
303 309 "metadata": {},
304 310 "source": [
305 311 "It's easy to wait on a job:"
306 312 ]
307 313 },
308 314 {
309 315 "cell_type": "code",
310 316 "collapsed": false,
311 317 "input": [
312 318 "j = jobs.new(sleepfunc, 2)\n",
313 319 "print(\"Will wait for j now...\")\n",
314 320 "sys.stdout.flush()\n",
315 321 "j.join()\n",
316 322 "print(\"Result from j:\")\n",
317 323 "j.result"
318 324 ],
319 325 "language": "python",
320 326 "metadata": {},
321 327 "outputs": [
322 328 {
323 329 "output_type": "stream",
324 330 "stream": "stdout",
325 331 "text": [
326 332 "Starting job # 0 in a separate thread.\n",
327 333 "Will wait for j now...\n"
328 334 ]
329 335 },
330 336 {
331 337 "output_type": "stream",
332 338 "stream": "stdout",
333 339 "text": [
334 340 "Result from j:\n"
335 341 ]
336 342 },
337 343 {
338 344 "metadata": {},
339 345 "output_type": "pyout",
340 346 "prompt_number": 9,
341 347 "text": [
342 348 "{'args': (), 'interval': 2, 'kwargs': {}}"
343 349 ]
344 350 }
345 351 ],
346 352 "prompt_number": 9
347 353 }
348 354 ],
349 355 "metadata": {}
350 356 }
351 357 ]
352 358 } No newline at end of file
@@ -1,125 +1,165 b''
1 1 {
2 2 "metadata": {
3 3 "name": "",
4 "signature": "sha256:1f73cbd161515fd1a2c4b327925f1f17e45ed057ffb039a22cf833f61154e000"
4 "signature": "sha256:dd3f8171dfb5c8cb7aa9b1c0f5dee915f4ac8f73d9dc19a20a95c8f1583578ae"
5 5 },
6 6 "nbformat": 3,
7 7 "nbformat_minor": 0,
8 8 "worksheets": [
9 9 {
10 10 "cells": [
11 11 {
12 12 "cell_type": "markdown",
13 13 "metadata": {},
14 14 "source": [
15 15 "<img src=\"../images/ipython_logo.png\">"
16 16 ]
17 17 },
18 18 {
19 19 "cell_type": "markdown",
20 20 "metadata": {},
21 21 "source": [
22 22 "Back to the main [Index](../Index.ipynb)"
23 23 ]
24 24 },
25 25 {
26 26 "cell_type": "heading",
27 27 "level": 1,
28 28 "metadata": {},
29 29 "source": [
30 30 "IPython Kernel"
31 31 ]
32 32 },
33 33 {
34 34 "cell_type": "markdown",
35 35 "metadata": {},
36 36 "source": [
37 37 "IPython provides extensions to the Python programming language that make working interactively convenient and efficient. These extensions are implemented in the IPython Kernel and are available in all of the IPython Frontends (Notebook, Terminal, Console and Qt Console) when running this kernel."
38 38 ]
39 39 },
40 40 {
41 41 "cell_type": "heading",
42 42 "level": 2,
43 43 "metadata": {},
44 44 "source": [
45 45 "Tutorials"
46 46 ]
47 47 },
48 48 {
49 49 "cell_type": "markdown",
50 50 "metadata": {},
51 51 "source": [
52 52 "* [Cell Magics](Cell Magics.ipynb)\n",
53 53 "* [Script Magics](Script Magics.ipynb)"
54 54 ]
55 55 },
56 56 {
57 57 "cell_type": "heading",
58 58 "level": 2,
59 59 "metadata": {},
60 60 "source": [
61 61 "Examples"
62 62 ]
63 63 },
64 64 {
65 65 "cell_type": "markdown",
66 66 "metadata": {},
67 67 "source": [
68 "Coming soon."
68 "* [Background Jobs](Background Jobs.ipynb)"
69 69 ]
70 70 },
71 71 {
72 72 "cell_type": "heading",
73 73 "level": 2,
74 74 "metadata": {},
75 75 "source": [
76 76 "Non-notebook examples"
77 77 ]
78 78 },
79 79 {
80 80 "cell_type": "markdown",
81 81 "metadata": {},
82 82 "source": [
83 83 "This directory also contains examples that are regular Python (`.py`) files."
84 84 ]
85 85 },
86 86 {
87 87 "cell_type": "code",
88 88 "collapsed": false,
89 89 "input": [
90 "from IPython.display import FileLink, display"
90 "%run ../list_pyfiles.ipy"
91 91 ],
92 92 "language": "python",
93 93 "metadata": {},
94 "outputs": [],
94 "outputs": [
95 {
96 "html": [
97 "<a href='example-demo.py' target='_blank'>example-demo.py</a><br>"
98 ],
99 "metadata": {},
100 "output_type": "display_data",
101 "text": [
102 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/IPython Kernel/example-demo.py"
103 ]
104 },
105 {
106 "html": [
107 "<a href='ipython-get-history.py' target='_blank'>ipython-get-history.py</a><br>"
108 ],
109 "metadata": {},
110 "output_type": "display_data",
111 "text": [
112 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/IPython Kernel/ipython-get-history.py"
113 ]
114 }
115 ],
95 116 "prompt_number": 1
96 117 },
97 118 {
119 "cell_type": "markdown",
120 "metadata": {},
121 "source": [
122 "There are also a set of examples that show how to integrate IPython with different GUI event loops:"
123 ]
124 },
125 {
98 126 "cell_type": "code",
99 127 "collapsed": false,
100 128 "input": [
101 "files =!ls *.py\n",
102 "for f in files:\n",
103 " display(FileLink(f))"
129 "%run ../list_subdirs.ipy"
104 130 ],
105 131 "language": "python",
106 132 "metadata": {},
107 133 "outputs": [
108 134 {
109 135 "html": [
110 "<a href='ipython-get-history.py' target='_blank'>ipython-get-history.py</a><br>"
136 "gui/<br>\n",
137 "&nbsp;&nbsp;<a href='gui/gui-glut.py' target='_blank'>gui-glut.py</a><br>\n",
138 "&nbsp;&nbsp;<a href='gui/gui-gtk.py' target='_blank'>gui-gtk.py</a><br>\n",
139 "&nbsp;&nbsp;<a href='gui/gui-gtk3.py' target='_blank'>gui-gtk3.py</a><br>\n",
140 "&nbsp;&nbsp;<a href='gui/gui-pyglet.py' target='_blank'>gui-pyglet.py</a><br>\n",
141 "&nbsp;&nbsp;<a href='gui/gui-qt.py' target='_blank'>gui-qt.py</a><br>\n",
142 "&nbsp;&nbsp;<a href='gui/gui-tk.py' target='_blank'>gui-tk.py</a><br>\n",
143 "&nbsp;&nbsp;<a href='gui/gui-wx.py' target='_blank'>gui-wx.py</a><br>"
111 144 ],
112 145 "metadata": {},
113 146 "output_type": "display_data",
114 147 "text": [
115 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/IPython Kernel/ipython-get-history.py"
148 "gui/\n",
149 " gui-glut.py\n",
150 " gui-gtk.py\n",
151 " gui-gtk3.py\n",
152 " gui-pyglet.py\n",
153 " gui-qt.py\n",
154 " gui-tk.py\n",
155 " gui-wx.py"
116 156 ]
117 157 }
118 158 ],
119 159 "prompt_number": 2
120 160 }
121 161 ],
122 162 "metadata": {}
123 163 }
124 164 ]
125 165 } No newline at end of file
1 NO CONTENT: file renamed from examples/Miscellaneous/example-demo.py to examples/IPython Kernel/example-demo.py
1 NO CONTENT: file renamed from examples/Miscellaneous/gui-glut.py to examples/IPython Kernel/gui/gui-glut.py
1 NO CONTENT: file renamed from examples/Miscellaneous/gui-gtk.py to examples/IPython Kernel/gui/gui-gtk.py
1 NO CONTENT: file renamed from examples/Miscellaneous/gui-gtk3.py to examples/IPython Kernel/gui/gui-gtk3.py
1 NO CONTENT: file renamed from examples/Miscellaneous/gui-pyglet.py to examples/IPython Kernel/gui/gui-pyglet.py
1 NO CONTENT: file renamed from examples/Miscellaneous/gui-qt.py to examples/IPython Kernel/gui/gui-qt.py
1 NO CONTENT: file renamed from examples/Miscellaneous/gui-tk.py to examples/IPython Kernel/gui/gui-tk.py
1 NO CONTENT: file renamed from examples/Miscellaneous/gui-wx.py to examples/IPython Kernel/gui/gui-wx.py
1 NO CONTENT: file renamed from examples/Miscellaneous/ipython-completion.bash to examples/IPython Kernel/ipython-completion.bash
1 NO CONTENT: file renamed from examples/Miscellaneous/ipython-qtconsole.desktop to examples/IPython Kernel/ipython-qtconsole.desktop
1 NO CONTENT: file renamed from examples/Miscellaneous/ipython.desktop to examples/IPython Kernel/ipython.desktop
@@ -1,59 +1,58 b''
1 1 {
2 2 "metadata": {
3 3 "name": "",
4 "signature": "sha256:f047f5edb4201c0c7aa38bdf31058bf6ab2785d53e7a03cdbd4e4ff4217c0007"
4 "signature": "sha256:0b4b631419772e40e0f4893f5a0f0fe089a39e46c8862af0256164628394302d"
5 5 },
6 6 "nbformat": 3,
7 7 "nbformat_minor": 0,
8 8 "worksheets": [
9 9 {
10 10 "cells": [
11 11 {
12 12 "cell_type": "markdown",
13 13 "metadata": {},
14 14 "source": [
15 15 "<img src=\"images/ipython_logo.png\">"
16 16 ]
17 17 },
18 18 {
19 19 "cell_type": "heading",
20 20 "level": 1,
21 21 "metadata": {},
22 22 "source": [
23 23 "IPython Documentation"
24 24 ]
25 25 },
26 26 {
27 27 "cell_type": "markdown",
28 28 "metadata": {},
29 29 "source": [
30 30 "This directory contains IPython's notebook-based documentation. This augments our [Sphinx-based documentation](http://ipython.org/ipython-doc/stable/index.html) with notebooks that contain interactive tutorials and examples. Over time, more of our documentation will be pulled into this format."
31 31 ]
32 32 },
33 33 {
34 34 "cell_type": "heading",
35 35 "level": 2,
36 36 "metadata": {},
37 37 "source": [
38 38 "Topics"
39 39 ]
40 40 },
41 41 {
42 42 "cell_type": "markdown",
43 43 "metadata": {},
44 44 "source": [
45 45 "* [IPython Kernel](IPython Kernel/Index.ipynb): IPython's core syntax and command line features available in all frontends\n",
46 46 "* [Notebook](Notebook/Index.ipynb): The IPython Notebook frontend\n",
47 47 "* [Interactive Widgets](Interactive Widgets/Index.ipynb): Interactive JavaScript/HTML widgets and `interact`\n",
48 48 "* [Parallel Computing](Parallel Computing/Index.ipynb): IPython's library for interactive parallel computing\n",
49 49 "* [Customization](Customization/Index.ipynb): How to configure IPython and customize it with magics, extensions, etc.\n",
50 50 "* [Embedding](Embedding/Index.ipynb): Embedding and reusing IPython's components into other applications\n",
51 "* [Builtin Extensions](Builtin Extensions/Index.ipynb): Extensions we ship with IPython\n",
52 "* [Miscellaneous](Miscellaneous/Index.ipynb): Documentation that doesn't fit anywhere else"
51 "* [Builtin Extensions](Builtin Extensions/Index.ipynb): Extensions we ship with IPython"
53 52 ]
54 53 }
55 54 ],
56 55 "metadata": {}
57 56 }
58 57 ]
59 58 } No newline at end of file
@@ -1,352 +1,330 b''
1 1 {
2 2 "metadata": {
3 3 "name": "",
4 "signature": "sha256:24e7c8d3c3d2d4b6e7a5b9d01c7e413b736537327a485e257912943fc013a888"
4 "signature": "sha256:424566387e51dfd0dc559496301c86be9b1f610b6cfedb1cbd225ce9f0161b88"
5 5 },
6 6 "nbformat": 3,
7 7 "nbformat_minor": 0,
8 8 "worksheets": [
9 9 {
10 10 "cells": [
11 11 {
12 12 "cell_type": "markdown",
13 13 "metadata": {},
14 14 "source": [
15 15 "<img src=\"../images/ipython_logo.png\">"
16 16 ]
17 17 },
18 18 {
19 19 "cell_type": "markdown",
20 20 "metadata": {},
21 21 "source": [
22 22 "Back to the main [Index](../Index.ipynb)"
23 23 ]
24 24 },
25 25 {
26 26 "cell_type": "heading",
27 27 "level": 1,
28 28 "metadata": {},
29 29 "source": [
30 30 "Parallel Computing"
31 31 ]
32 32 },
33 33 {
34 34 "cell_type": "markdown",
35 35 "metadata": {},
36 36 "source": [
37 37 "IPython includes an architecture and library for interactive parallel computing. The enables Python functions, along with their arguments, to be run in parallel a multicore CPU, cluster or cloud using a simple Python API."
38 38 ]
39 39 },
40 40 {
41 41 "cell_type": "heading",
42 42 "level": 2,
43 43 "metadata": {},
44 44 "source": [
45 45 "Tutorials"
46 46 ]
47 47 },
48 48 {
49 49 "cell_type": "markdown",
50 50 "metadata": {},
51 51 "source": [
52 52 "* [Data Publication API](Data Publication API.ipynb) "
53 53 ]
54 54 },
55 55 {
56 56 "cell_type": "heading",
57 57 "level": 2,
58 58 "metadata": {},
59 59 "source": [
60 60 "Examples"
61 61 ]
62 62 },
63 63 {
64 64 "cell_type": "markdown",
65 65 "metadata": {},
66 66 "source": [
67 67 "* [Monitoring an MPI Simulation - 1](Monitoring an MPI Simulation - 1.ipynb)\n",
68 68 "* [Monitoring an MPI Simulation - 2](Monitoring an MPI Simulation - 2.ipynb)\n",
69 69 "* [Parallel Decorator and map](Parallel Decorator and map.ipynb)\n",
70 70 "* [Parallel Magics](Parallel Magics.ipynb)\n",
71 71 "* [Using Dill](Using Dill.ipynb)\n",
72 72 "* [Using MPI with IPython Parallel](Using MPI with IPython Parallel.ipynb)\n",
73 73 "* [Monte Carlo Options](Monte Carlo Options.ipynb)"
74 74 ]
75 75 },
76 76 {
77 77 "cell_type": "heading",
78 78 "level": 2,
79 79 "metadata": {},
80 80 "source": [
81 81 "Non-notebook examples"
82 82 ]
83 83 },
84 84 {
85 85 "cell_type": "markdown",
86 86 "metadata": {},
87 87 "source": [
88 88 "This directory also contains examples that are regular Python (`.py`) files."
89 89 ]
90 90 },
91 91 {
92 92 "cell_type": "code",
93 93 "collapsed": false,
94 94 "input": [
95 "from IPython.display import FileLink, display"
96 ],
97 "language": "python",
98 "metadata": {},
99 "outputs": [],
100 "prompt_number": 7
101 },
102 {
103 "cell_type": "markdown",
104 "metadata": {},
105 "source": [
106 "Here are single file Python examples:"
107 ]
108 },
109 {
110 "cell_type": "code",
111 "collapsed": false,
112 "input": [
113 "files =!ls *.py\n",
114 "for f in files:\n",
115 " display(FileLink(f))"
95 "%run ../list_pyfiles.ipy"
116 96 ],
117 97 "language": "python",
118 98 "metadata": {},
119 99 "outputs": [
120 100 {
121 101 "html": [
122 102 "<a href='customresults.py' target='_blank'>customresults.py</a><br>"
123 103 ],
124 104 "metadata": {},
125 105 "output_type": "display_data",
126 106 "text": [
127 107 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/customresults.py"
128 108 ]
129 109 },
130 110 {
131 111 "html": [
132 112 "<a href='dagdeps.py' target='_blank'>dagdeps.py</a><br>"
133 113 ],
134 114 "metadata": {},
135 115 "output_type": "display_data",
136 116 "text": [
137 117 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/dagdeps.py"
138 118 ]
139 119 },
140 120 {
141 121 "html": [
142 122 "<a href='dependencies.py' target='_blank'>dependencies.py</a><br>"
143 123 ],
144 124 "metadata": {},
145 125 "output_type": "display_data",
146 126 "text": [
147 127 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/dependencies.py"
148 128 ]
149 129 },
150 130 {
151 131 "html": [
152 132 "<a href='fetchparse.py' target='_blank'>fetchparse.py</a><br>"
153 133 ],
154 134 "metadata": {},
155 135 "output_type": "display_data",
156 136 "text": [
157 137 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/fetchparse.py"
158 138 ]
159 139 },
160 140 {
161 141 "html": [
162 142 "<a href='iopubwatcher.py' target='_blank'>iopubwatcher.py</a><br>"
163 143 ],
164 144 "metadata": {},
165 145 "output_type": "display_data",
166 146 "text": [
167 147 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/iopubwatcher.py"
168 148 ]
169 149 },
170 150 {
171 151 "html": [
172 152 "<a href='itermapresult.py' target='_blank'>itermapresult.py</a><br>"
173 153 ],
174 154 "metadata": {},
175 155 "output_type": "display_data",
176 156 "text": [
177 157 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/itermapresult.py"
178 158 ]
179 159 },
180 160 {
181 161 "html": [
182 162 "<a href='nwmerge.py' target='_blank'>nwmerge.py</a><br>"
183 163 ],
184 164 "metadata": {},
185 165 "output_type": "display_data",
186 166 "text": [
187 167 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/nwmerge.py"
188 168 ]
189 169 },
190 170 {
191 171 "html": [
192 172 "<a href='phistogram.py' target='_blank'>phistogram.py</a><br>"
193 173 ],
194 174 "metadata": {},
195 175 "output_type": "display_data",
196 176 "text": [
197 177 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/phistogram.py"
198 178 ]
199 179 },
200 180 {
201 181 "html": [
202 182 "<a href='task_profiler.py' target='_blank'>task_profiler.py</a><br>"
203 183 ],
204 184 "metadata": {},
205 185 "output_type": "display_data",
206 186 "text": [
207 187 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/task_profiler.py"
208 188 ]
209 189 },
210 190 {
211 191 "html": [
212 192 "<a href='throughput.py' target='_blank'>throughput.py</a><br>"
213 193 ],
214 194 "metadata": {},
215 195 "output_type": "display_data",
216 196 "text": [
217 197 "/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/throughput.py"
218 198 ]
219 199 }
220 200 ],
221 "prompt_number": 9
201 "prompt_number": 4
222 202 },
223 203 {
224 204 "cell_type": "markdown",
225 205 "metadata": {},
226 206 "source": [
227 207 "More substantial examples can be found in subdirectories:"
228 208 ]
229 209 },
230 210 {
231 211 "cell_type": "code",
232 212 "collapsed": false,
233 213 "input": [
234 "files =!ls -d */\n",
235 "for f in files:\n",
236 " display(FileLinks(f))"
214 "%run ../list_subdirs.ipy"
237 215 ],
238 216 "language": "python",
239 217 "metadata": {},
240 218 "outputs": [
241 219 {
242 220 "html": [
243 221 "daVinci Word Count/<br>\n",
244 222 "&nbsp;&nbsp;<a href='daVinci Word Count/pwordfreq.py' target='_blank'>pwordfreq.py</a><br>\n",
245 223 "&nbsp;&nbsp;<a href='daVinci Word Count/wordfreq.py' target='_blank'>wordfreq.py</a><br>"
246 224 ],
247 225 "metadata": {},
248 226 "output_type": "display_data",
249 227 "text": [
250 228 "daVinci Word Count/\n",
251 229 " pwordfreq.py\n",
252 230 " wordfreq.py"
253 231 ]
254 232 },
255 233 {
256 234 "html": [
257 235 "interengine/<br>\n",
258 236 "&nbsp;&nbsp;<a href='interengine/bintree.py' target='_blank'>bintree.py</a><br>\n",
259 237 "&nbsp;&nbsp;<a href='interengine/bintree_script.py' target='_blank'>bintree_script.py</a><br>\n",
260 238 "&nbsp;&nbsp;<a href='interengine/communicator.py' target='_blank'>communicator.py</a><br>\n",
261 239 "&nbsp;&nbsp;<a href='interengine/interengine.py' target='_blank'>interengine.py</a><br>"
262 240 ],
263 241 "metadata": {},
264 242 "output_type": "display_data",
265 243 "text": [
266 244 "interengine/\n",
267 245 " bintree.py\n",
268 246 " bintree_script.py\n",
269 247 " communicator.py\n",
270 248 " interengine.py"
271 249 ]
272 250 },
273 251 {
274 252 "html": [],
275 253 "metadata": {},
276 254 "output_type": "display_data",
277 255 "text": []
278 256 },
279 257 {
280 258 "html": [
281 259 "pi/<br>\n",
282 260 "&nbsp;&nbsp;<a href='pi/parallelpi.py' target='_blank'>parallelpi.py</a><br>\n",
283 261 "&nbsp;&nbsp;<a href='pi/pidigits.py' target='_blank'>pidigits.py</a><br>"
284 262 ],
285 263 "metadata": {},
286 264 "output_type": "display_data",
287 265 "text": [
288 266 "pi/\n",
289 267 " parallelpi.py\n",
290 268 " pidigits.py"
291 269 ]
292 270 },
293 271 {
294 272 "html": [
295 273 "rmt/<br>\n",
296 274 "&nbsp;&nbsp;<a href='rmt/rmt.ipy' target='_blank'>rmt.ipy</a><br>\n",
297 275 "&nbsp;&nbsp;<a href='rmt/rmt.ipynb' target='_blank'>rmt.ipynb</a><br>\n",
298 276 "&nbsp;&nbsp;<a href='rmt/rmtkernel.py' target='_blank'>rmtkernel.py</a><br>"
299 277 ],
300 278 "metadata": {},
301 279 "output_type": "display_data",
302 280 "text": [
303 281 "rmt/\n",
304 282 " rmt.ipy\n",
305 283 " rmt.ipynb\n",
306 284 " rmtkernel.py"
307 285 ]
308 286 },
309 287 {
310 288 "html": [
311 289 "wave2D/<br>\n",
312 290 "&nbsp;&nbsp;<a href='wave2D/communicator.py' target='_blank'>communicator.py</a><br>\n",
313 291 "&nbsp;&nbsp;<a href='wave2D/parallelwave-mpi.py' target='_blank'>parallelwave-mpi.py</a><br>\n",
314 292 "&nbsp;&nbsp;<a href='wave2D/parallelwave.py' target='_blank'>parallelwave.py</a><br>\n",
315 293 "&nbsp;&nbsp;<a href='wave2D/RectPartitioner.py' target='_blank'>RectPartitioner.py</a><br>\n",
316 294 "&nbsp;&nbsp;<a href='wave2D/wavesolver.py' target='_blank'>wavesolver.py</a><br>"
317 295 ],
318 296 "metadata": {},
319 297 "output_type": "display_data",
320 298 "text": [
321 299 "wave2D/\n",
322 300 " communicator.py\n",
323 301 " parallelwave-mpi.py\n",
324 302 " parallelwave.py\n",
325 303 " RectPartitioner.py\n",
326 304 " wavesolver.py"
327 305 ]
328 306 },
329 307 {
330 308 "html": [
331 309 "workflow/<br>\n",
332 310 "&nbsp;&nbsp;<a href='workflow/client.py' target='_blank'>client.py</a><br>\n",
333 311 "&nbsp;&nbsp;<a href='workflow/job_wrapper.py' target='_blank'>job_wrapper.py</a><br>\n",
334 312 "&nbsp;&nbsp;<a href='workflow/wmanager.py' target='_blank'>wmanager.py</a><br>"
335 313 ],
336 314 "metadata": {},
337 315 "output_type": "display_data",
338 316 "text": [
339 317 "workflow/\n",
340 318 " client.py\n",
341 319 " job_wrapper.py\n",
342 320 " wmanager.py"
343 321 ]
344 322 }
345 323 ],
346 "prompt_number": 13
324 "prompt_number": 3
347 325 }
348 326 ],
349 327 "metadata": {}
350 328 }
351 329 ]
352 330 } No newline at end of file
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now