Show More
@@ -97,7 +97,7 b'' | |||
|
97 | 97 | "output_type": "display_data" |
|
98 | 98 | } |
|
99 | 99 | ], |
|
100 |
"prompt_number": |
|
|
100 | "prompt_number": 1 | |
|
101 | 101 | }, |
|
102 | 102 | { |
|
103 | 103 | "cell_type": "code", |
@@ -121,7 +121,7 b'' | |||
|
121 | 121 | "language": "python", |
|
122 | 122 | "metadata": {}, |
|
123 | 123 | "outputs": [], |
|
124 |
"prompt_number": 2 |
|
|
124 | "prompt_number": 2 | |
|
125 | 125 | }, |
|
126 | 126 | { |
|
127 | 127 | "cell_type": "code", |
@@ -131,11 +131,11 b'' | |||
|
131 | 131 | "\n", |
|
132 | 132 | "require([\"notebook/js/widget\"], function(){\n", |
|
133 | 133 | " \n", |
|
134 |
" // Define the |
|
|
134 | " // Define the FileModel and register it with the widget manager.\n", | |
|
135 | 135 | " var FileModel = IPython.WidgetModel.extend({});\n", |
|
136 | 136 | " IPython.notebook.widget_manager.register_widget_model('FileWidgetModel', FileModel);\n", |
|
137 | 137 | " \n", |
|
138 |
" // Define the |
|
|
138 | " // Define the FilePickerView\n", | |
|
139 | 139 | " var FilePickerView = IPython.WidgetView.extend({\n", |
|
140 | 140 | " \n", |
|
141 | 141 | " render: function(){\n", |
@@ -159,9 +159,7 b'' | |||
|
159 | 159 | " that.model.update_other_views(that);\n", |
|
160 | 160 | " }\n", |
|
161 | 161 | " r.readAsText(f);\n", |
|
162 | " }\n", | |
|
163 | " else\n", | |
|
164 | " {\n", | |
|
162 | " } else {\n", | |
|
165 | 163 | " this.model.set('on_failed', this.model.get('on_failed') + 1);\n", |
|
166 | 164 | " this.model.update_other_views(this);\n", |
|
167 | 165 | " }\n", |
@@ -182,11 +180,11 b'' | |||
|
182 | 180 | "\n", |
|
183 | 181 | "require([\"notebook/js/widget\"], function(){\n", |
|
184 | 182 | " \n", |
|
185 |
" // Define the |
|
|
183 | " // Define the FileModel and register it with the widget manager.\n", | |
|
186 | 184 | " var FileModel = IPython.WidgetModel.extend({});\n", |
|
187 | 185 | " IPython.notebook.widget_manager.register_widget_model('FileWidgetModel', FileModel);\n", |
|
188 | 186 | " \n", |
|
189 |
" // Define the |
|
|
187 | " // Define the FilePickerView\n", | |
|
190 | 188 | " var FilePickerView = IPython.WidgetView.extend({\n", |
|
191 | 189 | " \n", |
|
192 | 190 | " render: function(){\n", |
@@ -210,9 +208,7 b'' | |||
|
210 | 208 | " that.model.update_other_views(that);\n", |
|
211 | 209 | " }\n", |
|
212 | 210 | " r.readAsText(f);\n", |
|
213 | " }\n", | |
|
214 | " else\n", | |
|
215 | " {\n", | |
|
211 | " } else {\n", | |
|
216 | 212 | " this.model.set('on_failed', this.model.get('on_failed') + 1);\n", |
|
217 | 213 | " this.model.update_other_views(this);\n", |
|
218 | 214 | " }\n", |
@@ -228,11 +224,11 b'' | |||
|
228 | 224 | "metadata": {}, |
|
229 | 225 | "output_type": "display_data", |
|
230 | 226 | "text": [ |
|
231 |
"<IPython.core.display.Javascript at 0x2 |
|
|
227 | "<IPython.core.display.Javascript at 0x2fa80d0>" | |
|
232 | 228 | ] |
|
233 | 229 | } |
|
234 | 230 | ], |
|
235 |
"prompt_number": |
|
|
231 | "prompt_number": 3 | |
|
236 | 232 | }, |
|
237 | 233 | { |
|
238 | 234 | "cell_type": "code", |
@@ -275,7 +271,7 b'' | |||
|
275 | 271 | ] |
|
276 | 272 | } |
|
277 | 273 | ], |
|
278 |
"prompt_number": |
|
|
274 | "prompt_number": 4 | |
|
279 | 275 | }, |
|
280 | 276 | { |
|
281 | 277 | "cell_type": "code", |
General Comments 0
You need to be logged in to leave comments.
Login now