Show More
@@ -1,131 +1,131 b'' | |||
|
1 | 1 | # coding: utf-8 |
|
2 | 2 | import base64 |
|
3 | 3 | import io |
|
4 | 4 | import json |
|
5 | 5 | import os |
|
6 | 6 | from os.path import join as pjoin |
|
7 | 7 | import shutil |
|
8 | 8 | |
|
9 | 9 | import requests |
|
10 | 10 | |
|
11 | 11 | from IPython.html.utils import url_path_join |
|
12 | 12 | from IPython.html.tests.launchnotebook import NotebookTestBase, assert_http_error |
|
13 | 13 | from IPython.nbformat.current import (new_notebook, write, |
|
14 | 14 | new_heading_cell, new_code_cell, |
|
15 | 15 | new_output) |
|
16 | 16 | |
|
17 | 17 | from IPython.testing.decorators import onlyif_cmds_exist |
|
18 | 18 | |
|
19 | 19 | |
|
20 | 20 | class NbconvertAPI(object): |
|
21 | 21 | """Wrapper for nbconvert API calls.""" |
|
22 | 22 | def __init__(self, base_url): |
|
23 | 23 | self.base_url = base_url |
|
24 | 24 | |
|
25 | 25 | def _req(self, verb, path, body=None, params=None): |
|
26 | 26 | response = requests.request(verb, |
|
27 | 27 | url_path_join(self.base_url, 'nbconvert', path), |
|
28 | 28 | data=body, params=params, |
|
29 | 29 | ) |
|
30 | 30 | response.raise_for_status() |
|
31 | 31 | return response |
|
32 | 32 | |
|
33 | 33 | def from_file(self, format, path, name, download=False): |
|
34 | 34 | return self._req('GET', url_path_join(format, path, name), |
|
35 | 35 | params={'download':download}) |
|
36 | 36 | |
|
37 | 37 | def from_post(self, format, nbmodel): |
|
38 | 38 | body = json.dumps(nbmodel) |
|
39 | 39 | return self._req('POST', format, body) |
|
40 | 40 | |
|
41 | 41 | def list_formats(self): |
|
42 | 42 | return self._req('GET', '') |
|
43 | 43 | |
|
44 | 44 | png_green_pixel = base64.encodestring(b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00' |
|
45 | 45 | b'\x00\x00\x01\x00\x00x00\x01\x08\x02\x00\x00\x00\x90wS\xde\x00\x00\x00\x0cIDAT' |
|
46 | 46 | b'\x08\xd7c\x90\xfb\xcf\x00\x00\x02\\\x01\x1e.~d\x87\x00\x00\x00\x00IEND\xaeB`\x82' |
|
47 | 47 | ).decode('ascii') |
|
48 | 48 | |
|
49 | 49 | class APITest(NotebookTestBase): |
|
50 | 50 | def setUp(self): |
|
51 | 51 | nbdir = self.notebook_dir.name |
|
52 | 52 | |
|
53 | 53 | if not os.path.isdir(pjoin(nbdir, 'foo')): |
|
54 | 54 | os.mkdir(pjoin(nbdir, 'foo')) |
|
55 | 55 | |
|
56 | 56 | nb = new_notebook() |
|
57 | 57 | |
|
58 | 58 | nb.cells.append(new_heading_cell(u'Created by test ³')) |
|
59 | 59 | cc1 = new_code_cell(source=u'print(2*6)') |
|
60 | 60 | cc1.outputs.append(new_output(output_type="stream", data=u'12')) |
|
61 | 61 | cc1.outputs.append(new_output(output_type="execute_result", |
|
62 | 62 | mime_bundle={'image/png' : png_green_pixel}, |
|
63 | prompt_number=1, | |
|
63 | execution_count=1, | |
|
64 | 64 | )) |
|
65 | 65 | nb.cells.append(cc1) |
|
66 | 66 | |
|
67 | 67 | with io.open(pjoin(nbdir, 'foo', 'testnb.ipynb'), 'w', |
|
68 | 68 | encoding='utf-8') as f: |
|
69 | 69 | write(nb, f) |
|
70 | 70 | |
|
71 | 71 | self.nbconvert_api = NbconvertAPI(self.base_url()) |
|
72 | 72 | |
|
73 | 73 | def tearDown(self): |
|
74 | 74 | nbdir = self.notebook_dir.name |
|
75 | 75 | |
|
76 | 76 | for dname in ['foo']: |
|
77 | 77 | shutil.rmtree(pjoin(nbdir, dname), ignore_errors=True) |
|
78 | 78 | |
|
79 | 79 | @onlyif_cmds_exist('pandoc') |
|
80 | 80 | def test_from_file(self): |
|
81 | 81 | r = self.nbconvert_api.from_file('html', 'foo', 'testnb.ipynb') |
|
82 | 82 | self.assertEqual(r.status_code, 200) |
|
83 | 83 | self.assertIn(u'text/html', r.headers['Content-Type']) |
|
84 | 84 | self.assertIn(u'Created by test', r.text) |
|
85 | 85 | self.assertIn(u'print', r.text) |
|
86 | 86 | |
|
87 | 87 | r = self.nbconvert_api.from_file('python', 'foo', 'testnb.ipynb') |
|
88 | 88 | self.assertIn(u'text/x-python', r.headers['Content-Type']) |
|
89 | 89 | self.assertIn(u'print(2*6)', r.text) |
|
90 | 90 | |
|
91 | 91 | @onlyif_cmds_exist('pandoc') |
|
92 | 92 | def test_from_file_404(self): |
|
93 | 93 | with assert_http_error(404): |
|
94 | 94 | self.nbconvert_api.from_file('html', 'foo', 'thisdoesntexist.ipynb') |
|
95 | 95 | |
|
96 | 96 | @onlyif_cmds_exist('pandoc') |
|
97 | 97 | def test_from_file_download(self): |
|
98 | 98 | r = self.nbconvert_api.from_file('python', 'foo', 'testnb.ipynb', download=True) |
|
99 | 99 | content_disposition = r.headers['Content-Disposition'] |
|
100 | 100 | self.assertIn('attachment', content_disposition) |
|
101 | 101 | self.assertIn('testnb.py', content_disposition) |
|
102 | 102 | |
|
103 | 103 | @onlyif_cmds_exist('pandoc') |
|
104 | 104 | def test_from_file_zip(self): |
|
105 | 105 | r = self.nbconvert_api.from_file('latex', 'foo', 'testnb.ipynb', download=True) |
|
106 | 106 | self.assertIn(u'application/zip', r.headers['Content-Type']) |
|
107 | 107 | self.assertIn(u'.zip', r.headers['Content-Disposition']) |
|
108 | 108 | |
|
109 | 109 | @onlyif_cmds_exist('pandoc') |
|
110 | 110 | def test_from_post(self): |
|
111 | 111 | nbmodel_url = url_path_join(self.base_url(), 'api/contents/foo/testnb.ipynb') |
|
112 | 112 | nbmodel = requests.get(nbmodel_url).json() |
|
113 | 113 | |
|
114 | 114 | r = self.nbconvert_api.from_post(format='html', nbmodel=nbmodel) |
|
115 | 115 | self.assertEqual(r.status_code, 200) |
|
116 | 116 | self.assertIn(u'text/html', r.headers['Content-Type']) |
|
117 | 117 | self.assertIn(u'Created by test', r.text) |
|
118 | 118 | self.assertIn(u'print', r.text) |
|
119 | 119 | |
|
120 | 120 | r = self.nbconvert_api.from_post(format='python', nbmodel=nbmodel) |
|
121 | 121 | self.assertIn(u'text/x-python', r.headers['Content-Type']) |
|
122 | 122 | self.assertIn(u'print(2*6)', r.text) |
|
123 | 123 | |
|
124 | 124 | @onlyif_cmds_exist('pandoc') |
|
125 | 125 | def test_from_post_zip(self): |
|
126 | 126 | nbmodel_url = url_path_join(self.base_url(), 'api/contents/foo/testnb.ipynb') |
|
127 | 127 | nbmodel = requests.get(nbmodel_url).json() |
|
128 | 128 | |
|
129 | 129 | r = self.nbconvert_api.from_post(format='latex', nbmodel=nbmodel) |
|
130 | 130 | self.assertIn(u'application/zip', r.headers['Content-Type']) |
|
131 | 131 | self.assertIn(u'.zip', r.headers['Content-Disposition']) |
@@ -1,526 +1,526 b'' | |||
|
1 | 1 | // Copyright (c) IPython Development Team. |
|
2 | 2 | // Distributed under the terms of the Modified BSD License. |
|
3 | 3 | /** |
|
4 | 4 | * |
|
5 | 5 | * |
|
6 | 6 | * @module codecell |
|
7 | 7 | * @namespace codecell |
|
8 | 8 | * @class CodeCell |
|
9 | 9 | */ |
|
10 | 10 | |
|
11 | 11 | |
|
12 | 12 | define([ |
|
13 | 13 | 'base/js/namespace', |
|
14 | 14 | 'jquery', |
|
15 | 15 | 'base/js/utils', |
|
16 | 16 | 'base/js/keyboard', |
|
17 | 17 | 'notebook/js/cell', |
|
18 | 18 | 'notebook/js/outputarea', |
|
19 | 19 | 'notebook/js/completer', |
|
20 | 20 | 'notebook/js/celltoolbar', |
|
21 | 21 | 'codemirror/lib/codemirror', |
|
22 | 22 | 'codemirror/mode/python/python', |
|
23 | 23 | 'notebook/js/codemirror-ipython' |
|
24 | 24 | ], function(IPython, $, utils, keyboard, cell, outputarea, completer, celltoolbar, CodeMirror, cmpython, cmip) { |
|
25 | 25 | "use strict"; |
|
26 | 26 | var Cell = cell.Cell; |
|
27 | 27 | |
|
28 | 28 | /* local util for codemirror */ |
|
29 | 29 | var posEq = function(a, b) {return a.line == b.line && a.ch == b.ch;}; |
|
30 | 30 | |
|
31 | 31 | /** |
|
32 | 32 | * |
|
33 | 33 | * function to delete until previous non blanking space character |
|
34 | 34 | * or first multiple of 4 tabstop. |
|
35 | 35 | * @private |
|
36 | 36 | */ |
|
37 | 37 | CodeMirror.commands.delSpaceToPrevTabStop = function(cm){ |
|
38 | 38 | var from = cm.getCursor(true), to = cm.getCursor(false), sel = !posEq(from, to); |
|
39 | 39 | if (!posEq(from, to)) { cm.replaceRange("", from, to); return; } |
|
40 | 40 | var cur = cm.getCursor(), line = cm.getLine(cur.line); |
|
41 | 41 | var tabsize = cm.getOption('tabSize'); |
|
42 | 42 | var chToPrevTabStop = cur.ch-(Math.ceil(cur.ch/tabsize)-1)*tabsize; |
|
43 | 43 | from = {ch:cur.ch-chToPrevTabStop,line:cur.line}; |
|
44 | 44 | var select = cm.getRange(from,cur); |
|
45 | 45 | if( select.match(/^\ +$/) !== null){ |
|
46 | 46 | cm.replaceRange("",from,cur); |
|
47 | 47 | } else { |
|
48 | 48 | cm.deleteH(-1,"char"); |
|
49 | 49 | } |
|
50 | 50 | }; |
|
51 | 51 | |
|
52 | 52 | var keycodes = keyboard.keycodes; |
|
53 | 53 | |
|
54 | 54 | var CodeCell = function (kernel, options) { |
|
55 | 55 | // Constructor |
|
56 | 56 | // |
|
57 | 57 | // A Cell conceived to write code. |
|
58 | 58 | // |
|
59 | 59 | // Parameters: |
|
60 | 60 | // kernel: Kernel instance |
|
61 | 61 | // The kernel doesn't have to be set at creation time, in that case |
|
62 | 62 | // it will be null and set_kernel has to be called later. |
|
63 | 63 | // options: dictionary |
|
64 | 64 | // Dictionary of keyword arguments. |
|
65 | 65 | // events: $(Events) instance |
|
66 | 66 | // config: dictionary |
|
67 | 67 | // keyboard_manager: KeyboardManager instance |
|
68 | 68 | // notebook: Notebook instance |
|
69 | 69 | // tooltip: Tooltip instance |
|
70 | 70 | this.kernel = kernel || null; |
|
71 | 71 | this.notebook = options.notebook; |
|
72 | 72 | this.collapsed = false; |
|
73 | 73 | this.events = options.events; |
|
74 | 74 | this.tooltip = options.tooltip; |
|
75 | 75 | this.config = options.config; |
|
76 | 76 | |
|
77 | 77 | // create all attributed in constructor function |
|
78 | 78 | // even if null for V8 VM optimisation |
|
79 | 79 | this.input_prompt_number = null; |
|
80 | 80 | this.celltoolbar = null; |
|
81 | 81 | this.output_area = null; |
|
82 | 82 | this.last_msg_id = null; |
|
83 | 83 | this.completer = null; |
|
84 | 84 | |
|
85 | 85 | |
|
86 | 86 | var config = utils.mergeopt(CodeCell, this.config); |
|
87 | 87 | Cell.apply(this,[{ |
|
88 | 88 | config: config, |
|
89 | 89 | keyboard_manager: options.keyboard_manager, |
|
90 | 90 | events: this.events}]); |
|
91 | 91 | |
|
92 | 92 | // Attributes we want to override in this subclass. |
|
93 | 93 | this.cell_type = "code"; |
|
94 | 94 | |
|
95 | 95 | var that = this; |
|
96 | 96 | this.element.focusout( |
|
97 | 97 | function() { that.auto_highlight(); } |
|
98 | 98 | ); |
|
99 | 99 | }; |
|
100 | 100 | |
|
101 | 101 | CodeCell.options_default = { |
|
102 | 102 | cm_config : { |
|
103 | 103 | extraKeys: { |
|
104 | 104 | "Tab" : "indentMore", |
|
105 | 105 | "Shift-Tab" : "indentLess", |
|
106 | 106 | "Backspace" : "delSpaceToPrevTabStop", |
|
107 | 107 | "Cmd-/" : "toggleComment", |
|
108 | 108 | "Ctrl-/" : "toggleComment" |
|
109 | 109 | }, |
|
110 | 110 | mode: 'ipython', |
|
111 | 111 | theme: 'ipython', |
|
112 | 112 | matchBrackets: true |
|
113 | 113 | } |
|
114 | 114 | }; |
|
115 | 115 | |
|
116 | 116 | CodeCell.msg_cells = {}; |
|
117 | 117 | |
|
118 | 118 | CodeCell.prototype = Object.create(Cell.prototype); |
|
119 | 119 | |
|
120 | 120 | /** |
|
121 | 121 | * @method auto_highlight |
|
122 | 122 | */ |
|
123 | 123 | CodeCell.prototype.auto_highlight = function () { |
|
124 | 124 | this._auto_highlight(this.config.cell_magic_highlight); |
|
125 | 125 | }; |
|
126 | 126 | |
|
127 | 127 | /** @method create_element */ |
|
128 | 128 | CodeCell.prototype.create_element = function () { |
|
129 | 129 | Cell.prototype.create_element.apply(this, arguments); |
|
130 | 130 | |
|
131 | 131 | var cell = $('<div></div>').addClass('cell code_cell'); |
|
132 | 132 | cell.attr('tabindex','2'); |
|
133 | 133 | |
|
134 | 134 | var input = $('<div></div>').addClass('input'); |
|
135 | 135 | var prompt = $('<div/>').addClass('prompt input_prompt'); |
|
136 | 136 | var inner_cell = $('<div/>').addClass('inner_cell'); |
|
137 | 137 | this.celltoolbar = new celltoolbar.CellToolbar({ |
|
138 | 138 | cell: this, |
|
139 | 139 | notebook: this.notebook}); |
|
140 | 140 | inner_cell.append(this.celltoolbar.element); |
|
141 | 141 | var input_area = $('<div/>').addClass('input_area'); |
|
142 | 142 | this.code_mirror = new CodeMirror(input_area.get(0), this.cm_config); |
|
143 | 143 | this.code_mirror.on('keydown', $.proxy(this.handle_keyevent,this)) |
|
144 | 144 | $(this.code_mirror.getInputField()).attr("spellcheck", "false"); |
|
145 | 145 | inner_cell.append(input_area); |
|
146 | 146 | input.append(prompt).append(inner_cell); |
|
147 | 147 | |
|
148 | 148 | var widget_area = $('<div/>') |
|
149 | 149 | .addClass('widget-area') |
|
150 | 150 | .hide(); |
|
151 | 151 | this.widget_area = widget_area; |
|
152 | 152 | var widget_prompt = $('<div/>') |
|
153 | 153 | .addClass('prompt') |
|
154 | 154 | .appendTo(widget_area); |
|
155 | 155 | var widget_subarea = $('<div/>') |
|
156 | 156 | .addClass('widget-subarea') |
|
157 | 157 | .appendTo(widget_area); |
|
158 | 158 | this.widget_subarea = widget_subarea; |
|
159 | 159 | var widget_clear_buton = $('<button />') |
|
160 | 160 | .addClass('close') |
|
161 | 161 | .html('×') |
|
162 | 162 | .click(function() { |
|
163 | 163 | widget_area.slideUp('', function(){ widget_subarea.html(''); }); |
|
164 | 164 | }) |
|
165 | 165 | .appendTo(widget_prompt); |
|
166 | 166 | |
|
167 | 167 | var output = $('<div></div>'); |
|
168 | 168 | cell.append(input).append(widget_area).append(output); |
|
169 | 169 | this.element = cell; |
|
170 | 170 | this.output_area = new outputarea.OutputArea({ |
|
171 | 171 | selector: output, |
|
172 | 172 | prompt_area: true, |
|
173 | 173 | events: this.events, |
|
174 | 174 | keyboard_manager: this.keyboard_manager}); |
|
175 | 175 | this.completer = new completer.Completer(this, this.events); |
|
176 | 176 | }; |
|
177 | 177 | |
|
178 | 178 | /** @method bind_events */ |
|
179 | 179 | CodeCell.prototype.bind_events = function () { |
|
180 | 180 | Cell.prototype.bind_events.apply(this); |
|
181 | 181 | var that = this; |
|
182 | 182 | |
|
183 | 183 | this.element.focusout( |
|
184 | 184 | function() { that.auto_highlight(); } |
|
185 | 185 | ); |
|
186 | 186 | }; |
|
187 | 187 | |
|
188 | 188 | |
|
189 | 189 | /** |
|
190 | 190 | * This method gets called in CodeMirror's onKeyDown/onKeyPress |
|
191 | 191 | * handlers and is used to provide custom key handling. Its return |
|
192 | 192 | * value is used to determine if CodeMirror should ignore the event: |
|
193 | 193 | * true = ignore, false = don't ignore. |
|
194 | 194 | * @method handle_codemirror_keyevent |
|
195 | 195 | */ |
|
196 | 196 | CodeCell.prototype.handle_codemirror_keyevent = function (editor, event) { |
|
197 | 197 | |
|
198 | 198 | var that = this; |
|
199 | 199 | // whatever key is pressed, first, cancel the tooltip request before |
|
200 | 200 | // they are sent, and remove tooltip if any, except for tab again |
|
201 | 201 | var tooltip_closed = null; |
|
202 | 202 | if (event.type === 'keydown' && event.which != keycodes.tab ) { |
|
203 | 203 | tooltip_closed = this.tooltip.remove_and_cancel_tooltip(); |
|
204 | 204 | } |
|
205 | 205 | |
|
206 | 206 | var cur = editor.getCursor(); |
|
207 | 207 | if (event.keyCode === keycodes.enter){ |
|
208 | 208 | this.auto_highlight(); |
|
209 | 209 | } |
|
210 | 210 | |
|
211 | 211 | if (event.which === keycodes.down && event.type === 'keypress' && this.tooltip.time_before_tooltip >= 0) { |
|
212 | 212 | // triger on keypress (!) otherwise inconsistent event.which depending on plateform |
|
213 | 213 | // browser and keyboard layout ! |
|
214 | 214 | // Pressing '(' , request tooltip, don't forget to reappend it |
|
215 | 215 | // The second argument says to hide the tooltip if the docstring |
|
216 | 216 | // is actually empty |
|
217 | 217 | this.tooltip.pending(that, true); |
|
218 | 218 | } else if ( tooltip_closed && event.which === keycodes.esc && event.type === 'keydown') { |
|
219 | 219 | // If tooltip is active, cancel it. The call to |
|
220 | 220 | // remove_and_cancel_tooltip above doesn't pass, force=true. |
|
221 | 221 | // Because of this it won't actually close the tooltip |
|
222 | 222 | // if it is in sticky mode. Thus, we have to check again if it is open |
|
223 | 223 | // and close it with force=true. |
|
224 | 224 | if (!this.tooltip._hidden) { |
|
225 | 225 | this.tooltip.remove_and_cancel_tooltip(true); |
|
226 | 226 | } |
|
227 | 227 | // If we closed the tooltip, don't let CM or the global handlers |
|
228 | 228 | // handle this event. |
|
229 | 229 | event.codemirrorIgnore = true; |
|
230 | 230 | event.preventDefault(); |
|
231 | 231 | return true; |
|
232 | 232 | } else if (event.keyCode === keycodes.tab && event.type === 'keydown' && event.shiftKey) { |
|
233 | 233 | if (editor.somethingSelected() || editor.getSelections().length !== 1){ |
|
234 | 234 | var anchor = editor.getCursor("anchor"); |
|
235 | 235 | var head = editor.getCursor("head"); |
|
236 | 236 | if( anchor.line != head.line){ |
|
237 | 237 | return false; |
|
238 | 238 | } |
|
239 | 239 | } |
|
240 | 240 | this.tooltip.request(that); |
|
241 | 241 | event.codemirrorIgnore = true; |
|
242 | 242 | event.preventDefault(); |
|
243 | 243 | return true; |
|
244 | 244 | } else if (event.keyCode === keycodes.tab && event.type == 'keydown') { |
|
245 | 245 | // Tab completion. |
|
246 | 246 | this.tooltip.remove_and_cancel_tooltip(); |
|
247 | 247 | |
|
248 | 248 | // completion does not work on multicursor, it might be possible though in some cases |
|
249 | 249 | if (editor.somethingSelected() || editor.getSelections().length > 1) { |
|
250 | 250 | return false; |
|
251 | 251 | } |
|
252 | 252 | var pre_cursor = editor.getRange({line:cur.line,ch:0},cur); |
|
253 | 253 | if (pre_cursor.trim() === "") { |
|
254 | 254 | // Don't autocomplete if the part of the line before the cursor |
|
255 | 255 | // is empty. In this case, let CodeMirror handle indentation. |
|
256 | 256 | return false; |
|
257 | 257 | } else { |
|
258 | 258 | event.codemirrorIgnore = true; |
|
259 | 259 | event.preventDefault(); |
|
260 | 260 | this.completer.startCompletion(); |
|
261 | 261 | return true; |
|
262 | 262 | } |
|
263 | 263 | } |
|
264 | 264 | |
|
265 | 265 | // keyboard event wasn't one of those unique to code cells, let's see |
|
266 | 266 | // if it's one of the generic ones (i.e. check edit mode shortcuts) |
|
267 | 267 | return Cell.prototype.handle_codemirror_keyevent.apply(this, [editor, event]); |
|
268 | 268 | }; |
|
269 | 269 | |
|
270 | 270 | // Kernel related calls. |
|
271 | 271 | |
|
272 | 272 | CodeCell.prototype.set_kernel = function (kernel) { |
|
273 | 273 | this.kernel = kernel; |
|
274 | 274 | }; |
|
275 | 275 | |
|
276 | 276 | /** |
|
277 | 277 | * Execute current code cell to the kernel |
|
278 | 278 | * @method execute |
|
279 | 279 | */ |
|
280 | 280 | CodeCell.prototype.execute = function () { |
|
281 | 281 | this.output_area.clear_output(); |
|
282 | 282 | |
|
283 | 283 | // Clear widget area |
|
284 | 284 | this.widget_subarea.html(''); |
|
285 | 285 | this.widget_subarea.height(''); |
|
286 | 286 | this.widget_area.height(''); |
|
287 | 287 | this.widget_area.hide(); |
|
288 | 288 | |
|
289 | 289 | this.set_input_prompt('*'); |
|
290 | 290 | this.element.addClass("running"); |
|
291 | 291 | if (this.last_msg_id) { |
|
292 | 292 | this.kernel.clear_callbacks_for_msg(this.last_msg_id); |
|
293 | 293 | } |
|
294 | 294 | var callbacks = this.get_callbacks(); |
|
295 | 295 | |
|
296 | 296 | var old_msg_id = this.last_msg_id; |
|
297 | 297 | this.last_msg_id = this.kernel.execute(this.get_text(), callbacks, {silent: false, store_history: true}); |
|
298 | 298 | if (old_msg_id) { |
|
299 | 299 | delete CodeCell.msg_cells[old_msg_id]; |
|
300 | 300 | } |
|
301 | 301 | CodeCell.msg_cells[this.last_msg_id] = this; |
|
302 | 302 | this.render(); |
|
303 | 303 | }; |
|
304 | 304 | |
|
305 | 305 | /** |
|
306 | 306 | * Construct the default callbacks for |
|
307 | 307 | * @method get_callbacks |
|
308 | 308 | */ |
|
309 | 309 | CodeCell.prototype.get_callbacks = function () { |
|
310 | 310 | return { |
|
311 | 311 | shell : { |
|
312 | 312 | reply : $.proxy(this._handle_execute_reply, this), |
|
313 | 313 | payload : { |
|
314 | 314 | set_next_input : $.proxy(this._handle_set_next_input, this), |
|
315 | 315 | page : $.proxy(this._open_with_pager, this) |
|
316 | 316 | } |
|
317 | 317 | }, |
|
318 | 318 | iopub : { |
|
319 | 319 | output : $.proxy(this.output_area.handle_output, this.output_area), |
|
320 | 320 | clear_output : $.proxy(this.output_area.handle_clear_output, this.output_area), |
|
321 | 321 | }, |
|
322 | 322 | input : $.proxy(this._handle_input_request, this) |
|
323 | 323 | }; |
|
324 | 324 | }; |
|
325 | 325 | |
|
326 | 326 | CodeCell.prototype._open_with_pager = function (payload) { |
|
327 | 327 | this.events.trigger('open_with_text.Pager', payload); |
|
328 | 328 | }; |
|
329 | 329 | |
|
330 | 330 | /** |
|
331 | 331 | * @method _handle_execute_reply |
|
332 | 332 | * @private |
|
333 | 333 | */ |
|
334 | 334 | CodeCell.prototype._handle_execute_reply = function (msg) { |
|
335 | 335 | this.set_input_prompt(msg.content.execution_count); |
|
336 | 336 | this.element.removeClass("running"); |
|
337 | 337 | this.events.trigger('set_dirty.Notebook', {value: true}); |
|
338 | 338 | }; |
|
339 | 339 | |
|
340 | 340 | /** |
|
341 | 341 | * @method _handle_set_next_input |
|
342 | 342 | * @private |
|
343 | 343 | */ |
|
344 | 344 | CodeCell.prototype._handle_set_next_input = function (payload) { |
|
345 | 345 | var data = {'cell': this, 'text': payload.text}; |
|
346 | 346 | this.events.trigger('set_next_input.Notebook', data); |
|
347 | 347 | }; |
|
348 | 348 | |
|
349 | 349 | /** |
|
350 | 350 | * @method _handle_input_request |
|
351 | 351 | * @private |
|
352 | 352 | */ |
|
353 | 353 | CodeCell.prototype._handle_input_request = function (msg) { |
|
354 | 354 | this.output_area.append_raw_input(msg); |
|
355 | 355 | }; |
|
356 | 356 | |
|
357 | 357 | |
|
358 | 358 | // Basic cell manipulation. |
|
359 | 359 | |
|
360 | 360 | CodeCell.prototype.select = function () { |
|
361 | 361 | var cont = Cell.prototype.select.apply(this); |
|
362 | 362 | if (cont) { |
|
363 | 363 | this.code_mirror.refresh(); |
|
364 | 364 | this.auto_highlight(); |
|
365 | 365 | } |
|
366 | 366 | return cont; |
|
367 | 367 | }; |
|
368 | 368 | |
|
369 | 369 | CodeCell.prototype.render = function () { |
|
370 | 370 | var cont = Cell.prototype.render.apply(this); |
|
371 | 371 | // Always execute, even if we are already in the rendered state |
|
372 | 372 | return cont; |
|
373 | 373 | }; |
|
374 | 374 | |
|
375 | 375 | CodeCell.prototype.select_all = function () { |
|
376 | 376 | var start = {line: 0, ch: 0}; |
|
377 | 377 | var nlines = this.code_mirror.lineCount(); |
|
378 | 378 | var last_line = this.code_mirror.getLine(nlines-1); |
|
379 | 379 | var end = {line: nlines-1, ch: last_line.length}; |
|
380 | 380 | this.code_mirror.setSelection(start, end); |
|
381 | 381 | }; |
|
382 | 382 | |
|
383 | 383 | |
|
384 | 384 | CodeCell.prototype.collapse_output = function () { |
|
385 | 385 | this.output_area.collapse(); |
|
386 | 386 | }; |
|
387 | 387 | |
|
388 | 388 | |
|
389 | 389 | CodeCell.prototype.expand_output = function () { |
|
390 | 390 | this.output_area.expand(); |
|
391 | 391 | this.output_area.unscroll_area(); |
|
392 | 392 | }; |
|
393 | 393 | |
|
394 | 394 | CodeCell.prototype.scroll_output = function () { |
|
395 | 395 | this.output_area.expand(); |
|
396 | 396 | this.output_area.scroll_if_long(); |
|
397 | 397 | }; |
|
398 | 398 | |
|
399 | 399 | CodeCell.prototype.toggle_output = function () { |
|
400 | 400 | this.output_area.toggle_output(); |
|
401 | 401 | }; |
|
402 | 402 | |
|
403 | 403 | CodeCell.prototype.toggle_output_scroll = function () { |
|
404 | 404 | this.output_area.toggle_scroll(); |
|
405 | 405 | }; |
|
406 | 406 | |
|
407 | 407 | |
|
408 | 408 | CodeCell.input_prompt_classical = function (prompt_value, lines_number) { |
|
409 | 409 | var ns; |
|
410 | 410 | if (prompt_value === undefined || prompt_value === null) { |
|
411 | 411 | ns = " "; |
|
412 | 412 | } else { |
|
413 | 413 | ns = encodeURIComponent(prompt_value); |
|
414 | 414 | } |
|
415 | 415 | return 'In [' + ns + ']:'; |
|
416 | 416 | }; |
|
417 | 417 | |
|
418 | 418 | CodeCell.input_prompt_continuation = function (prompt_value, lines_number) { |
|
419 | 419 | var html = [CodeCell.input_prompt_classical(prompt_value, lines_number)]; |
|
420 | 420 | for(var i=1; i < lines_number; i++) { |
|
421 | 421 | html.push(['...:']); |
|
422 | 422 | } |
|
423 | 423 | return html.join('<br/>'); |
|
424 | 424 | }; |
|
425 | 425 | |
|
426 | 426 | CodeCell.input_prompt_function = CodeCell.input_prompt_classical; |
|
427 | 427 | |
|
428 | 428 | |
|
429 | 429 | CodeCell.prototype.set_input_prompt = function (number) { |
|
430 | 430 | var nline = 1; |
|
431 | 431 | if (this.code_mirror !== undefined) { |
|
432 | 432 | nline = this.code_mirror.lineCount(); |
|
433 | 433 | } |
|
434 | 434 | this.input_prompt_number = number; |
|
435 | 435 | var prompt_html = CodeCell.input_prompt_function(this.input_prompt_number, nline); |
|
436 | 436 | // This HTML call is okay because the user contents are escaped. |
|
437 | 437 | this.element.find('div.input_prompt').html(prompt_html); |
|
438 | 438 | }; |
|
439 | 439 | |
|
440 | 440 | |
|
441 | 441 | CodeCell.prototype.clear_input = function () { |
|
442 | 442 | this.code_mirror.setValue(''); |
|
443 | 443 | }; |
|
444 | 444 | |
|
445 | 445 | |
|
446 | 446 | CodeCell.prototype.get_text = function () { |
|
447 | 447 | return this.code_mirror.getValue(); |
|
448 | 448 | }; |
|
449 | 449 | |
|
450 | 450 | |
|
451 | 451 | CodeCell.prototype.set_text = function (code) { |
|
452 | 452 | return this.code_mirror.setValue(code); |
|
453 | 453 | }; |
|
454 | 454 | |
|
455 | 455 | |
|
456 | 456 | CodeCell.prototype.clear_output = function (wait) { |
|
457 | 457 | this.output_area.clear_output(wait); |
|
458 | 458 | this.set_input_prompt(); |
|
459 | 459 | }; |
|
460 | 460 | |
|
461 | 461 | |
|
462 | 462 | // JSON serialization |
|
463 | 463 | |
|
464 | 464 | CodeCell.prototype.fromJSON = function (data) { |
|
465 | 465 | Cell.prototype.fromJSON.apply(this, arguments); |
|
466 | 466 | if (data.cell_type === 'code') { |
|
467 | 467 | if (data.source !== undefined) { |
|
468 | 468 | this.set_text(data.source); |
|
469 | 469 | // make this value the starting point, so that we can only undo |
|
470 | 470 | // to this state, instead of a blank cell |
|
471 | 471 | this.code_mirror.clearHistory(); |
|
472 | 472 | this.auto_highlight(); |
|
473 | 473 | } |
|
474 |
this.set_input_prompt(data. |
|
|
474 | this.set_input_prompt(data.execution_count); | |
|
475 | 475 | this.output_area.trusted = data.metadata.trusted || false; |
|
476 | 476 | this.output_area.fromJSON(data.outputs); |
|
477 | 477 | if (data.metadata.collapsed !== undefined) { |
|
478 | 478 | if (data.metadata.collapsed) { |
|
479 | 479 | this.collapse_output(); |
|
480 | 480 | } else { |
|
481 | 481 | this.expand_output(); |
|
482 | 482 | } |
|
483 | 483 | } |
|
484 | 484 | } |
|
485 | 485 | }; |
|
486 | 486 | |
|
487 | 487 | |
|
488 | 488 | CodeCell.prototype.toJSON = function () { |
|
489 | 489 | var data = Cell.prototype.toJSON.apply(this); |
|
490 | 490 | data.source = this.get_text(); |
|
491 | 491 | // is finite protect against undefined and '*' value |
|
492 | 492 | if (isFinite(this.input_prompt_number)) { |
|
493 |
data. |
|
|
493 | data.execution_count = this.input_prompt_number; | |
|
494 | 494 | } else { |
|
495 |
data. |
|
|
495 | data.execution_count = null; | |
|
496 | 496 | } |
|
497 | 497 | var outputs = this.output_area.toJSON(); |
|
498 | 498 | data.outputs = outputs; |
|
499 | 499 | data.metadata.trusted = this.output_area.trusted; |
|
500 | 500 | data.metadata.collapsed = this.output_area.collapsed; |
|
501 | 501 | return data; |
|
502 | 502 | }; |
|
503 | 503 | |
|
504 | 504 | /** |
|
505 | 505 | * handle cell level logic when a cell is unselected |
|
506 | 506 | * @method unselect |
|
507 | 507 | * @return is the action being taken |
|
508 | 508 | */ |
|
509 | 509 | CodeCell.prototype.unselect = function () { |
|
510 | 510 | var cont = Cell.prototype.unselect.apply(this); |
|
511 | 511 | if (cont) { |
|
512 | 512 | // When a code cell is usnelected, make sure that the corresponding |
|
513 | 513 | // tooltip and completer to that cell is closed. |
|
514 | 514 | this.tooltip.remove_and_cancel_tooltip(true); |
|
515 | 515 | if (this.completer !== null) { |
|
516 | 516 | this.completer.close(); |
|
517 | 517 | } |
|
518 | 518 | } |
|
519 | 519 | return cont; |
|
520 | 520 | }; |
|
521 | 521 | |
|
522 | 522 | // Backwards compatability. |
|
523 | 523 | IPython.CodeCell = CodeCell; |
|
524 | 524 | |
|
525 | 525 | return {'CodeCell': CodeCell}; |
|
526 | 526 | }); |
@@ -1,941 +1,941 b'' | |||
|
1 | 1 | // Copyright (c) IPython Development Team. |
|
2 | 2 | // Distributed under the terms of the Modified BSD License. |
|
3 | 3 | |
|
4 | 4 | define([ |
|
5 | 5 | 'base/js/namespace', |
|
6 | 6 | 'jqueryui', |
|
7 | 7 | 'base/js/utils', |
|
8 | 8 | 'base/js/security', |
|
9 | 9 | 'base/js/keyboard', |
|
10 | 10 | 'notebook/js/mathjaxutils', |
|
11 | 11 | 'components/marked/lib/marked', |
|
12 | 12 | ], function(IPython, $, utils, security, keyboard, mathjaxutils, marked) { |
|
13 | 13 | "use strict"; |
|
14 | 14 | |
|
15 | 15 | /** |
|
16 | 16 | * @class OutputArea |
|
17 | 17 | * |
|
18 | 18 | * @constructor |
|
19 | 19 | */ |
|
20 | 20 | |
|
21 | 21 | var OutputArea = function (options) { |
|
22 | 22 | this.selector = options.selector; |
|
23 | 23 | this.events = options.events; |
|
24 | 24 | this.keyboard_manager = options.keyboard_manager; |
|
25 | 25 | this.wrapper = $(options.selector); |
|
26 | 26 | this.outputs = []; |
|
27 | 27 | this.collapsed = false; |
|
28 | 28 | this.scrolled = false; |
|
29 | 29 | this.trusted = true; |
|
30 | 30 | this.clear_queued = null; |
|
31 | 31 | if (options.prompt_area === undefined) { |
|
32 | 32 | this.prompt_area = true; |
|
33 | 33 | } else { |
|
34 | 34 | this.prompt_area = options.prompt_area; |
|
35 | 35 | } |
|
36 | 36 | this.create_elements(); |
|
37 | 37 | this.style(); |
|
38 | 38 | this.bind_events(); |
|
39 | 39 | }; |
|
40 | 40 | |
|
41 | 41 | |
|
42 | 42 | /** |
|
43 | 43 | * Class prototypes |
|
44 | 44 | **/ |
|
45 | 45 | |
|
46 | 46 | OutputArea.prototype.create_elements = function () { |
|
47 | 47 | this.element = $("<div/>"); |
|
48 | 48 | this.collapse_button = $("<div/>"); |
|
49 | 49 | this.prompt_overlay = $("<div/>"); |
|
50 | 50 | this.wrapper.append(this.prompt_overlay); |
|
51 | 51 | this.wrapper.append(this.element); |
|
52 | 52 | this.wrapper.append(this.collapse_button); |
|
53 | 53 | }; |
|
54 | 54 | |
|
55 | 55 | |
|
56 | 56 | OutputArea.prototype.style = function () { |
|
57 | 57 | this.collapse_button.hide(); |
|
58 | 58 | this.prompt_overlay.hide(); |
|
59 | 59 | |
|
60 | 60 | this.wrapper.addClass('output_wrapper'); |
|
61 | 61 | this.element.addClass('output'); |
|
62 | 62 | |
|
63 | 63 | this.collapse_button.addClass("btn btn-default output_collapsed"); |
|
64 | 64 | this.collapse_button.attr('title', 'click to expand output'); |
|
65 | 65 | this.collapse_button.text('. . .'); |
|
66 | 66 | |
|
67 | 67 | this.prompt_overlay.addClass('out_prompt_overlay prompt'); |
|
68 | 68 | this.prompt_overlay.attr('title', 'click to expand output; double click to hide output'); |
|
69 | 69 | |
|
70 | 70 | this.collapse(); |
|
71 | 71 | }; |
|
72 | 72 | |
|
73 | 73 | /** |
|
74 | 74 | * Should the OutputArea scroll? |
|
75 | 75 | * Returns whether the height (in lines) exceeds a threshold. |
|
76 | 76 | * |
|
77 | 77 | * @private |
|
78 | 78 | * @method _should_scroll |
|
79 | 79 | * @param [lines=100]{Integer} |
|
80 | 80 | * @return {Bool} |
|
81 | 81 | * |
|
82 | 82 | */ |
|
83 | 83 | OutputArea.prototype._should_scroll = function (lines) { |
|
84 | 84 | if (lines <=0 ){ return } |
|
85 | 85 | if (!lines) { |
|
86 | 86 | lines = 100; |
|
87 | 87 | } |
|
88 | 88 | // line-height from http://stackoverflow.com/questions/1185151 |
|
89 | 89 | var fontSize = this.element.css('font-size'); |
|
90 | 90 | var lineHeight = Math.floor(parseInt(fontSize.replace('px','')) * 1.5); |
|
91 | 91 | |
|
92 | 92 | return (this.element.height() > lines * lineHeight); |
|
93 | 93 | }; |
|
94 | 94 | |
|
95 | 95 | |
|
96 | 96 | OutputArea.prototype.bind_events = function () { |
|
97 | 97 | var that = this; |
|
98 | 98 | this.prompt_overlay.dblclick(function () { that.toggle_output(); }); |
|
99 | 99 | this.prompt_overlay.click(function () { that.toggle_scroll(); }); |
|
100 | 100 | |
|
101 | 101 | this.element.resize(function () { |
|
102 | 102 | // FIXME: Firefox on Linux misbehaves, so automatic scrolling is disabled |
|
103 | 103 | if ( utils.browser[0] === "Firefox" ) { |
|
104 | 104 | return; |
|
105 | 105 | } |
|
106 | 106 | // maybe scroll output, |
|
107 | 107 | // if it's grown large enough and hasn't already been scrolled. |
|
108 | 108 | if ( !that.scrolled && that._should_scroll(OutputArea.auto_scroll_threshold)) { |
|
109 | 109 | that.scroll_area(); |
|
110 | 110 | } |
|
111 | 111 | }); |
|
112 | 112 | this.collapse_button.click(function () { |
|
113 | 113 | that.expand(); |
|
114 | 114 | }); |
|
115 | 115 | }; |
|
116 | 116 | |
|
117 | 117 | |
|
118 | 118 | OutputArea.prototype.collapse = function () { |
|
119 | 119 | if (!this.collapsed) { |
|
120 | 120 | this.element.hide(); |
|
121 | 121 | this.prompt_overlay.hide(); |
|
122 | 122 | if (this.element.html()){ |
|
123 | 123 | this.collapse_button.show(); |
|
124 | 124 | } |
|
125 | 125 | this.collapsed = true; |
|
126 | 126 | } |
|
127 | 127 | }; |
|
128 | 128 | |
|
129 | 129 | |
|
130 | 130 | OutputArea.prototype.expand = function () { |
|
131 | 131 | if (this.collapsed) { |
|
132 | 132 | this.collapse_button.hide(); |
|
133 | 133 | this.element.show(); |
|
134 | 134 | this.prompt_overlay.show(); |
|
135 | 135 | this.collapsed = false; |
|
136 | 136 | } |
|
137 | 137 | }; |
|
138 | 138 | |
|
139 | 139 | |
|
140 | 140 | OutputArea.prototype.toggle_output = function () { |
|
141 | 141 | if (this.collapsed) { |
|
142 | 142 | this.expand(); |
|
143 | 143 | } else { |
|
144 | 144 | this.collapse(); |
|
145 | 145 | } |
|
146 | 146 | }; |
|
147 | 147 | |
|
148 | 148 | |
|
149 | 149 | OutputArea.prototype.scroll_area = function () { |
|
150 | 150 | this.element.addClass('output_scroll'); |
|
151 | 151 | this.prompt_overlay.attr('title', 'click to unscroll output; double click to hide'); |
|
152 | 152 | this.scrolled = true; |
|
153 | 153 | }; |
|
154 | 154 | |
|
155 | 155 | |
|
156 | 156 | OutputArea.prototype.unscroll_area = function () { |
|
157 | 157 | this.element.removeClass('output_scroll'); |
|
158 | 158 | this.prompt_overlay.attr('title', 'click to scroll output; double click to hide'); |
|
159 | 159 | this.scrolled = false; |
|
160 | 160 | }; |
|
161 | 161 | |
|
162 | 162 | /** |
|
163 | 163 | * |
|
164 | 164 | * Scroll OutputArea if height supperior than a threshold (in lines). |
|
165 | 165 | * |
|
166 | 166 | * Threshold is a maximum number of lines. If unspecified, defaults to |
|
167 | 167 | * OutputArea.minimum_scroll_threshold. |
|
168 | 168 | * |
|
169 | 169 | * Negative threshold will prevent the OutputArea from ever scrolling. |
|
170 | 170 | * |
|
171 | 171 | * @method scroll_if_long |
|
172 | 172 | * |
|
173 | 173 | * @param [lines=20]{Number} Default to 20 if not set, |
|
174 | 174 | * behavior undefined for value of `0`. |
|
175 | 175 | * |
|
176 | 176 | **/ |
|
177 | 177 | OutputArea.prototype.scroll_if_long = function (lines) { |
|
178 | 178 | var n = lines | OutputArea.minimum_scroll_threshold; |
|
179 | 179 | if(n <= 0){ |
|
180 | 180 | return |
|
181 | 181 | } |
|
182 | 182 | |
|
183 | 183 | if (this._should_scroll(n)) { |
|
184 | 184 | // only allow scrolling long-enough output |
|
185 | 185 | this.scroll_area(); |
|
186 | 186 | } |
|
187 | 187 | }; |
|
188 | 188 | |
|
189 | 189 | |
|
190 | 190 | OutputArea.prototype.toggle_scroll = function () { |
|
191 | 191 | if (this.scrolled) { |
|
192 | 192 | this.unscroll_area(); |
|
193 | 193 | } else { |
|
194 | 194 | // only allow scrolling long-enough output |
|
195 | 195 | this.scroll_if_long(); |
|
196 | 196 | } |
|
197 | 197 | }; |
|
198 | 198 | |
|
199 | 199 | |
|
200 | 200 | // typeset with MathJax if MathJax is available |
|
201 | 201 | OutputArea.prototype.typeset = function () { |
|
202 | 202 | if (window.MathJax){ |
|
203 | 203 | MathJax.Hub.Queue(["Typeset",MathJax.Hub]); |
|
204 | 204 | } |
|
205 | 205 | }; |
|
206 | 206 | |
|
207 | 207 | |
|
208 | 208 | OutputArea.prototype.handle_output = function (msg) { |
|
209 | 209 | var json = {}; |
|
210 | 210 | var msg_type = json.output_type = msg.header.msg_type; |
|
211 | 211 | var content = msg.content; |
|
212 | 212 | if (msg_type === "stream") { |
|
213 | 213 | json.text = content.text; |
|
214 | 214 | json.name = content.name; |
|
215 | 215 | } else if (msg_type === "display_data") { |
|
216 | 216 | json = content.data; |
|
217 | 217 | json.output_type = msg_type; |
|
218 | 218 | json.metadata = content.metadata; |
|
219 | 219 | } else if (msg_type === "execute_result") { |
|
220 | 220 | json = content.data; |
|
221 | 221 | json.output_type = msg_type; |
|
222 | 222 | json.metadata = content.metadata; |
|
223 |
json. |
|
|
223 | json.execution_count = content.execution_count; | |
|
224 | 224 | } else if (msg_type === "error") { |
|
225 | 225 | json.ename = content.ename; |
|
226 | 226 | json.evalue = content.evalue; |
|
227 | 227 | json.traceback = content.traceback; |
|
228 | 228 | } else { |
|
229 | 229 | console.log("unhandled output message", msg); |
|
230 | 230 | return; |
|
231 | 231 | } |
|
232 | 232 | this.append_output(json); |
|
233 | 233 | }; |
|
234 | 234 | |
|
235 | 235 | |
|
236 | 236 | OutputArea.prototype.rename_keys = function (data, key_map) { |
|
237 | 237 | // TODO: This is now unused, should it be removed? |
|
238 | 238 | var remapped = {}; |
|
239 | 239 | for (var key in data) { |
|
240 | 240 | var new_key = key_map[key] || key; |
|
241 | 241 | remapped[new_key] = data[key]; |
|
242 | 242 | } |
|
243 | 243 | return remapped; |
|
244 | 244 | }; |
|
245 | 245 | |
|
246 | 246 | |
|
247 | 247 | OutputArea.output_types = [ |
|
248 | 248 | 'application/javascript', |
|
249 | 249 | 'text/html', |
|
250 | 250 | 'text/markdown', |
|
251 | 251 | 'text/latex', |
|
252 | 252 | 'image/svg+xml', |
|
253 | 253 | 'image/png', |
|
254 | 254 | 'image/jpeg', |
|
255 | 255 | 'application/pdf', |
|
256 | 256 | 'text/plain' |
|
257 | 257 | ]; |
|
258 | 258 | |
|
259 | 259 | OutputArea.prototype.validate_output = function (json) { |
|
260 | 260 | // scrub invalid outputs |
|
261 | 261 | // TODO: right now everything is a string, but JSON really shouldn't be. |
|
262 | 262 | // nbformat 4 will fix that. |
|
263 | 263 | $.map(OutputArea.output_types, function(key){ |
|
264 | 264 | if (key !== 'application/json' && |
|
265 | 265 | json[key] !== undefined && |
|
266 | 266 | typeof json[key] !== 'string' |
|
267 | 267 | ) { |
|
268 | 268 | console.log("Invalid type for " + key, json[key]); |
|
269 | 269 | delete json[key]; |
|
270 | 270 | } |
|
271 | 271 | }); |
|
272 | 272 | return json; |
|
273 | 273 | }; |
|
274 | 274 | |
|
275 | 275 | OutputArea.prototype.append_output = function (json) { |
|
276 | 276 | this.expand(); |
|
277 | 277 | |
|
278 | 278 | // validate output data types |
|
279 | 279 | json = this.validate_output(json); |
|
280 | 280 | |
|
281 | 281 | // Clear the output if clear is queued. |
|
282 | 282 | var needs_height_reset = false; |
|
283 | 283 | if (this.clear_queued) { |
|
284 | 284 | this.clear_output(false); |
|
285 | 285 | needs_height_reset = true; |
|
286 | 286 | } |
|
287 | 287 | |
|
288 | 288 | var record_output = true; |
|
289 | 289 | |
|
290 | 290 | if (json.output_type === 'execute_result') { |
|
291 | 291 | this.append_execute_result(json); |
|
292 | 292 | } else if (json.output_type === 'error') { |
|
293 | 293 | this.append_error(json); |
|
294 | 294 | } else if (json.output_type === 'stream') { |
|
295 | 295 | // append_stream might have merged the output with earlier stream output |
|
296 | 296 | record_output = this.append_stream(json); |
|
297 | 297 | } |
|
298 | 298 | |
|
299 | 299 | // We must release the animation fixed height in a callback since Gecko |
|
300 | 300 | // (FireFox) doesn't render the image immediately as the data is |
|
301 | 301 | // available. |
|
302 | 302 | var that = this; |
|
303 | 303 | var handle_appended = function ($el) { |
|
304 | 304 | // Only reset the height to automatic if the height is currently |
|
305 | 305 | // fixed (done by wait=True flag on clear_output). |
|
306 | 306 | if (needs_height_reset) { |
|
307 | 307 | that.element.height(''); |
|
308 | 308 | } |
|
309 | 309 | that.element.trigger('resize'); |
|
310 | 310 | }; |
|
311 | 311 | if (json.output_type === 'display_data') { |
|
312 | 312 | this.append_display_data(json, handle_appended); |
|
313 | 313 | } else { |
|
314 | 314 | handle_appended(); |
|
315 | 315 | } |
|
316 | 316 | |
|
317 | 317 | if (record_output) { |
|
318 | 318 | this.outputs.push(json); |
|
319 | 319 | } |
|
320 | 320 | }; |
|
321 | 321 | |
|
322 | 322 | |
|
323 | 323 | OutputArea.prototype.create_output_area = function () { |
|
324 | 324 | var oa = $("<div/>").addClass("output_area"); |
|
325 | 325 | if (this.prompt_area) { |
|
326 | 326 | oa.append($('<div/>').addClass('prompt')); |
|
327 | 327 | } |
|
328 | 328 | return oa; |
|
329 | 329 | }; |
|
330 | 330 | |
|
331 | 331 | |
|
332 | 332 | function _get_metadata_key(metadata, key, mime) { |
|
333 | 333 | var mime_md = metadata[mime]; |
|
334 | 334 | // mime-specific higher priority |
|
335 | 335 | if (mime_md && mime_md[key] !== undefined) { |
|
336 | 336 | return mime_md[key]; |
|
337 | 337 | } |
|
338 | 338 | // fallback on global |
|
339 | 339 | return metadata[key]; |
|
340 | 340 | } |
|
341 | 341 | |
|
342 | 342 | OutputArea.prototype.create_output_subarea = function(md, classes, mime) { |
|
343 | 343 | var subarea = $('<div/>').addClass('output_subarea').addClass(classes); |
|
344 | 344 | if (_get_metadata_key(md, 'isolated', mime)) { |
|
345 | 345 | // Create an iframe to isolate the subarea from the rest of the |
|
346 | 346 | // document |
|
347 | 347 | var iframe = $('<iframe/>').addClass('box-flex1'); |
|
348 | 348 | iframe.css({'height':1, 'width':'100%', 'display':'block'}); |
|
349 | 349 | iframe.attr('frameborder', 0); |
|
350 | 350 | iframe.attr('scrolling', 'auto'); |
|
351 | 351 | |
|
352 | 352 | // Once the iframe is loaded, the subarea is dynamically inserted |
|
353 | 353 | iframe.on('load', function() { |
|
354 | 354 | // Workaround needed by Firefox, to properly render svg inside |
|
355 | 355 | // iframes, see http://stackoverflow.com/questions/10177190/ |
|
356 | 356 | // svg-dynamically-added-to-iframe-does-not-render-correctly |
|
357 | 357 | this.contentDocument.open(); |
|
358 | 358 | |
|
359 | 359 | // Insert the subarea into the iframe |
|
360 | 360 | // We must directly write the html. When using Jquery's append |
|
361 | 361 | // method, javascript is evaluated in the parent document and |
|
362 | 362 | // not in the iframe document. At this point, subarea doesn't |
|
363 | 363 | // contain any user content. |
|
364 | 364 | this.contentDocument.write(subarea.html()); |
|
365 | 365 | |
|
366 | 366 | this.contentDocument.close(); |
|
367 | 367 | |
|
368 | 368 | var body = this.contentDocument.body; |
|
369 | 369 | // Adjust the iframe height automatically |
|
370 | 370 | iframe.height(body.scrollHeight + 'px'); |
|
371 | 371 | }); |
|
372 | 372 | |
|
373 | 373 | // Elements should be appended to the inner subarea and not to the |
|
374 | 374 | // iframe |
|
375 | 375 | iframe.append = function(that) { |
|
376 | 376 | subarea.append(that); |
|
377 | 377 | }; |
|
378 | 378 | |
|
379 | 379 | return iframe; |
|
380 | 380 | } else { |
|
381 | 381 | return subarea; |
|
382 | 382 | } |
|
383 | 383 | } |
|
384 | 384 | |
|
385 | 385 | |
|
386 | 386 | OutputArea.prototype._append_javascript_error = function (err, element) { |
|
387 | 387 | // display a message when a javascript error occurs in display output |
|
388 | 388 | var msg = "Javascript error adding output!" |
|
389 | 389 | if ( element === undefined ) return; |
|
390 | 390 | element |
|
391 | 391 | .append($('<div/>').text(msg).addClass('js-error')) |
|
392 | 392 | .append($('<div/>').text(err.toString()).addClass('js-error')) |
|
393 | 393 | .append($('<div/>').text('See your browser Javascript console for more details.').addClass('js-error')); |
|
394 | 394 | }; |
|
395 | 395 | |
|
396 | 396 | OutputArea.prototype._safe_append = function (toinsert) { |
|
397 | 397 | // safely append an item to the document |
|
398 | 398 | // this is an object created by user code, |
|
399 | 399 | // and may have errors, which should not be raised |
|
400 | 400 | // under any circumstances. |
|
401 | 401 | try { |
|
402 | 402 | this.element.append(toinsert); |
|
403 | 403 | } catch(err) { |
|
404 | 404 | console.log(err); |
|
405 | 405 | // Create an actual output_area and output_subarea, which creates |
|
406 | 406 | // the prompt area and the proper indentation. |
|
407 | 407 | var toinsert = this.create_output_area(); |
|
408 | 408 | var subarea = $('<div/>').addClass('output_subarea'); |
|
409 | 409 | toinsert.append(subarea); |
|
410 | 410 | this._append_javascript_error(err, subarea); |
|
411 | 411 | this.element.append(toinsert); |
|
412 | 412 | } |
|
413 | 413 | }; |
|
414 | 414 | |
|
415 | 415 | |
|
416 | 416 | OutputArea.prototype.append_execute_result = function (json) { |
|
417 |
var n = json. |
|
|
417 | var n = json.execution_count || ' '; | |
|
418 | 418 | var toinsert = this.create_output_area(); |
|
419 | 419 | if (this.prompt_area) { |
|
420 | 420 | toinsert.find('div.prompt').addClass('output_prompt').text('Out[' + n + ']:'); |
|
421 | 421 | } |
|
422 | 422 | var inserted = this.append_mime_type(json, toinsert); |
|
423 | 423 | if (inserted) { |
|
424 | 424 | inserted.addClass('output_result'); |
|
425 | 425 | } |
|
426 | 426 | this._safe_append(toinsert); |
|
427 | 427 | // If we just output latex, typeset it. |
|
428 | 428 | if ((json['text/latex'] !== undefined) || |
|
429 | 429 | (json['text/html'] !== undefined) || |
|
430 | 430 | (json['text/markdown'] !== undefined)) { |
|
431 | 431 | this.typeset(); |
|
432 | 432 | } |
|
433 | 433 | }; |
|
434 | 434 | |
|
435 | 435 | |
|
436 | 436 | OutputArea.prototype.append_error = function (json) { |
|
437 | 437 | var tb = json.traceback; |
|
438 | 438 | if (tb !== undefined && tb.length > 0) { |
|
439 | 439 | var s = ''; |
|
440 | 440 | var len = tb.length; |
|
441 | 441 | for (var i=0; i<len; i++) { |
|
442 | 442 | s = s + tb[i] + '\n'; |
|
443 | 443 | } |
|
444 | 444 | s = s + '\n'; |
|
445 | 445 | var toinsert = this.create_output_area(); |
|
446 | 446 | var append_text = OutputArea.append_map['text/plain']; |
|
447 | 447 | if (append_text) { |
|
448 | 448 | append_text.apply(this, [s, {}, toinsert]).addClass('output_error'); |
|
449 | 449 | } |
|
450 | 450 | this._safe_append(toinsert); |
|
451 | 451 | } |
|
452 | 452 | }; |
|
453 | 453 | |
|
454 | 454 | |
|
455 | 455 | OutputArea.prototype.append_stream = function (json) { |
|
456 | 456 | var text = json.data; |
|
457 | 457 | var subclass = "output_"+json.name; |
|
458 | 458 | if (this.outputs.length > 0){ |
|
459 | 459 | // have at least one output to consider |
|
460 | 460 | var last = this.outputs[this.outputs.length-1]; |
|
461 | 461 | if (last.output_type == 'stream' && json.name == last.name){ |
|
462 | 462 | // latest output was in the same stream, |
|
463 | 463 | // so append directly into its pre tag |
|
464 | 464 | // escape ANSI & HTML specials: |
|
465 | 465 | last.data = utils.fixCarriageReturn(last.data + json.data); |
|
466 | 466 | var pre = this.element.find('div.'+subclass).last().find('pre'); |
|
467 | 467 | var html = utils.fixConsole(last.data); |
|
468 | 468 | // The only user content injected with this HTML call is |
|
469 | 469 | // escaped by the fixConsole() method. |
|
470 | 470 | pre.html(html); |
|
471 | 471 | // return false signals that we merged this output with the previous one, |
|
472 | 472 | // and the new output shouldn't be recorded. |
|
473 | 473 | return false; |
|
474 | 474 | } |
|
475 | 475 | } |
|
476 | 476 | |
|
477 | 477 | if (!text.replace("\r", "")) { |
|
478 | 478 | // text is nothing (empty string, \r, etc.) |
|
479 | 479 | // so don't append any elements, which might add undesirable space |
|
480 | 480 | // return true to indicate the output should be recorded. |
|
481 | 481 | return true; |
|
482 | 482 | } |
|
483 | 483 | |
|
484 | 484 | // If we got here, attach a new div |
|
485 | 485 | var toinsert = this.create_output_area(); |
|
486 | 486 | var append_text = OutputArea.append_map['text/plain']; |
|
487 | 487 | if (append_text) { |
|
488 | 488 | append_text.apply(this, [text, {}, toinsert]).addClass("output_stream " + subclass); |
|
489 | 489 | } |
|
490 | 490 | this._safe_append(toinsert); |
|
491 | 491 | return true; |
|
492 | 492 | }; |
|
493 | 493 | |
|
494 | 494 | |
|
495 | 495 | OutputArea.prototype.append_display_data = function (json, handle_inserted) { |
|
496 | 496 | var toinsert = this.create_output_area(); |
|
497 | 497 | if (this.append_mime_type(json, toinsert, handle_inserted)) { |
|
498 | 498 | this._safe_append(toinsert); |
|
499 | 499 | // If we just output latex, typeset it. |
|
500 | 500 | if ((json['text/latex'] !== undefined) || |
|
501 | 501 | (json['text/html'] !== undefined) || |
|
502 | 502 | (json['text/markdown'] !== undefined)) { |
|
503 | 503 | this.typeset(); |
|
504 | 504 | } |
|
505 | 505 | } |
|
506 | 506 | }; |
|
507 | 507 | |
|
508 | 508 | |
|
509 | 509 | OutputArea.safe_outputs = { |
|
510 | 510 | 'text/plain' : true, |
|
511 | 511 | 'text/latex' : true, |
|
512 | 512 | 'image/png' : true, |
|
513 | 513 | 'image/jpeg' : true |
|
514 | 514 | }; |
|
515 | 515 | |
|
516 | 516 | OutputArea.prototype.append_mime_type = function (json, element, handle_inserted) { |
|
517 | 517 | for (var i=0; i < OutputArea.display_order.length; i++) { |
|
518 | 518 | var type = OutputArea.display_order[i]; |
|
519 | 519 | var append = OutputArea.append_map[type]; |
|
520 | 520 | if ((json[type] !== undefined) && append) { |
|
521 | 521 | var value = json[type]; |
|
522 | 522 | if (!this.trusted && !OutputArea.safe_outputs[type]) { |
|
523 | 523 | // not trusted, sanitize HTML |
|
524 | 524 | if (type==='text/html' || type==='text/svg') { |
|
525 | 525 | value = security.sanitize_html(value); |
|
526 | 526 | } else { |
|
527 | 527 | // don't display if we don't know how to sanitize it |
|
528 | 528 | console.log("Ignoring untrusted " + type + " output."); |
|
529 | 529 | continue; |
|
530 | 530 | } |
|
531 | 531 | } |
|
532 | 532 | var md = json.metadata || {}; |
|
533 | 533 | var toinsert = append.apply(this, [value, md, element, handle_inserted]); |
|
534 | 534 | // Since only the png and jpeg mime types call the inserted |
|
535 | 535 | // callback, if the mime type is something other we must call the |
|
536 | 536 | // inserted callback only when the element is actually inserted |
|
537 | 537 | // into the DOM. Use a timeout of 0 to do this. |
|
538 | 538 | if (['image/png', 'image/jpeg'].indexOf(type) < 0 && handle_inserted !== undefined) { |
|
539 | 539 | setTimeout(handle_inserted, 0); |
|
540 | 540 | } |
|
541 | 541 | this.events.trigger('output_appended.OutputArea', [type, value, md, toinsert]); |
|
542 | 542 | return toinsert; |
|
543 | 543 | } |
|
544 | 544 | } |
|
545 | 545 | return null; |
|
546 | 546 | }; |
|
547 | 547 | |
|
548 | 548 | |
|
549 | 549 | var append_html = function (html, md, element) { |
|
550 | 550 | var type = 'text/html'; |
|
551 | 551 | var toinsert = this.create_output_subarea(md, "output_html rendered_html", type); |
|
552 | 552 | this.keyboard_manager.register_events(toinsert); |
|
553 | 553 | toinsert.append(html); |
|
554 | 554 | element.append(toinsert); |
|
555 | 555 | return toinsert; |
|
556 | 556 | }; |
|
557 | 557 | |
|
558 | 558 | |
|
559 | 559 | var append_markdown = function(markdown, md, element) { |
|
560 | 560 | var type = 'text/markdown'; |
|
561 | 561 | var toinsert = this.create_output_subarea(md, "output_markdown", type); |
|
562 | 562 | var text_and_math = mathjaxutils.remove_math(markdown); |
|
563 | 563 | var text = text_and_math[0]; |
|
564 | 564 | var math = text_and_math[1]; |
|
565 | 565 | var html = marked.parser(marked.lexer(text)); |
|
566 | 566 | html = mathjaxutils.replace_math(html, math); |
|
567 | 567 | toinsert.append(html); |
|
568 | 568 | element.append(toinsert); |
|
569 | 569 | return toinsert; |
|
570 | 570 | }; |
|
571 | 571 | |
|
572 | 572 | |
|
573 | 573 | var append_javascript = function (js, md, element) { |
|
574 | 574 | // We just eval the JS code, element appears in the local scope. |
|
575 | 575 | var type = 'application/javascript'; |
|
576 | 576 | var toinsert = this.create_output_subarea(md, "output_javascript", type); |
|
577 | 577 | this.keyboard_manager.register_events(toinsert); |
|
578 | 578 | element.append(toinsert); |
|
579 | 579 | |
|
580 | 580 | // Fix for ipython/issues/5293, make sure `element` is the area which |
|
581 | 581 | // output can be inserted into at the time of JS execution. |
|
582 | 582 | element = toinsert; |
|
583 | 583 | try { |
|
584 | 584 | eval(js); |
|
585 | 585 | } catch(err) { |
|
586 | 586 | console.log(err); |
|
587 | 587 | this._append_javascript_error(err, toinsert); |
|
588 | 588 | } |
|
589 | 589 | return toinsert; |
|
590 | 590 | }; |
|
591 | 591 | |
|
592 | 592 | |
|
593 | 593 | var append_text = function (data, md, element) { |
|
594 | 594 | var type = 'text/plain'; |
|
595 | 595 | var toinsert = this.create_output_subarea(md, "output_text", type); |
|
596 | 596 | // escape ANSI & HTML specials in plaintext: |
|
597 | 597 | data = utils.fixConsole(data); |
|
598 | 598 | data = utils.fixCarriageReturn(data); |
|
599 | 599 | data = utils.autoLinkUrls(data); |
|
600 | 600 | // The only user content injected with this HTML call is |
|
601 | 601 | // escaped by the fixConsole() method. |
|
602 | 602 | toinsert.append($("<pre/>").html(data)); |
|
603 | 603 | element.append(toinsert); |
|
604 | 604 | return toinsert; |
|
605 | 605 | }; |
|
606 | 606 | |
|
607 | 607 | |
|
608 | 608 | var append_svg = function (svg_html, md, element) { |
|
609 | 609 | var type = 'image/svg+xml'; |
|
610 | 610 | var toinsert = this.create_output_subarea(md, "output_svg", type); |
|
611 | 611 | |
|
612 | 612 | // Get the svg element from within the HTML. |
|
613 | 613 | var svg = $('<div />').html(svg_html).find('svg'); |
|
614 | 614 | var svg_area = $('<div />'); |
|
615 | 615 | var width = svg.attr('width'); |
|
616 | 616 | var height = svg.attr('height'); |
|
617 | 617 | svg |
|
618 | 618 | .width('100%') |
|
619 | 619 | .height('100%'); |
|
620 | 620 | svg_area |
|
621 | 621 | .width(width) |
|
622 | 622 | .height(height); |
|
623 | 623 | |
|
624 | 624 | // The jQuery resize handlers don't seem to work on the svg element. |
|
625 | 625 | // When the svg renders completely, measure it's size and set the parent |
|
626 | 626 | // div to that size. Then set the svg to 100% the size of the parent |
|
627 | 627 | // div and make the parent div resizable. |
|
628 | 628 | this._dblclick_to_reset_size(svg_area, true, false); |
|
629 | 629 | |
|
630 | 630 | svg_area.append(svg); |
|
631 | 631 | toinsert.append(svg_area); |
|
632 | 632 | element.append(toinsert); |
|
633 | 633 | |
|
634 | 634 | return toinsert; |
|
635 | 635 | }; |
|
636 | 636 | |
|
637 | 637 | OutputArea.prototype._dblclick_to_reset_size = function (img, immediately, resize_parent) { |
|
638 | 638 | // Add a resize handler to an element |
|
639 | 639 | // |
|
640 | 640 | // img: jQuery element |
|
641 | 641 | // immediately: bool=False |
|
642 | 642 | // Wait for the element to load before creating the handle. |
|
643 | 643 | // resize_parent: bool=True |
|
644 | 644 | // Should the parent of the element be resized when the element is |
|
645 | 645 | // reset (by double click). |
|
646 | 646 | var callback = function (){ |
|
647 | 647 | var h0 = img.height(); |
|
648 | 648 | var w0 = img.width(); |
|
649 | 649 | if (!(h0 && w0)) { |
|
650 | 650 | // zero size, don't make it resizable |
|
651 | 651 | return; |
|
652 | 652 | } |
|
653 | 653 | img.resizable({ |
|
654 | 654 | aspectRatio: true, |
|
655 | 655 | autoHide: true |
|
656 | 656 | }); |
|
657 | 657 | img.dblclick(function () { |
|
658 | 658 | // resize wrapper & image together for some reason: |
|
659 | 659 | img.height(h0); |
|
660 | 660 | img.width(w0); |
|
661 | 661 | if (resize_parent === undefined || resize_parent) { |
|
662 | 662 | img.parent().height(h0); |
|
663 | 663 | img.parent().width(w0); |
|
664 | 664 | } |
|
665 | 665 | }); |
|
666 | 666 | }; |
|
667 | 667 | |
|
668 | 668 | if (immediately) { |
|
669 | 669 | callback(); |
|
670 | 670 | } else { |
|
671 | 671 | img.on("load", callback); |
|
672 | 672 | } |
|
673 | 673 | }; |
|
674 | 674 | |
|
675 | 675 | var set_width_height = function (img, md, mime) { |
|
676 | 676 | // set width and height of an img element from metadata |
|
677 | 677 | var height = _get_metadata_key(md, 'height', mime); |
|
678 | 678 | if (height !== undefined) img.attr('height', height); |
|
679 | 679 | var width = _get_metadata_key(md, 'width', mime); |
|
680 | 680 | if (width !== undefined) img.attr('width', width); |
|
681 | 681 | }; |
|
682 | 682 | |
|
683 | 683 | var append_png = function (png, md, element, handle_inserted) { |
|
684 | 684 | var type = 'image/png'; |
|
685 | 685 | var toinsert = this.create_output_subarea(md, "output_png", type); |
|
686 | 686 | var img = $("<img/>"); |
|
687 | 687 | if (handle_inserted !== undefined) { |
|
688 | 688 | img.on('load', function(){ |
|
689 | 689 | handle_inserted(img); |
|
690 | 690 | }); |
|
691 | 691 | } |
|
692 | 692 | img[0].src = 'data:image/png;base64,'+ png; |
|
693 | 693 | set_width_height(img, md, 'image/png'); |
|
694 | 694 | this._dblclick_to_reset_size(img); |
|
695 | 695 | toinsert.append(img); |
|
696 | 696 | element.append(toinsert); |
|
697 | 697 | return toinsert; |
|
698 | 698 | }; |
|
699 | 699 | |
|
700 | 700 | |
|
701 | 701 | var append_jpeg = function (jpeg, md, element, handle_inserted) { |
|
702 | 702 | var type = 'image/jpeg'; |
|
703 | 703 | var toinsert = this.create_output_subarea(md, "output_jpeg", type); |
|
704 | 704 | var img = $("<img/>"); |
|
705 | 705 | if (handle_inserted !== undefined) { |
|
706 | 706 | img.on('load', function(){ |
|
707 | 707 | handle_inserted(img); |
|
708 | 708 | }); |
|
709 | 709 | } |
|
710 | 710 | img[0].src = 'data:image/jpeg;base64,'+ jpeg; |
|
711 | 711 | set_width_height(img, md, 'image/jpeg'); |
|
712 | 712 | this._dblclick_to_reset_size(img); |
|
713 | 713 | toinsert.append(img); |
|
714 | 714 | element.append(toinsert); |
|
715 | 715 | return toinsert; |
|
716 | 716 | }; |
|
717 | 717 | |
|
718 | 718 | |
|
719 | 719 | var append_pdf = function (pdf, md, element) { |
|
720 | 720 | var type = 'application/pdf'; |
|
721 | 721 | var toinsert = this.create_output_subarea(md, "output_pdf", type); |
|
722 | 722 | var a = $('<a/>').attr('href', 'data:application/pdf;base64,'+pdf); |
|
723 | 723 | a.attr('target', '_blank'); |
|
724 | 724 | a.text('View PDF') |
|
725 | 725 | toinsert.append(a); |
|
726 | 726 | element.append(toinsert); |
|
727 | 727 | return toinsert; |
|
728 | 728 | } |
|
729 | 729 | |
|
730 | 730 | var append_latex = function (latex, md, element) { |
|
731 | 731 | // This method cannot do the typesetting because the latex first has to |
|
732 | 732 | // be on the page. |
|
733 | 733 | var type = 'text/latex'; |
|
734 | 734 | var toinsert = this.create_output_subarea(md, "output_latex", type); |
|
735 | 735 | toinsert.append(latex); |
|
736 | 736 | element.append(toinsert); |
|
737 | 737 | return toinsert; |
|
738 | 738 | }; |
|
739 | 739 | |
|
740 | 740 | |
|
741 | 741 | OutputArea.prototype.append_raw_input = function (msg) { |
|
742 | 742 | var that = this; |
|
743 | 743 | this.expand(); |
|
744 | 744 | var content = msg.content; |
|
745 | 745 | var area = this.create_output_area(); |
|
746 | 746 | |
|
747 | 747 | // disable any other raw_inputs, if they are left around |
|
748 | 748 | $("div.output_subarea.raw_input_container").remove(); |
|
749 | 749 | |
|
750 | 750 | var input_type = content.password ? 'password' : 'text'; |
|
751 | 751 | |
|
752 | 752 | area.append( |
|
753 | 753 | $("<div/>") |
|
754 | 754 | .addClass("box-flex1 output_subarea raw_input_container") |
|
755 | 755 | .append( |
|
756 | 756 | $("<span/>") |
|
757 | 757 | .addClass("raw_input_prompt") |
|
758 | 758 | .text(content.prompt) |
|
759 | 759 | ) |
|
760 | 760 | .append( |
|
761 | 761 | $("<input/>") |
|
762 | 762 | .addClass("raw_input") |
|
763 | 763 | .attr('type', input_type) |
|
764 | 764 | .attr("size", 47) |
|
765 | 765 | .keydown(function (event, ui) { |
|
766 | 766 | // make sure we submit on enter, |
|
767 | 767 | // and don't re-execute the *cell* on shift-enter |
|
768 | 768 | if (event.which === keyboard.keycodes.enter) { |
|
769 | 769 | that._submit_raw_input(); |
|
770 | 770 | return false; |
|
771 | 771 | } |
|
772 | 772 | }) |
|
773 | 773 | ) |
|
774 | 774 | ); |
|
775 | 775 | |
|
776 | 776 | this.element.append(area); |
|
777 | 777 | var raw_input = area.find('input.raw_input'); |
|
778 | 778 | // Register events that enable/disable the keyboard manager while raw |
|
779 | 779 | // input is focused. |
|
780 | 780 | this.keyboard_manager.register_events(raw_input); |
|
781 | 781 | // Note, the following line used to read raw_input.focus().focus(). |
|
782 | 782 | // This seemed to be needed otherwise only the cell would be focused. |
|
783 | 783 | // But with the modal UI, this seems to work fine with one call to focus(). |
|
784 | 784 | raw_input.focus(); |
|
785 | 785 | } |
|
786 | 786 | |
|
787 | 787 | OutputArea.prototype._submit_raw_input = function (evt) { |
|
788 | 788 | var container = this.element.find("div.raw_input_container"); |
|
789 | 789 | var theprompt = container.find("span.raw_input_prompt"); |
|
790 | 790 | var theinput = container.find("input.raw_input"); |
|
791 | 791 | var value = theinput.val(); |
|
792 | 792 | var echo = value; |
|
793 | 793 | // don't echo if it's a password |
|
794 | 794 | if (theinput.attr('type') == 'password') { |
|
795 | 795 | echo = '········'; |
|
796 | 796 | } |
|
797 | 797 | var content = { |
|
798 | 798 | output_type : 'stream', |
|
799 | 799 | stream : 'stdout', |
|
800 | 800 | text : theprompt.text() + echo + '\n' |
|
801 | 801 | } |
|
802 | 802 | // remove form container |
|
803 | 803 | container.parent().remove(); |
|
804 | 804 | // replace with plaintext version in stdout |
|
805 | 805 | this.append_output(content, false); |
|
806 | 806 | this.events.trigger('send_input_reply.Kernel', value); |
|
807 | 807 | } |
|
808 | 808 | |
|
809 | 809 | |
|
810 | 810 | OutputArea.prototype.handle_clear_output = function (msg) { |
|
811 | 811 | // msg spec v4 had stdout, stderr, display keys |
|
812 | 812 | // v4.1 replaced these with just wait |
|
813 | 813 | // The default behavior is the same (stdout=stderr=display=True, wait=False), |
|
814 | 814 | // so v4 messages will still be properly handled, |
|
815 | 815 | // except for the rarely used clearing less than all output. |
|
816 | 816 | this.clear_output(msg.content.wait || false); |
|
817 | 817 | }; |
|
818 | 818 | |
|
819 | 819 | |
|
820 | 820 | OutputArea.prototype.clear_output = function(wait) { |
|
821 | 821 | if (wait) { |
|
822 | 822 | |
|
823 | 823 | // If a clear is queued, clear before adding another to the queue. |
|
824 | 824 | if (this.clear_queued) { |
|
825 | 825 | this.clear_output(false); |
|
826 | 826 | }; |
|
827 | 827 | |
|
828 | 828 | this.clear_queued = true; |
|
829 | 829 | } else { |
|
830 | 830 | |
|
831 | 831 | // Fix the output div's height if the clear_output is waiting for |
|
832 | 832 | // new output (it is being used in an animation). |
|
833 | 833 | if (this.clear_queued) { |
|
834 | 834 | var height = this.element.height(); |
|
835 | 835 | this.element.height(height); |
|
836 | 836 | this.clear_queued = false; |
|
837 | 837 | } |
|
838 | 838 | |
|
839 | 839 | // Clear all |
|
840 | 840 | // Remove load event handlers from img tags because we don't want |
|
841 | 841 | // them to fire if the image is never added to the page. |
|
842 | 842 | this.element.find('img').off('load'); |
|
843 | 843 | this.element.html(""); |
|
844 | 844 | this.outputs = []; |
|
845 | 845 | this.trusted = true; |
|
846 | 846 | this.unscroll_area(); |
|
847 | 847 | return; |
|
848 | 848 | }; |
|
849 | 849 | }; |
|
850 | 850 | |
|
851 | 851 | |
|
852 | 852 | // JSON serialization |
|
853 | 853 | |
|
854 | 854 | OutputArea.prototype.fromJSON = function (outputs, metadata) { |
|
855 | 855 | var len = outputs.length; |
|
856 | 856 | metadata = metadata || {}; |
|
857 | 857 | |
|
858 | 858 | for (var i=0; i<len; i++) { |
|
859 | 859 | this.append_output(outputs[i]); |
|
860 | 860 | } |
|
861 | 861 | |
|
862 | 862 | if (metadata.collapsed !== undefined) { |
|
863 | 863 | this.collapsed = metadata.collapsed; |
|
864 | 864 | if (metadata.collapsed) { |
|
865 | 865 | this.collapse_output(); |
|
866 | 866 | } |
|
867 | 867 | } |
|
868 | 868 | if (metadata.autoscroll !== undefined) { |
|
869 | 869 | this.collapsed = metadata.collapsed; |
|
870 | 870 | if (metadata.collapsed) { |
|
871 | 871 | this.collapse_output(); |
|
872 | 872 | } else { |
|
873 | 873 | this.expand_output(); |
|
874 | 874 | } |
|
875 | 875 | } |
|
876 | 876 | }; |
|
877 | 877 | |
|
878 | 878 | |
|
879 | 879 | OutputArea.prototype.toJSON = function () { |
|
880 | 880 | return this.outputs; |
|
881 | 881 | }; |
|
882 | 882 | |
|
883 | 883 | /** |
|
884 | 884 | * Class properties |
|
885 | 885 | **/ |
|
886 | 886 | |
|
887 | 887 | /** |
|
888 | 888 | * Threshold to trigger autoscroll when the OutputArea is resized, |
|
889 | 889 | * typically when new outputs are added. |
|
890 | 890 | * |
|
891 | 891 | * Behavior is undefined if autoscroll is lower than minimum_scroll_threshold, |
|
892 | 892 | * unless it is < 0, in which case autoscroll will never be triggered |
|
893 | 893 | * |
|
894 | 894 | * @property auto_scroll_threshold |
|
895 | 895 | * @type Number |
|
896 | 896 | * @default 100 |
|
897 | 897 | * |
|
898 | 898 | **/ |
|
899 | 899 | OutputArea.auto_scroll_threshold = 100; |
|
900 | 900 | |
|
901 | 901 | /** |
|
902 | 902 | * Lower limit (in lines) for OutputArea to be made scrollable. OutputAreas |
|
903 | 903 | * shorter than this are never scrolled. |
|
904 | 904 | * |
|
905 | 905 | * @property minimum_scroll_threshold |
|
906 | 906 | * @type Number |
|
907 | 907 | * @default 20 |
|
908 | 908 | * |
|
909 | 909 | **/ |
|
910 | 910 | OutputArea.minimum_scroll_threshold = 20; |
|
911 | 911 | |
|
912 | 912 | |
|
913 | 913 | OutputArea.display_order = [ |
|
914 | 914 | 'application/javascript', |
|
915 | 915 | 'text/html', |
|
916 | 916 | 'text/markdown', |
|
917 | 917 | 'text/latex', |
|
918 | 918 | 'image/svg+xml', |
|
919 | 919 | 'image/png', |
|
920 | 920 | 'image/jpeg', |
|
921 | 921 | 'application/pdf', |
|
922 | 922 | 'text/plain' |
|
923 | 923 | ]; |
|
924 | 924 | |
|
925 | 925 | OutputArea.append_map = { |
|
926 | 926 | "text/plain" : append_text, |
|
927 | 927 | "text/html" : append_html, |
|
928 | 928 | "text/markdown": append_markdown, |
|
929 | 929 | "image/svg+xml" : append_svg, |
|
930 | 930 | "image/png" : append_png, |
|
931 | 931 | "image/jpeg" : append_jpeg, |
|
932 | 932 | "text/latex" : append_latex, |
|
933 | 933 | "application/javascript" : append_javascript, |
|
934 | 934 | "application/pdf" : append_pdf |
|
935 | 935 | }; |
|
936 | 936 | |
|
937 | 937 | // For backwards compatability. |
|
938 | 938 | IPython.OutputArea = OutputArea; |
|
939 | 939 | |
|
940 | 940 | return {'OutputArea': OutputArea}; |
|
941 | 941 | }); |
@@ -1,23 +1,23 b'' | |||
|
1 | 1 | // |
|
2 | 2 | // Test robustness about JS injection in different place |
|
3 | 3 | // |
|
4 | 4 | // This assume malicious document arrive to the frontend. |
|
5 | 5 | // |
|
6 | 6 | |
|
7 | 7 | casper.notebook_test(function () { |
|
8 | 8 | var messages = []; |
|
9 | 9 | this.on('remote.alert', function (msg) { |
|
10 | 10 | messages.push(msg); |
|
11 | 11 | }); |
|
12 | 12 | |
|
13 | 13 | this.evaluate(function () { |
|
14 | 14 | var cell = IPython.notebook.get_cell(0); |
|
15 | 15 | var json = cell.toJSON(); |
|
16 |
json. |
|
|
16 | json.execution_count = "<script> alert('hello from input prompts !')</script>"; | |
|
17 | 17 | cell.fromJSON(json); |
|
18 | 18 | }); |
|
19 | 19 | |
|
20 | 20 | this.then(function () { |
|
21 | 21 | this.test.assert(messages.length == 0, "Captured log message from script tag injection !"); |
|
22 | 22 | }); |
|
23 | 23 | }); |
@@ -1,168 +1,168 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "cells": [ |
|
3 | 3 | { |
|
4 | 4 | "cell_type": "heading", |
|
5 | 5 | "level": 1, |
|
6 | 6 | "metadata": {}, |
|
7 | 7 | "source": [ |
|
8 | 8 | "NumPy and Matplotlib examples" |
|
9 | 9 | ] |
|
10 | 10 | }, |
|
11 | 11 | { |
|
12 | 12 | "cell_type": "markdown", |
|
13 | 13 | "metadata": {}, |
|
14 | 14 | "source": [ |
|
15 | 15 | "First import NumPy and Matplotlib:" |
|
16 | 16 | ] |
|
17 | 17 | }, |
|
18 | 18 | { |
|
19 | 19 | "cell_type": "code", |
|
20 | "execution_count": 1, | |
|
20 | 21 | "metadata": { |
|
21 | 22 | "collapsed": false |
|
22 | 23 | }, |
|
23 | 24 | "outputs": [ |
|
24 | 25 | { |
|
25 | 26 | "metadata": {}, |
|
26 | 27 | "name": "stdout", |
|
27 | 28 | "output_type": "stream", |
|
28 | 29 | "text": "\nWelcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\nFor more information, type 'help(pylab)'.\n" |
|
29 | 30 | } |
|
30 | 31 | ], |
|
31 | "prompt_number": 1, | |
|
32 | 32 | "source": [ |
|
33 | 33 | "%pylab inline" |
|
34 | 34 | ] |
|
35 | 35 | }, |
|
36 | 36 | { |
|
37 | 37 | "cell_type": "code", |
|
38 | "execution_count": 2, | |
|
38 | 39 | "metadata": { |
|
39 | 40 | "collapsed": false |
|
40 | 41 | }, |
|
41 | 42 | "outputs": [], |
|
42 | "prompt_number": 2, | |
|
43 | 43 | "source": [ |
|
44 | 44 | "import numpy as np" |
|
45 | 45 | ] |
|
46 | 46 | }, |
|
47 | 47 | { |
|
48 | 48 | "cell_type": "markdown", |
|
49 | 49 | "metadata": {}, |
|
50 | 50 | "source": [ |
|
51 | 51 | "Now we show some very basic examples of how they can be used." |
|
52 | 52 | ] |
|
53 | 53 | }, |
|
54 | 54 | { |
|
55 | 55 | "cell_type": "code", |
|
56 | "execution_count": 6, | |
|
56 | 57 | "metadata": { |
|
57 | 58 | "collapsed": false |
|
58 | 59 | }, |
|
59 | 60 | "outputs": [], |
|
60 | "prompt_number": 6, | |
|
61 | 61 | "source": [ |
|
62 | 62 | "a = np.random.uniform(size=(100,100))" |
|
63 | 63 | ] |
|
64 | 64 | }, |
|
65 | 65 | { |
|
66 | 66 | "cell_type": "code", |
|
67 | "execution_count": 7, | |
|
67 | 68 | "metadata": { |
|
68 | 69 | "collapsed": false |
|
69 | 70 | }, |
|
70 | 71 | "outputs": [ |
|
71 | 72 | { |
|
73 | "execution_count": 7, | |
|
72 | 74 | "metadata": {}, |
|
73 | 75 | "output_type": "execute_result", |
|
74 | "prompt_number": 7, | |
|
75 | 76 | "text/plain": [ |
|
76 | 77 | "(100, 100)" |
|
77 | 78 | ] |
|
78 | 79 | } |
|
79 | 80 | ], |
|
80 | "prompt_number": 7, | |
|
81 | 81 | "source": [ |
|
82 | 82 | "a.shape" |
|
83 | 83 | ] |
|
84 | 84 | }, |
|
85 | 85 | { |
|
86 | 86 | "cell_type": "code", |
|
87 | "execution_count": 8, | |
|
87 | 88 | "metadata": { |
|
88 | 89 | "collapsed": false |
|
89 | 90 | }, |
|
90 | 91 | "outputs": [], |
|
91 | "prompt_number": 8, | |
|
92 | 92 | "source": [ |
|
93 | 93 | "evs = np.linalg.eigvals(a)" |
|
94 | 94 | ] |
|
95 | 95 | }, |
|
96 | 96 | { |
|
97 | 97 | "cell_type": "code", |
|
98 | "execution_count": 10, | |
|
98 | 99 | "metadata": { |
|
99 | 100 | "collapsed": false |
|
100 | 101 | }, |
|
101 | 102 | "outputs": [ |
|
102 | 103 | { |
|
104 | "execution_count": 10, | |
|
103 | 105 | "metadata": {}, |
|
104 | 106 | "output_type": "execute_result", |
|
105 | "prompt_number": 10, | |
|
106 | 107 | "text/plain": [ |
|
107 | 108 | "(100,)" |
|
108 | 109 | ] |
|
109 | 110 | } |
|
110 | 111 | ], |
|
111 | "prompt_number": 10, | |
|
112 | 112 | "source": [ |
|
113 | 113 | "evs.shape" |
|
114 | 114 | ] |
|
115 | 115 | }, |
|
116 | 116 | { |
|
117 | 117 | "cell_type": "markdown", |
|
118 | 118 | "metadata": {}, |
|
119 | 119 | "source": [ |
|
120 | 120 | "Here is a cell that has both text and PNG output:" |
|
121 | 121 | ] |
|
122 | 122 | }, |
|
123 | 123 | { |
|
124 | 124 | "cell_type": "code", |
|
125 | "execution_count": 14, | |
|
125 | 126 | "metadata": { |
|
126 | 127 | "collapsed": false |
|
127 | 128 | }, |
|
128 | 129 | "outputs": [ |
|
129 | 130 | { |
|
131 | "execution_count": 14, | |
|
130 | 132 | "metadata": {}, |
|
131 | 133 | "output_type": "execute_result", |
|
132 | "prompt_number": 14, | |
|
133 | 134 | "text/plain": [ |
|
134 | 135 | "(array([95, 4, 0, 0, 0, 0, 0, 0, 0, 1]),\n", |
|
135 | 136 | " array([ -2.93566063, 2.35937011, 7.65440086, 12.9494316 ,\n", |
|
136 | 137 | " 18.24446235, 23.53949309, 28.83452384, 34.12955458,\n", |
|
137 | 138 | " 39.42458533, 44.71961607, 50.01464682]),\n", |
|
138 | 139 | " <a list of 10 Patch objects>)" |
|
139 | 140 | ] |
|
140 | 141 | }, |
|
141 | 142 | { |
|
142 | 143 | "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXgAAAD9CAYAAAC2l2x5AAAABH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90V9dMsl18qPHi5eoJpNJLVmyRO3t7Zo0aZKn9iEvL0+ffPKJjh07psWL\nF2vu3LmemH/Hjh267LLL5Pf7h7y93wuz/+q9997TzJkz1dPTo4aGBlVXV3tm/sHBQfX29mrTpk2q\nq6vTypUr9dJLL7maP2tH8Hv37tWnn376p9vfxV2SAoGADh8+nL5/5MgRVVVVZWukrKmqqtKRI0fS\n97u7u1VTUzOGE7lTVVWlnp4eSVJPT8+4/F3/3tmzZ3X77bdr+fLlCoVCkry3D9L5P/gtXrxYsVjM\nE/O///772r59u6666iotXbpUb731lpYvX+6J2X81c+ZMSVJpaaluueUWvfbaa56Z/5prrlFJSYka\nGho0ceJELV26VLt373Y1f85P0fz+Vai6ulp79uxRf3+/otGo8vLyNHny5FyP9K9Mub4/EAgoEoko\nlUopEomM6xcpx3HU3Nysa6+9VmvWrElv98o+fPPNN/ruu+8kSd9++63eeOMNhUIhT8y/YcMGHT9+\nXF988YW2bdum2tpabd261ROzS9KZM2fSf8v7+uuvtWfPHtXX13tmfkkqLi5WLBbTuXPntHPnTtXV\n1bmb38mBV155xSkqKnImTJjgFBYWOvX19envPfroo87VV1/tlJaWOvv378/FOK5Eo1HH5/M5V199\ntbN58+axHudf3Xnnnc7MmTOdiy66yCkqKnIikYhz+vRp55ZbbnEuv/xyJxQKOclkcqzH/Fvvvvuu\nY1mWU1FR4VRWVjqVlZXOrl27PLMPXV1djt/vd+bMmeMsWrTIefbZZx3HcTwz/6+i0ajT0NDgOI53\nZv/888+diooKp6KiwqmtrXW2bNniOI535nccx/nss8+cQCDgVFRUOA8++KAzMDDgav6c/5usAIDc\n4F90AgBDEXgAMBSBBwBDEXgAMBSBBwBDEXgAMNT/AQKseNIf7mhWAAAAAElFTkSuQmCC\n", |
|
143 | 144 | "metadata": {}, |
|
144 | 145 | "output_type": "display_data", |
|
145 | 146 | "text/plain": [ |
|
146 | 147 | "<matplotlib.figure.Figure at 0x108c8f1d0>" |
|
147 | 148 | ] |
|
148 | 149 | } |
|
149 | 150 | ], |
|
150 | "prompt_number": 14, | |
|
151 | 151 | "source": [ |
|
152 | 152 | "hist(evs.real)" |
|
153 | 153 | ] |
|
154 | 154 | }, |
|
155 | 155 | { |
|
156 | 156 | "cell_type": "code", |
|
157 | "execution_count": null, | |
|
157 | 158 | "metadata": { |
|
158 | 159 | "collapsed": false |
|
159 | 160 | }, |
|
160 | 161 | "outputs": [], |
|
161 | "prompt_number": null, | |
|
162 | 162 | "source": [] |
|
163 | 163 | } |
|
164 | 164 | ], |
|
165 | 165 | "metadata": {}, |
|
166 | 166 | "nbformat": 4, |
|
167 | 167 | "nbformat_minor": 0 |
|
168 | 168 | } No newline at end of file |
@@ -1,28 +1,20 b'' | |||
|
1 | 1 | """Module containing a preprocessor that removes the outputs from code cells""" |
|
2 | 2 | |
|
3 | 3 | # Copyright (c) IPython Development Team. |
|
4 | 4 | # Distributed under the terms of the Modified BSD License. |
|
5 | 5 | |
|
6 | #----------------------------------------------------------------------------- | |
|
7 | # Imports | |
|
8 | #----------------------------------------------------------------------------- | |
|
9 | ||
|
10 | 6 | from .base import Preprocessor |
|
11 | 7 | |
|
12 | ||
|
13 | #----------------------------------------------------------------------------- | |
|
14 | # Classes | |
|
15 | #----------------------------------------------------------------------------- | |
|
16 | 8 | class ClearOutputPreprocessor(Preprocessor): |
|
17 | 9 | """ |
|
18 | 10 | Removes the output from all code cells in a notebook. |
|
19 | 11 | """ |
|
20 | 12 | |
|
21 | 13 | def preprocess_cell(self, cell, resources, cell_index): |
|
22 | 14 | """ |
|
23 | 15 | Apply a transformation on each cell. See base.py for details. |
|
24 | 16 | """ |
|
25 | 17 | if cell.cell_type == 'code': |
|
26 | 18 | cell.outputs = [] |
|
27 |
cell. |
|
|
19 | cell.execution_count = None | |
|
28 | 20 | return cell, resources |
@@ -1,114 +1,111 b'' | |||
|
1 | 1 | """Module containing a preprocessor that removes the outputs from code cells""" |
|
2 | 2 | |
|
3 | 3 | # Copyright (c) IPython Development Team. |
|
4 | 4 | # Distributed under the terms of the Modified BSD License. |
|
5 | 5 | |
|
6 | 6 | import os |
|
7 | 7 | import sys |
|
8 | 8 | |
|
9 | 9 | try: |
|
10 | 10 | from queue import Empty # Py 3 |
|
11 | 11 | except ImportError: |
|
12 | 12 | from Queue import Empty # Py 2 |
|
13 | 13 | |
|
14 | 14 | from IPython.utils.traitlets import List, Unicode |
|
15 | 15 | |
|
16 | 16 | from IPython.nbformat.current import reads, writes, output_from_msg |
|
17 | 17 | from .base import Preprocessor |
|
18 | 18 | from IPython.utils.traitlets import Integer |
|
19 | 19 | |
|
20 | 20 | class ExecutePreprocessor(Preprocessor): |
|
21 | 21 | """ |
|
22 | 22 | Executes all the cells in a notebook |
|
23 | 23 | """ |
|
24 | 24 | |
|
25 | 25 | timeout = Integer(30, config=True, |
|
26 | 26 | help="The time to wait (in seconds) for output from executions." |
|
27 | 27 | ) |
|
28 | 28 | |
|
29 | 29 | extra_arguments = List(Unicode) |
|
30 | 30 | |
|
31 | 31 | def preprocess(self, nb, resources): |
|
32 | 32 | from IPython.kernel import run_kernel |
|
33 | 33 | kernel_name = nb.metadata.get('kernelspec', {}).get('name', 'python') |
|
34 | 34 | self.log.info("Executing notebook with kernel: %s" % kernel_name) |
|
35 | 35 | with run_kernel(kernel_name=kernel_name, |
|
36 | 36 | extra_arguments=self.extra_arguments, |
|
37 | 37 | stderr=open(os.devnull, 'w')) as kc: |
|
38 | 38 | self.kc = kc |
|
39 | 39 | nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources) |
|
40 | 40 | return nb, resources |
|
41 | 41 | |
|
42 | 42 | def preprocess_cell(self, cell, resources, cell_index): |
|
43 | 43 | """ |
|
44 | 44 | Apply a transformation on each code cell. See base.py for details. |
|
45 | 45 | """ |
|
46 | 46 | if cell.cell_type != 'code': |
|
47 | 47 | return cell, resources |
|
48 | 48 | try: |
|
49 | 49 | outputs = self.run_cell(self.kc.shell_channel, self.kc.iopub_channel, cell) |
|
50 | 50 | except Exception as e: |
|
51 | 51 | self.log.error("failed to run cell: " + repr(e)) |
|
52 | 52 | self.log.error(str(cell.source)) |
|
53 | 53 | raise |
|
54 | 54 | cell.outputs = outputs |
|
55 | 55 | return cell, resources |
|
56 | 56 | |
|
57 | 57 | def run_cell(self, shell, iopub, cell): |
|
58 | 58 | msg_id = shell.execute(cell.source) |
|
59 | 59 | self.log.debug("Executing cell:\n%s", cell.source) |
|
60 | 60 | # wait for finish, with timeout |
|
61 | 61 | while True: |
|
62 | 62 | try: |
|
63 | 63 | msg = shell.get_msg(timeout=self.timeout) |
|
64 | 64 | except Empty: |
|
65 | 65 | self.log.error("Timeout waiting for execute reply") |
|
66 | 66 | raise |
|
67 | 67 | if msg['parent_header'].get('msg_id') == msg_id: |
|
68 | 68 | break |
|
69 | 69 | else: |
|
70 | 70 | # not our reply |
|
71 | 71 | continue |
|
72 | 72 | |
|
73 | 73 | outs = [] |
|
74 | 74 | |
|
75 | 75 | while True: |
|
76 | 76 | try: |
|
77 | 77 | msg = iopub.get_msg(timeout=self.timeout) |
|
78 | 78 | except Empty: |
|
79 | 79 | self.log.warn("Timeout waiting for IOPub output") |
|
80 | 80 | break |
|
81 | 81 | if msg['parent_header'].get('msg_id') != msg_id: |
|
82 | 82 | # not an output from our execution |
|
83 | 83 | continue |
|
84 | 84 | |
|
85 | 85 | msg_type = msg['msg_type'] |
|
86 | 86 | self.log.debug("output: %s", msg_type) |
|
87 | 87 | content = msg['content'] |
|
88 | 88 | |
|
89 | 89 | # set the prompt number for the input and the output |
|
90 | 90 | if 'execution_count' in content: |
|
91 |
cell[' |
|
|
92 | out.prompt_number = content['execution_count'] | |
|
91 | cell['execution_count'] = content['execution_count'] | |
|
93 | 92 | |
|
94 | 93 | if msg_type == 'status': |
|
95 | 94 | if content['execution_state'] == 'idle': |
|
96 | 95 | break |
|
97 | 96 | else: |
|
98 | 97 | continue |
|
99 | 98 | elif msg_type == 'execute_input': |
|
100 | 99 | continue |
|
101 | 100 | elif msg_type == 'clear_output': |
|
102 | 101 | outs = [] |
|
103 | 102 | continue |
|
104 | elif msg_type == 'execute_result': | |
|
105 | cell['prompt_number'] = content['execution_count'] | |
|
106 | 103 | |
|
107 | 104 | try: |
|
108 | 105 | out = output_from_msg(msg) |
|
109 | 106 | except ValueError: |
|
110 | 107 | self.log.error("unhandled iopub msg: " + msg_type) |
|
111 | 108 | else: |
|
112 | 109 | outs.append(out) |
|
113 | 110 | |
|
114 | 111 | return outs |
@@ -1,41 +1,41 b'' | |||
|
1 | 1 | """utility functions for preprocessor tests""" |
|
2 | 2 | |
|
3 | 3 | # Copyright (c) IPython Development Team. |
|
4 | 4 | # Distributed under the terms of the Modified BSD License. |
|
5 | 5 | |
|
6 | 6 | from IPython.nbformat import current as nbformat |
|
7 | 7 | |
|
8 | 8 | from ...tests.base import TestsBase |
|
9 | 9 | from ...exporters.exporter import ResourcesDict |
|
10 | 10 | |
|
11 | 11 | |
|
12 | 12 | class PreprocessorTestsBase(TestsBase): |
|
13 | 13 | """Contains test functions preprocessor tests""" |
|
14 | 14 | |
|
15 | 15 | |
|
16 | 16 | def build_notebook(self): |
|
17 | 17 | """Build a notebook in memory for use with preprocessor tests""" |
|
18 | 18 | |
|
19 | 19 | outputs = [nbformat.new_output(output_type="stream", name="stdout", text="a"), |
|
20 | 20 | nbformat.new_output(output_type="display_data", mime_bundle={'text/plain': 'b'}), |
|
21 | 21 | nbformat.new_output(output_type="stream", name="stdout", text="c"), |
|
22 | 22 | nbformat.new_output(output_type="stream", name="stdout", text="d"), |
|
23 | 23 | nbformat.new_output(output_type="stream", name="stderr", text="e"), |
|
24 | 24 | nbformat.new_output(output_type="stream", name="stderr", text="f"), |
|
25 | 25 | nbformat.new_output(output_type="display_data", mime_bundle={'image/png': 'Zw=='})] # g |
|
26 | 26 | out = nbformat.new_output(output_type="display_data") |
|
27 | 27 | out['application/pdf'] = 'aA==' |
|
28 | 28 | outputs.append(out) |
|
29 | 29 | |
|
30 |
cells=[nbformat.new_code_cell(source="$ e $", |
|
|
30 | cells=[nbformat.new_code_cell(source="$ e $", execution_count=1, outputs=outputs), | |
|
31 | 31 | nbformat.new_markdown_cell(source="$ e $")] |
|
32 | 32 | |
|
33 | 33 | return nbformat.new_notebook(cells=cells) |
|
34 | 34 | |
|
35 | 35 | |
|
36 | 36 | def build_resources(self): |
|
37 | 37 | """Build an empty resources dictionary.""" |
|
38 | 38 | |
|
39 | 39 | res = ResourcesDict() |
|
40 | 40 | res['metadata'] = ResourcesDict() |
|
41 | 41 | return res |
@@ -1,38 +1,38 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "cells": [ |
|
3 | 3 | { |
|
4 | 4 | "cell_type": "code", |
|
5 | "execution_count": 1, | |
|
5 | 6 | "metadata": { |
|
6 | 7 | "collapsed": false |
|
7 | 8 | }, |
|
8 | 9 | "outputs": [], |
|
9 | "prompt_number": 1, | |
|
10 | 10 | "source": [ |
|
11 | 11 | "from IPython.display import clear_output" |
|
12 | 12 | ] |
|
13 | 13 | }, |
|
14 | 14 | { |
|
15 | 15 | "cell_type": "code", |
|
16 | "execution_count": 2, | |
|
16 | 17 | "metadata": { |
|
17 | 18 | "collapsed": false |
|
18 | 19 | }, |
|
19 | 20 | "outputs": [ |
|
20 | 21 | { |
|
21 | 22 | "metadata": {}, |
|
22 | 23 | "name": "stdout", |
|
23 | 24 | "output_type": "stream", |
|
24 | 25 | "text": "9\n" |
|
25 | 26 | } |
|
26 | 27 | ], |
|
27 | "prompt_number": 2, | |
|
28 | 28 | "source": [ |
|
29 | 29 | "for i in range(10):\n", |
|
30 | 30 | " clear_output()\n", |
|
31 | 31 | " print(i)" |
|
32 | 32 | ] |
|
33 | 33 | } |
|
34 | 34 | ], |
|
35 | 35 | "metadata": {}, |
|
36 | 36 | "nbformat": 4, |
|
37 | 37 | "nbformat_minor": 0 |
|
38 | 38 | } No newline at end of file |
@@ -1,38 +1,38 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "cells": [ |
|
3 | 3 | { |
|
4 | 4 | "cell_type": "code", |
|
5 | "execution_count": 1, | |
|
5 | 6 | "metadata": { |
|
6 | 7 | "collapsed": false |
|
7 | 8 | }, |
|
8 | 9 | "outputs": [], |
|
9 | "prompt_number": 1, | |
|
10 | 10 | "source": [ |
|
11 | 11 | "i, j = 1, 1" |
|
12 | 12 | ] |
|
13 | 13 | }, |
|
14 | 14 | { |
|
15 | 15 | "cell_type": "code", |
|
16 | "execution_count": 2, | |
|
16 | 17 | "metadata": { |
|
17 | 18 | "collapsed": false |
|
18 | 19 | }, |
|
19 | 20 | "outputs": [ |
|
20 | 21 | { |
|
21 | 22 | "metadata": {}, |
|
22 | 23 | "name": "stdout", |
|
23 | 24 | "output_type": "stream", |
|
24 | 25 | "text": "2\n3\n5\n8\n13\n21\n34\n55\n89\n144\n" |
|
25 | 26 | } |
|
26 | 27 | ], |
|
27 | "prompt_number": 2, | |
|
28 | 28 | "source": [ |
|
29 | 29 | "for m in range(10):\n", |
|
30 | 30 | " i, j = j, i + j\n", |
|
31 | 31 | " print(j)" |
|
32 | 32 | ] |
|
33 | 33 | } |
|
34 | 34 | ], |
|
35 | 35 | "metadata": {}, |
|
36 | 36 | "nbformat": 4, |
|
37 | 37 | "nbformat_minor": 0 |
|
38 | 38 | } No newline at end of file |
@@ -1,25 +1,25 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "cells": [ |
|
3 | 3 | { |
|
4 | 4 | "cell_type": "code", |
|
5 | "execution_count": 1, | |
|
5 | 6 | "metadata": { |
|
6 | 7 | "collapsed": false |
|
7 | 8 | }, |
|
8 | 9 | "outputs": [ |
|
9 | 10 | { |
|
10 | 11 | "metadata": {}, |
|
11 | 12 | "name": "stdout", |
|
12 | 13 | "output_type": "stream", |
|
13 | 14 | "text": "Hello World\n" |
|
14 | 15 | } |
|
15 | 16 | ], |
|
16 | "prompt_number": 1, | |
|
17 | 17 | "source": [ |
|
18 | 18 | "print(\"Hello World\")" |
|
19 | 19 | ] |
|
20 | 20 | } |
|
21 | 21 | ], |
|
22 | 22 | "metadata": {}, |
|
23 | 23 | "nbformat": 4, |
|
24 | 24 | "nbformat_minor": 0 |
|
25 | 25 | } No newline at end of file |
@@ -1,29 +1,29 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "cells": [ |
|
3 | 3 | { |
|
4 | 4 | "cell_type": "code", |
|
5 | "execution_count": 1, | |
|
5 | 6 | "metadata": { |
|
6 | 7 | "collapsed": false |
|
7 | 8 | }, |
|
8 | 9 | "outputs": [], |
|
9 | "prompt_number": 1, | |
|
10 | 10 | "source": [ |
|
11 | 11 | "from IPython.display import Image" |
|
12 | 12 | ] |
|
13 | 13 | }, |
|
14 | 14 | { |
|
15 | 15 | "cell_type": "code", |
|
16 | "execution_count": 2, | |
|
16 | 17 | "metadata": { |
|
17 | 18 | "collapsed": false |
|
18 | 19 | }, |
|
19 | 20 | "outputs": [], |
|
20 | "prompt_number": 2, | |
|
21 | 21 | "source": [ |
|
22 | 22 | "Image('../input/python.png');" |
|
23 | 23 | ] |
|
24 | 24 | } |
|
25 | 25 | ], |
|
26 | 26 | "metadata": {}, |
|
27 | 27 | "nbformat": 4, |
|
28 | 28 | "nbformat_minor": 0 |
|
29 | 29 | } No newline at end of file |
@@ -1,46 +1,46 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "cells": [ |
|
3 | 3 | { |
|
4 | 4 | "cell_type": "code", |
|
5 | "execution_count": 1, | |
|
5 | 6 | "metadata": { |
|
6 | 7 | "collapsed": false |
|
7 | 8 | }, |
|
8 | 9 | "outputs": [], |
|
9 | "prompt_number": 1, | |
|
10 | 10 | "source": [ |
|
11 | 11 | "from IPython.display import SVG" |
|
12 | 12 | ] |
|
13 | 13 | }, |
|
14 | 14 | { |
|
15 | 15 | "cell_type": "code", |
|
16 | "execution_count": 2, | |
|
16 | 17 | "metadata": { |
|
17 | 18 | "collapsed": false |
|
18 | 19 | }, |
|
19 | 20 | "outputs": [ |
|
20 | 21 | { |
|
22 | "execution_count": 2, | |
|
21 | 23 | "image/svg+xml": [ |
|
22 | 24 | "<svg height=\"100\" width=\"100\">\n", |
|
23 | 25 | " <circle cx=\"50\" cy=\"50\" fill=\"red\" r=\"40\" stroke=\"black\" stroke-width=\"2\"/>\n", |
|
24 | 26 | "</svg>" |
|
25 | 27 | ], |
|
26 | 28 | "metadata": {}, |
|
27 | 29 | "output_type": "execute_result", |
|
28 | "prompt_number": 2, | |
|
29 | 30 | "text/plain": [ |
|
30 | 31 | "<IPython.core.display.SVG object>" |
|
31 | 32 | ] |
|
32 | 33 | } |
|
33 | 34 | ], |
|
34 | "prompt_number": 2, | |
|
35 | 35 | "source": [ |
|
36 | 36 | "SVG(data='''\n", |
|
37 | 37 | "<svg height=\"100\" width=\"100\">\n", |
|
38 | 38 | " <circle cx=\"50\" cy=\"50\" r=\"40\" stroke=\"black\" stroke-width=\"2\" fill=\"red\" />\n", |
|
39 | 39 | "</svg>''')" |
|
40 | 40 | ] |
|
41 | 41 | } |
|
42 | 42 | ], |
|
43 | 43 | "metadata": {}, |
|
44 | 44 | "nbformat": 4, |
|
45 | 45 | "nbformat_minor": 0 |
|
46 | 46 | } No newline at end of file |
@@ -1,51 +1,51 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "cells": [ |
|
3 | 3 | { |
|
4 | 4 | "cell_type": "code", |
|
5 | "execution_count": 1, | |
|
5 | 6 | "metadata": { |
|
6 | 7 | "collapsed": false |
|
7 | 8 | }, |
|
8 | 9 | "outputs": [ |
|
9 | 10 | { |
|
10 | 11 | "ename": "Exception", |
|
11 | 12 | "evalue": "message", |
|
12 | 13 | "metadata": {}, |
|
13 | 14 | "output_type": "error", |
|
14 | 15 | "traceback": [ |
|
15 | 16 | "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", |
|
16 | 17 | "\u001b[1;31mException\u001b[0m Traceback (most recent call last)", |
|
17 | 18 | "\u001b[1;32m<ipython-input-1-335814d14fc1>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[1;32mraise\u001b[0m \u001b[0mException\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"message\"\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m", |
|
18 | 19 | "\u001b[1;31mException\u001b[0m: message" |
|
19 | 20 | ] |
|
20 | 21 | } |
|
21 | 22 | ], |
|
22 | "prompt_number": 1, | |
|
23 | 23 | "source": [ |
|
24 | 24 | "raise Exception(\"message\")" |
|
25 | 25 | ] |
|
26 | 26 | }, |
|
27 | 27 | { |
|
28 | 28 | "cell_type": "code", |
|
29 | "execution_count": 2, | |
|
29 | 30 | "metadata": { |
|
30 | 31 | "collapsed": false |
|
31 | 32 | }, |
|
32 | 33 | "outputs": [ |
|
33 | 34 | { |
|
34 | 35 | "metadata": {}, |
|
35 | 36 | "name": "stdout", |
|
36 | 37 | "output_type": "stream", |
|
37 | 38 | "text": "ok\n" |
|
38 | 39 | } |
|
39 | 40 | ], |
|
40 | "prompt_number": 2, | |
|
41 | 41 | "source": [ |
|
42 | 42 | "print('ok')" |
|
43 | 43 | ] |
|
44 | 44 | } |
|
45 | 45 | ], |
|
46 | 46 | "metadata": { |
|
47 | 47 | "signature": "sha256:9d47889f0678e9685429071216d0f3354db59bb66489f3225bcadfb6a1a9bbba" |
|
48 | 48 | }, |
|
49 | 49 | "nbformat": 4, |
|
50 | 50 | "nbformat_minor": 0 |
|
51 | 51 | } No newline at end of file |
@@ -1,25 +1,25 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "cells": [ |
|
3 | 3 | { |
|
4 | 4 | "cell_type": "code", |
|
5 | "execution_count": 1, | |
|
5 | 6 | "metadata": { |
|
6 | 7 | "collapsed": false |
|
7 | 8 | }, |
|
8 | 9 | "outputs": [ |
|
9 | 10 | { |
|
10 | 11 | "metadata": {}, |
|
11 | 12 | "name": "stdout", |
|
12 | 13 | "output_type": "stream", |
|
13 | 14 | "text": "\u2603\n" |
|
14 | 15 | } |
|
15 | 16 | ], |
|
16 | "prompt_number": 1, | |
|
17 | 17 | "source": [ |
|
18 | 18 | "print('\u2603')" |
|
19 | 19 | ] |
|
20 | 20 | } |
|
21 | 21 | ], |
|
22 | 22 | "metadata": {}, |
|
23 | 23 | "nbformat": 4, |
|
24 | 24 | "nbformat_minor": 0 |
|
25 | 25 | } No newline at end of file |
@@ -1,35 +1,35 b'' | |||
|
1 | 1 | """ |
|
2 | 2 | Module with tests for the clearoutput preprocessor. |
|
3 | 3 | """ |
|
4 | 4 | |
|
5 | 5 | # Copyright (c) IPython Development Team. |
|
6 | 6 | # Distributed under the terms of the Modified BSD License. |
|
7 | 7 | |
|
8 | 8 | from IPython.nbformat import current as nbformat |
|
9 | 9 | |
|
10 | 10 | from .base import PreprocessorTestsBase |
|
11 | 11 | from ..clearoutput import ClearOutputPreprocessor |
|
12 | 12 | |
|
13 | 13 | |
|
14 | 14 | class TestClearOutput(PreprocessorTestsBase): |
|
15 | 15 | """Contains test functions for clearoutput.py""" |
|
16 | 16 | |
|
17 | 17 | |
|
18 | 18 | def build_preprocessor(self): |
|
19 | 19 | """Make an instance of a preprocessor""" |
|
20 | 20 | preprocessor = ClearOutputPreprocessor() |
|
21 | 21 | preprocessor.enabled = True |
|
22 | 22 | return preprocessor |
|
23 | 23 | |
|
24 | 24 | def test_constructor(self): |
|
25 | 25 | """Can a ClearOutputPreprocessor be constructed?""" |
|
26 | 26 | self.build_preprocessor() |
|
27 | 27 | |
|
28 | 28 | def test_output(self): |
|
29 | 29 | """Test the output of the ClearOutputPreprocessor""" |
|
30 | 30 | nb = self.build_notebook() |
|
31 | 31 | res = self.build_resources() |
|
32 | 32 | preprocessor = self.build_preprocessor() |
|
33 | 33 | nb, res = preprocessor(nb, res) |
|
34 | 34 | assert nb.cells[0].outputs == [] |
|
35 |
assert nb.cells[0]. |
|
|
35 | assert nb.cells[0].execution_count is None |
@@ -1,58 +1,58 b'' | |||
|
1 | 1 | """Tests for the coalescestreams preprocessor""" |
|
2 | 2 | |
|
3 | 3 | # Copyright (c) IPython Development Team. |
|
4 | 4 | # Distributed under the terms of the Modified BSD License. |
|
5 | 5 | |
|
6 | 6 | from IPython.nbformat import current as nbformat |
|
7 | 7 | |
|
8 | 8 | from .base import PreprocessorTestsBase |
|
9 | 9 | from ..coalescestreams import coalesce_streams |
|
10 | 10 | |
|
11 | 11 | |
|
12 | 12 | class TestCoalesceStreams(PreprocessorTestsBase): |
|
13 | 13 | """Contains test functions for coalescestreams.py""" |
|
14 | 14 | |
|
15 | 15 | def test_coalesce_streams(self): |
|
16 | 16 | """coalesce_streams preprocessor output test""" |
|
17 | 17 | nb = self.build_notebook() |
|
18 | 18 | res = self.build_resources() |
|
19 | 19 | nb, res = coalesce_streams(nb, res) |
|
20 | 20 | outputs = nb.cells[0].outputs |
|
21 | 21 | self.assertEqual(outputs[0].text, "a") |
|
22 | 22 | self.assertEqual(outputs[1].output_type, "display_data") |
|
23 | 23 | self.assertEqual(outputs[2].text, "cd") |
|
24 | 24 | self.assertEqual(outputs[3].text, "ef") |
|
25 | 25 | |
|
26 | 26 | def test_coalesce_sequenced_streams(self): |
|
27 | 27 | """Can the coalesce streams preprocessor merge a sequence of streams?""" |
|
28 | 28 | outputs = [nbformat.new_output(output_type="stream", name="stdout", text="0"), |
|
29 | 29 | nbformat.new_output(output_type="stream", name="stdout", text="1"), |
|
30 | 30 | nbformat.new_output(output_type="stream", name="stdout", text="2"), |
|
31 | 31 | nbformat.new_output(output_type="stream", name="stdout", text="3"), |
|
32 | 32 | nbformat.new_output(output_type="stream", name="stdout", text="4"), |
|
33 | 33 | nbformat.new_output(output_type="stream", name="stdout", text="5"), |
|
34 | 34 | nbformat.new_output(output_type="stream", name="stdout", text="6"), |
|
35 | 35 | nbformat.new_output(output_type="stream", name="stdout", text="7")] |
|
36 |
cells=[nbformat.new_code_cell(source="# None", |
|
|
36 | cells=[nbformat.new_code_cell(source="# None", execution_count=1,outputs=outputs)] | |
|
37 | 37 | |
|
38 | 38 | nb = nbformat.new_notebook(cells=cells) |
|
39 | 39 | res = self.build_resources() |
|
40 | 40 | nb, res = coalesce_streams(nb, res) |
|
41 | 41 | outputs = nb.cells[0].outputs |
|
42 | 42 | self.assertEqual(outputs[0].text, u'01234567') |
|
43 | 43 | |
|
44 | 44 | def test_coalesce_replace_streams(self): |
|
45 | 45 | """Are \\r characters handled?""" |
|
46 | 46 | outputs = [nbformat.new_output(output_type="stream", name="stdout", text="z"), |
|
47 | 47 | nbformat.new_output(output_type="stream", name="stdout", text="\ra"), |
|
48 | 48 | nbformat.new_output(output_type="stream", name="stdout", text="\nz\rb"), |
|
49 | 49 | nbformat.new_output(output_type="stream", name="stdout", text="\nz"), |
|
50 | 50 | nbformat.new_output(output_type="stream", name="stdout", text="\rc\n"), |
|
51 | 51 | nbformat.new_output(output_type="stream", name="stdout", text="z\rz\rd")] |
|
52 |
cells=[nbformat.new_code_cell(source="# None", |
|
|
52 | cells=[nbformat.new_code_cell(source="# None", execution_count=1,outputs=outputs)] | |
|
53 | 53 | |
|
54 | 54 | nb = nbformat.new_notebook(cells=cells) |
|
55 | 55 | res = self.build_resources() |
|
56 | 56 | nb, res = coalesce_streams(nb, res) |
|
57 | 57 | outputs = nb.cells[0].outputs |
|
58 | 58 | self.assertEqual(outputs[0].text, u'a\nb\nc\nd') |
@@ -1,88 +1,88 b'' | |||
|
1 | 1 | """ |
|
2 | 2 | Module with tests for the execute preprocessor. |
|
3 | 3 | """ |
|
4 | 4 | |
|
5 | 5 | # Copyright (c) IPython Development Team. |
|
6 | 6 | # Distributed under the terms of the Modified BSD License. |
|
7 | 7 | |
|
8 | 8 | import copy |
|
9 | 9 | import glob |
|
10 | 10 | import os |
|
11 | 11 | import re |
|
12 | 12 | |
|
13 | 13 | from IPython.nbformat import current as nbformat |
|
14 | 14 | |
|
15 | 15 | from .base import PreprocessorTestsBase |
|
16 | 16 | from ..execute import ExecutePreprocessor |
|
17 | 17 | |
|
18 | 18 | from IPython.nbconvert.filters import strip_ansi |
|
19 | 19 | |
|
20 | 20 | addr_pat = re.compile(r'0x[0-9a-f]{7,9}') |
|
21 | 21 | |
|
22 | 22 | class TestExecute(PreprocessorTestsBase): |
|
23 | 23 | """Contains test functions for execute.py""" |
|
24 | 24 | |
|
25 | 25 | @staticmethod |
|
26 | 26 | def normalize_output(output): |
|
27 | 27 | """ |
|
28 | 28 | Normalizes outputs for comparison. |
|
29 | 29 | """ |
|
30 | 30 | output = dict(output) |
|
31 | 31 | if 'metadata' in output: |
|
32 | 32 | del output['metadata'] |
|
33 | 33 | if 'text/plain' in output: |
|
34 | 34 | output['text/plain'] = re.sub(addr_pat, '<HEXADDR>', output['text/plain']) |
|
35 | 35 | if 'traceback' in output: |
|
36 | 36 | tb = [] |
|
37 | 37 | for line in output['traceback']: |
|
38 | 38 | tb.append(strip_ansi(line)) |
|
39 | 39 | output['traceback'] = tb |
|
40 | 40 | |
|
41 | 41 | return output |
|
42 | 42 | |
|
43 | 43 | |
|
44 | 44 | def assert_notebooks_equal(self, expected, actual): |
|
45 | 45 | expected_cells = expected['cells'] |
|
46 | 46 | actual_cells = actual['cells'] |
|
47 | 47 | assert len(expected_cells) == len(actual_cells) |
|
48 | 48 | |
|
49 | 49 | for expected_cell, actual_cell in zip(expected_cells, actual_cells): |
|
50 | 50 | expected_outputs = expected_cell.get('outputs', []) |
|
51 | 51 | actual_outputs = actual_cell.get('outputs', []) |
|
52 | 52 | normalized_expected_outputs = list(map(self.normalize_output, expected_outputs)) |
|
53 | 53 | normalized_actual_outputs = list(map(self.normalize_output, actual_outputs)) |
|
54 | 54 | assert normalized_expected_outputs == normalized_actual_outputs |
|
55 | 55 | |
|
56 |
expected_ |
|
|
57 |
actual_ |
|
|
58 |
assert expected_ |
|
|
56 | expected_execution_count = expected_cell.get('execution_count', None) | |
|
57 | actual_execution_count = actual_cell.get('execution_count', None) | |
|
58 | assert expected_execution_count == actual_execution_count | |
|
59 | 59 | |
|
60 | 60 | |
|
61 | 61 | def build_preprocessor(self): |
|
62 | 62 | """Make an instance of a preprocessor""" |
|
63 | 63 | preprocessor = ExecutePreprocessor() |
|
64 | 64 | preprocessor.enabled = True |
|
65 | 65 | return preprocessor |
|
66 | 66 | |
|
67 | 67 | |
|
68 | 68 | def test_constructor(self): |
|
69 | 69 | """Can a ExecutePreprocessor be constructed?""" |
|
70 | 70 | self.build_preprocessor() |
|
71 | 71 | |
|
72 | 72 | |
|
73 | 73 | def test_run_notebooks(self): |
|
74 | 74 | """Runs a series of test notebooks and compares them to their actual output""" |
|
75 | 75 | current_dir = os.path.dirname(__file__) |
|
76 | 76 | input_files = glob.glob(os.path.join(current_dir, 'files', '*.ipynb')) |
|
77 | 77 | for filename in input_files: |
|
78 | 78 | with open(os.path.join(current_dir, 'files', filename)) as f: |
|
79 | 79 | input_nb = nbformat.read(f, 'ipynb') |
|
80 | 80 | res = self.build_resources() |
|
81 | 81 | preprocessor = self.build_preprocessor() |
|
82 | 82 | cleaned_input_nb = copy.deepcopy(input_nb) |
|
83 | 83 | for cell in cleaned_input_nb.cells: |
|
84 |
if ' |
|
|
85 |
del cell[' |
|
|
84 | if 'execution_count' in cell: | |
|
85 | del cell['execution_count'] | |
|
86 | 86 | cell['outputs'] = [] |
|
87 | 87 | output_nb, _ = preprocessor(cleaned_input_nb, res) |
|
88 | 88 | self.assert_notebooks_equal(output_nb, input_nb) |
@@ -1,78 +1,78 b'' | |||
|
1 | 1 | """Tests for the revealhelp preprocessor""" |
|
2 | 2 | |
|
3 | 3 | # Copyright (c) IPython Development Team. |
|
4 | 4 | # Distributed under the terms of the Modified BSD License. |
|
5 | 5 | |
|
6 | 6 | from IPython.nbformat import current as nbformat |
|
7 | 7 | |
|
8 | 8 | from .base import PreprocessorTestsBase |
|
9 | 9 | from ..revealhelp import RevealHelpPreprocessor |
|
10 | 10 | |
|
11 | 11 | |
|
12 | 12 | class Testrevealhelp(PreprocessorTestsBase): |
|
13 | 13 | """Contains test functions for revealhelp.py""" |
|
14 | 14 | |
|
15 | 15 | def build_notebook(self): |
|
16 | 16 | """Build a reveal slides notebook in memory for use with tests. |
|
17 | 17 | Overrides base in PreprocessorTestsBase""" |
|
18 | 18 | |
|
19 | 19 | outputs = [nbformat.new_output(output_type="stream", name="stdout", text="a")] |
|
20 | 20 | |
|
21 | 21 | slide_metadata = {'slideshow' : {'slide_type': 'slide'}} |
|
22 | 22 | subslide_metadata = {'slideshow' : {'slide_type': 'subslide'}} |
|
23 | 23 | |
|
24 |
cells=[nbformat.new_code_cell(source="", |
|
|
24 | cells=[nbformat.new_code_cell(source="", execution_count=1, outputs=outputs), | |
|
25 | 25 | nbformat.new_markdown_cell(source="", metadata=slide_metadata), |
|
26 |
nbformat.new_code_cell(source="", |
|
|
26 | nbformat.new_code_cell(source="", execution_count=2, outputs=outputs), | |
|
27 | 27 | nbformat.new_markdown_cell(source="", metadata=slide_metadata), |
|
28 | 28 | nbformat.new_markdown_cell(source="", metadata=subslide_metadata)] |
|
29 | 29 | |
|
30 | 30 | return nbformat.new_notebook(cells=cells) |
|
31 | 31 | |
|
32 | 32 | |
|
33 | 33 | def build_preprocessor(self): |
|
34 | 34 | """Make an instance of a preprocessor""" |
|
35 | 35 | preprocessor = RevealHelpPreprocessor() |
|
36 | 36 | preprocessor.enabled = True |
|
37 | 37 | return preprocessor |
|
38 | 38 | |
|
39 | 39 | |
|
40 | 40 | def test_constructor(self): |
|
41 | 41 | """Can a RevealHelpPreprocessor be constructed?""" |
|
42 | 42 | self.build_preprocessor() |
|
43 | 43 | |
|
44 | 44 | |
|
45 | 45 | def test_reveal_attribute(self): |
|
46 | 46 | """Make sure the reveal url_prefix resources is set""" |
|
47 | 47 | nb = self.build_notebook() |
|
48 | 48 | res = self.build_resources() |
|
49 | 49 | preprocessor = self.build_preprocessor() |
|
50 | 50 | nb, res = preprocessor(nb, res) |
|
51 | 51 | assert 'reveal' in res |
|
52 | 52 | assert 'url_prefix' in res['reveal'] |
|
53 | 53 | |
|
54 | 54 | |
|
55 | 55 | def test_reveal_output(self): |
|
56 | 56 | """Make sure that the reveal preprocessor """ |
|
57 | 57 | nb = self.build_notebook() |
|
58 | 58 | res = self.build_resources() |
|
59 | 59 | preprocessor = self.build_preprocessor() |
|
60 | 60 | nb, res = preprocessor(nb, res) |
|
61 | 61 | cells = nb.cells |
|
62 | 62 | |
|
63 | 63 | # Make sure correct metadata tags are available on every cell. |
|
64 | 64 | for cell in cells: |
|
65 | 65 | assert 'slide_type' in cell.metadata |
|
66 | 66 | |
|
67 | 67 | # Make sure slide end is only applied to the cells preceeding slide |
|
68 | 68 | # cells. |
|
69 | 69 | assert 'slide_helper' in cells[1].metadata |
|
70 | 70 | self.assertEqual(cells[1].metadata['slide_helper'], '-') |
|
71 | 71 | |
|
72 | 72 | # Verify 'slide-end' |
|
73 | 73 | assert 'slide_helper' in cells[0].metadata |
|
74 | 74 | self.assertEqual(cells[0].metadata['slide_helper'], 'slide_end') |
|
75 | 75 | assert 'slide_helper' in cells[2].metadata |
|
76 | 76 | self.assertEqual(cells[2].metadata['slide_helper'], 'slide_end') |
|
77 | 77 | assert 'slide_helper' in cells[3].metadata |
|
78 | 78 | self.assertEqual(cells[3].metadata['slide_helper'], 'subslide_end') |
@@ -1,74 +1,74 b'' | |||
|
1 | 1 | """Tests for the svg2pdf preprocessor""" |
|
2 | 2 | |
|
3 | 3 | # Copyright (c) IPython Development Team. |
|
4 | 4 | # Distributed under the terms of the Modified BSD License. |
|
5 | 5 | |
|
6 | 6 | from IPython.testing import decorators as dec |
|
7 | 7 | from IPython.nbformat import current as nbformat |
|
8 | 8 | |
|
9 | 9 | from .base import PreprocessorTestsBase |
|
10 | 10 | from ..svg2pdf import SVG2PDFPreprocessor |
|
11 | 11 | |
|
12 | 12 | |
|
13 | 13 | class Testsvg2pdf(PreprocessorTestsBase): |
|
14 | 14 | """Contains test functions for svg2pdf.py""" |
|
15 | 15 | |
|
16 | 16 | simple_svg = """<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|
17 | 17 | <!-- Created with Inkscape (http://www.inkscape.org/) --> |
|
18 | 18 | <svg |
|
19 | 19 | xmlns:svg="http://www.w3.org/2000/svg" |
|
20 | 20 | xmlns="http://www.w3.org/2000/svg" |
|
21 | 21 | version="1.0" |
|
22 | 22 | x="0.00000000" |
|
23 | 23 | y="0.00000000" |
|
24 | 24 | width="500.00000" |
|
25 | 25 | height="500.00000" |
|
26 | 26 | id="svg2"> |
|
27 | 27 | <defs |
|
28 | 28 | id="defs4" /> |
|
29 | 29 | <g |
|
30 | 30 | id="layer1"> |
|
31 | 31 | <rect |
|
32 | 32 | width="300.00000" |
|
33 | 33 | height="300.00000" |
|
34 | 34 | x="100.00000" |
|
35 | 35 | y="100.00000" |
|
36 | 36 | style="opacity:1.0000000;fill:none;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:8.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:0.00000000;stroke-opacity:1.0000000" |
|
37 | 37 | id="rect5719" /> |
|
38 | 38 | </g> |
|
39 | 39 | </svg>""" |
|
40 | 40 | |
|
41 | 41 | def build_notebook(self): |
|
42 | 42 | """Build a reveal slides notebook in memory for use with tests. |
|
43 | 43 | Overrides base in PreprocessorTestsBase""" |
|
44 | 44 | |
|
45 | 45 | outputs = [nbformat.new_output(output_type="svg", output_svg=self.simple_svg)] |
|
46 | 46 | |
|
47 | 47 | slide_metadata = {'slideshow' : {'slide_type': 'slide'}} |
|
48 | 48 | subslide_metadata = {'slideshow' : {'slide_type': 'subslide'}} |
|
49 | 49 | |
|
50 |
cells=[nbformat.new_code_cell(source="", |
|
|
50 | cells=[nbformat.new_code_cell(source="", execution_count=1, outputs=outputs)] | |
|
51 | 51 | |
|
52 | 52 | return nbformat.new_notebook(cells=cells) |
|
53 | 53 | |
|
54 | 54 | |
|
55 | 55 | def build_preprocessor(self): |
|
56 | 56 | """Make an instance of a preprocessor""" |
|
57 | 57 | preprocessor = SVG2PDFPreprocessor() |
|
58 | 58 | preprocessor.enabled = True |
|
59 | 59 | return preprocessor |
|
60 | 60 | |
|
61 | 61 | |
|
62 | 62 | def test_constructor(self): |
|
63 | 63 | """Can a SVG2PDFPreprocessor be constructed?""" |
|
64 | 64 | self.build_preprocessor() |
|
65 | 65 | |
|
66 | 66 | |
|
67 | 67 | @dec.onlyif_cmds_exist('inkscape') |
|
68 | 68 | def test_output(self): |
|
69 | 69 | """Test the output of the SVG2PDFPreprocessor""" |
|
70 | 70 | nb = self.build_notebook() |
|
71 | 71 | res = self.build_resources() |
|
72 | 72 | preprocessor = self.build_preprocessor() |
|
73 | 73 | nb, res = preprocessor(nb, res) |
|
74 | 74 | assert 'svg' in nb.cells[0].outputs[0] |
@@ -1,203 +1,203 b'' | |||
|
1 | 1 | {%- extends 'display_priority.tpl' -%} |
|
2 | 2 | |
|
3 | 3 | |
|
4 | 4 | {% block codecell %} |
|
5 | 5 | <div class="cell border-box-sizing code_cell rendered"> |
|
6 | 6 | {{ super() }} |
|
7 | 7 | </div> |
|
8 | 8 | {%- endblock codecell %} |
|
9 | 9 | |
|
10 | 10 | {% block input_group -%} |
|
11 | 11 | <div class="input"> |
|
12 | 12 | {{ super() }} |
|
13 | 13 | </div> |
|
14 | 14 | {% endblock input_group %} |
|
15 | 15 | |
|
16 | 16 | {% block output_group %} |
|
17 | 17 | <div class="output_wrapper"> |
|
18 | 18 | <div class="output"> |
|
19 | 19 | {{ super() }} |
|
20 | 20 | </div> |
|
21 | 21 | </div> |
|
22 | 22 | {% endblock output_group %} |
|
23 | 23 | |
|
24 | 24 | {% block in_prompt -%} |
|
25 | 25 | <div class="prompt input_prompt"> |
|
26 |
{%- if cell. |
|
|
27 |
In [{{ cell. |
|
|
26 | {%- if cell.execution_count is defined -%} | |
|
27 | In [{{ cell.execution_count|replace(None, " ") }}]: | |
|
28 | 28 | {%- else -%} |
|
29 | 29 | In [ ]: |
|
30 | 30 | {%- endif -%} |
|
31 | 31 | </div> |
|
32 | 32 | {%- endblock in_prompt %} |
|
33 | 33 | |
|
34 | 34 | {% block empty_in_prompt -%} |
|
35 | 35 | <div class="prompt input_prompt"> |
|
36 | 36 | </div> |
|
37 | 37 | {%- endblock empty_in_prompt %} |
|
38 | 38 | |
|
39 | 39 | {# |
|
40 | 40 | output_prompt doesn't do anything in HTML, |
|
41 | 41 | because there is a prompt div in each output area (see output block) |
|
42 | 42 | #} |
|
43 | 43 | {% block output_prompt %} |
|
44 | 44 | {% endblock output_prompt %} |
|
45 | 45 | |
|
46 | 46 | {% block input %} |
|
47 | 47 | <div class="inner_cell"> |
|
48 | 48 | <div class="input_area"> |
|
49 | 49 | {{ cell.source | highlight_code(metadata=cell.metadata) }} |
|
50 | 50 | </div> |
|
51 | 51 | </div> |
|
52 | 52 | {%- endblock input %} |
|
53 | 53 | |
|
54 | 54 | {% block output %} |
|
55 | 55 | <div class="output_area"> |
|
56 | 56 | {%- if output.output_type == 'execute_result' -%} |
|
57 | 57 | <div class="prompt output_prompt"> |
|
58 |
{%- if cell. |
|
|
59 |
Out[{{ cell. |
|
|
58 | {%- if cell.execution_count is defined -%} | |
|
59 | Out[{{ cell.execution_count|replace(None, " ") }}]: | |
|
60 | 60 | {%- else -%} |
|
61 | 61 | Out[ ]: |
|
62 | 62 | {%- endif -%} |
|
63 | 63 | {%- else -%} |
|
64 | 64 | <div class="prompt"> |
|
65 | 65 | {%- endif -%} |
|
66 | 66 | </div> |
|
67 | 67 | {{ super() }} |
|
68 | 68 | </div> |
|
69 | 69 | {% endblock output %} |
|
70 | 70 | |
|
71 | 71 | {% block markdowncell scoped %} |
|
72 | 72 | <div class="cell border-box-sizing text_cell rendered"> |
|
73 | 73 | {{ self.empty_in_prompt() }} |
|
74 | 74 | <div class="inner_cell"> |
|
75 | 75 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
76 | 76 | {{ cell.source | markdown2html | strip_files_prefix }} |
|
77 | 77 | </div> |
|
78 | 78 | </div> |
|
79 | 79 | </div> |
|
80 | 80 | {%- endblock markdowncell %} |
|
81 | 81 | |
|
82 | 82 | {% block headingcell scoped %} |
|
83 | 83 | <div class="cell border-box-sizing text_cell rendered"> |
|
84 | 84 | {{ self.empty_in_prompt() }} |
|
85 | 85 | <div class="inner_cell"> |
|
86 | 86 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
87 | 87 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }} |
|
88 | 88 | </div> |
|
89 | 89 | </div> |
|
90 | 90 | </div> |
|
91 | 91 | {% endblock headingcell %} |
|
92 | 92 | |
|
93 | 93 | {% block unknowncell scoped %} |
|
94 | 94 | unknown type {{ cell.type }} |
|
95 | 95 | {% endblock unknowncell %} |
|
96 | 96 | |
|
97 | 97 | {% block execute_result -%} |
|
98 | 98 | {%- set extra_class="output_execute_result" -%} |
|
99 | 99 | {% block data_priority scoped %} |
|
100 | 100 | {{ super() }} |
|
101 | 101 | {% endblock %} |
|
102 | 102 | {%- set extra_class="" -%} |
|
103 | 103 | {%- endblock execute_result %} |
|
104 | 104 | |
|
105 | 105 | {% block stream_stdout -%} |
|
106 | 106 | <div class="output_subarea output_stream output_stdout output_text"> |
|
107 | 107 | <pre> |
|
108 | 108 | {{- output.text | ansi2html -}} |
|
109 | 109 | </pre> |
|
110 | 110 | </div> |
|
111 | 111 | {%- endblock stream_stdout %} |
|
112 | 112 | |
|
113 | 113 | {% block stream_stderr -%} |
|
114 | 114 | <div class="output_subarea output_stream output_stderr output_text"> |
|
115 | 115 | <pre> |
|
116 | 116 | {{- output.text | ansi2html -}} |
|
117 | 117 | </pre> |
|
118 | 118 | </div> |
|
119 | 119 | {%- endblock stream_stderr %} |
|
120 | 120 | |
|
121 | 121 | {% block data_svg scoped -%} |
|
122 | 122 | <div class="output_svg output_subarea {{extra_class}}"> |
|
123 | 123 | {%- if output.svg_filename %} |
|
124 | 124 | <img src="{{output.svg_filename | posix_path}}" |
|
125 | 125 | {%- else %} |
|
126 | 126 | {{ output.svg }} |
|
127 | 127 | {%- endif %} |
|
128 | 128 | </div> |
|
129 | 129 | {%- endblock data_svg %} |
|
130 | 130 | |
|
131 | 131 | {% block data_html scoped -%} |
|
132 | 132 | <div class="output_html rendered_html output_subarea {{extra_class}}"> |
|
133 | 133 | {{ output.html }} |
|
134 | 134 | </div> |
|
135 | 135 | {%- endblock data_html %} |
|
136 | 136 | |
|
137 | 137 | {% block data_png scoped %} |
|
138 | 138 | <div class="output_png output_subarea {{extra_class}}"> |
|
139 | 139 | {%- if output.png_filename %} |
|
140 | 140 | <img src="{{output.png_filename | posix_path}}" |
|
141 | 141 | {%- else %} |
|
142 | 142 | <img src="data:image/png;base64,{{ output.png }}" |
|
143 | 143 | {%- endif %} |
|
144 | 144 | {%- if 'metadata' in output and 'width' in output.metadata.get('png', {}) %} |
|
145 | 145 | width={{output.metadata['png']['width']}} |
|
146 | 146 | {%- endif %} |
|
147 | 147 | {%- if 'metadata' in output and 'height' in output.metadata.get('png', {}) %} |
|
148 | 148 | height={{output.metadata['png']['height']}} |
|
149 | 149 | {%- endif %} |
|
150 | 150 | > |
|
151 | 151 | </div> |
|
152 | 152 | {%- endblock data_png %} |
|
153 | 153 | |
|
154 | 154 | {% block data_jpg scoped %} |
|
155 | 155 | <div class="output_jpeg output_subarea {{extra_class}}"> |
|
156 | 156 | {%- if output.jpeg_filename %} |
|
157 | 157 | <img src="{{output.jpeg_filename | posix_path}}" |
|
158 | 158 | {%- else %} |
|
159 | 159 | <img src="data:image/jpeg;base64,{{ output.jpeg }}" |
|
160 | 160 | {%- endif %} |
|
161 | 161 | {%- if 'metadata' in output and 'width' in output.metadata.get('jpeg', {}) %} |
|
162 | 162 | width={{output.metadata['jpeg']['width']}} |
|
163 | 163 | {%- endif %} |
|
164 | 164 | {%- if 'metadata' in output and 'height' in output.metadata.get('jpeg', {}) %} |
|
165 | 165 | height={{output.metadata['jpeg']['height']}} |
|
166 | 166 | {%- endif %} |
|
167 | 167 | > |
|
168 | 168 | </div> |
|
169 | 169 | {%- endblock data_jpg %} |
|
170 | 170 | |
|
171 | 171 | {% block data_latex scoped %} |
|
172 | 172 | <div class="output_latex output_subarea {{extra_class}}"> |
|
173 | 173 | {{ output.latex }} |
|
174 | 174 | </div> |
|
175 | 175 | {%- endblock data_latex %} |
|
176 | 176 | |
|
177 | 177 | {% block error -%} |
|
178 | 178 | <div class="output_subarea output_text output_error"> |
|
179 | 179 | <pre> |
|
180 | 180 | {{- super() -}} |
|
181 | 181 | </pre> |
|
182 | 182 | </div> |
|
183 | 183 | {%- endblock error %} |
|
184 | 184 | |
|
185 | 185 | {%- block traceback_line %} |
|
186 | 186 | {{ line | ansi2html }} |
|
187 | 187 | {%- endblock traceback_line %} |
|
188 | 188 | |
|
189 | 189 | {%- block data_text scoped %} |
|
190 | 190 | <div class="output_text output_subarea {{extra_class}}"> |
|
191 | 191 | <pre> |
|
192 | 192 | {{- output.text | ansi2html -}} |
|
193 | 193 | </pre> |
|
194 | 194 | </div> |
|
195 | 195 | {%- endblock -%} |
|
196 | 196 | |
|
197 | 197 | {%- block data_javascript scoped %} |
|
198 | 198 | <div class="output_subarea output_javascript {{extra_class}}"> |
|
199 | 199 | <script type="text/javascript"> |
|
200 | 200 | {{ output.javascript }} |
|
201 | 201 | </script> |
|
202 | 202 | </div> |
|
203 | 203 | {%- endblock -%} |
@@ -1,45 +1,45 b'' | |||
|
1 | 1 | ((= Black&white ipython input/output style =)) |
|
2 | 2 | |
|
3 | 3 | ((*- extends 'base.tplx' -*)) |
|
4 | 4 | |
|
5 | 5 | %=============================================================================== |
|
6 | 6 | % Input |
|
7 | 7 | %=============================================================================== |
|
8 | 8 | |
|
9 | 9 | ((* block input scoped *)) |
|
10 | 10 | ((( add_prompt(cell.source, cell, 'In ') ))) |
|
11 | 11 | ((* endblock input *)) |
|
12 | 12 | |
|
13 | 13 | |
|
14 | 14 | %=============================================================================== |
|
15 | 15 | % Output |
|
16 | 16 | %=============================================================================== |
|
17 | 17 | |
|
18 | 18 | ((* block execute_result scoped *)) |
|
19 | 19 | ((*- for type in output | filter_data_type -*)) |
|
20 | 20 | ((*- if type in ['text']*)) |
|
21 | 21 | ((( add_prompt(output.text, cell, 'Out') ))) |
|
22 | 22 | ((*- else -*)) |
|
23 |
\verb+Out[((( cell. |
|
|
23 | \verb+Out[((( cell.execution_count )))]:+((( super() ))) | |
|
24 | 24 | ((*- endif -*)) |
|
25 | 25 | ((*- endfor -*)) |
|
26 | 26 | ((* endblock execute_result *)) |
|
27 | 27 | |
|
28 | 28 | |
|
29 | 29 | %============================================================================== |
|
30 | 30 | % Support Macros |
|
31 | 31 | %============================================================================== |
|
32 | 32 | |
|
33 | 33 | % Name: draw_prompt |
|
34 | 34 | % Purpose: Renders an output/input prompt |
|
35 | 35 | ((* macro add_prompt(text, cell, prompt) -*)) |
|
36 |
((*- if cell. |
|
|
37 |
((*- set |
|
|
36 | ((*- if cell.execution_count is defined -*)) | |
|
37 | ((*- set execution_count = "" ~ (cell.execution_count | replace(None, " ")) -*)) | |
|
38 | 38 | ((*- else -*)) |
|
39 |
((*- set |
|
|
39 | ((*- set execution_count = " " -*)) | |
|
40 | 40 | ((*- endif -*)) |
|
41 |
((*- set indentation = " " * ( |
|
|
41 | ((*- set indentation = " " * (execution_count | length + 7) -*)) | |
|
42 | 42 | \begin{verbatim} |
|
43 |
(((- text | add_prompts(first=prompt ~ '[' ~ |
|
|
43 | (((- text | add_prompts(first=prompt ~ '[' ~ execution_count ~ ']: ', cont=indentation) -))) | |
|
44 | 44 | \end{verbatim} |
|
45 | 45 | ((*- endmacro *)) |
@@ -1,58 +1,58 b'' | |||
|
1 | 1 | ((= IPython input/output style =)) |
|
2 | 2 | |
|
3 | 3 | ((*- extends 'base.tplx' -*)) |
|
4 | 4 | |
|
5 | 5 | % Custom definitions |
|
6 | 6 | ((* block definitions *)) |
|
7 | 7 | ((( super() ))) |
|
8 | 8 | |
|
9 | 9 | % Pygments definitions |
|
10 | 10 | ((( resources.latex.pygments_definitions ))) |
|
11 | 11 | |
|
12 | 12 | % Exact colors from NB |
|
13 | 13 | \definecolor{incolor}{rgb}{0.0, 0.0, 0.5} |
|
14 | 14 | \definecolor{outcolor}{rgb}{0.545, 0.0, 0.0} |
|
15 | 15 | |
|
16 | 16 | ((* endblock definitions *)) |
|
17 | 17 | |
|
18 | 18 | %=============================================================================== |
|
19 | 19 | % Input |
|
20 | 20 | %=============================================================================== |
|
21 | 21 | |
|
22 | 22 | ((* block input scoped *)) |
|
23 | 23 | ((( add_prompt(cell.source | highlight_code(strip_verbatim=True), cell, 'In ', 'incolor') ))) |
|
24 | 24 | ((* endblock input *)) |
|
25 | 25 | |
|
26 | 26 | |
|
27 | 27 | %=============================================================================== |
|
28 | 28 | % Output |
|
29 | 29 | %=============================================================================== |
|
30 | 30 | |
|
31 | 31 | ((* block execute_result scoped *)) |
|
32 | 32 | ((*- for type in output | filter_data_type -*)) |
|
33 | 33 | ((*- if type in ['text']*)) |
|
34 | 34 | ((( add_prompt(output.text | escape_latex, cell, 'Out', 'outcolor') ))) |
|
35 | 35 | ((* else -*)) |
|
36 |
\texttt{\color{outcolor}Out[{\color{outcolor}((( cell. |
|
|
36 | \texttt{\color{outcolor}Out[{\color{outcolor}((( cell.execution_count )))}]:}((( super() ))) | |
|
37 | 37 | ((*- endif -*)) |
|
38 | 38 | ((*- endfor -*)) |
|
39 | 39 | ((* endblock execute_result *)) |
|
40 | 40 | |
|
41 | 41 | |
|
42 | 42 | %============================================================================== |
|
43 | 43 | % Support Macros |
|
44 | 44 | %============================================================================== |
|
45 | 45 | |
|
46 | 46 | % Name: draw_prompt |
|
47 | 47 | % Purpose: Renders an output/input prompt |
|
48 | 48 | ((* macro add_prompt(text, cell, prompt, prompt_color) -*)) |
|
49 |
((*- if cell. |
|
|
50 |
((*- set |
|
|
49 | ((*- if cell.execution_count is defined -*)) | |
|
50 | ((*- set execution_count = "" ~ (cell.execution_count | replace(None, " ")) -*)) | |
|
51 | 51 | ((*- else -*)) |
|
52 |
((*- set |
|
|
52 | ((*- set execution_count = " " -*)) | |
|
53 | 53 | ((*- endif -*)) |
|
54 |
((*- set indention = " " * ( |
|
|
54 | ((*- set indention = " " * (execution_count | length + 7) -*)) | |
|
55 | 55 | \begin{Verbatim}[commandchars=\\\{\}] |
|
56 |
((( text | add_prompts(first='{\color{' ~ prompt_color ~ '}' ~ prompt ~ '[{\\color{' ~ prompt_color ~ '}' ~ |
|
|
56 | ((( text | add_prompts(first='{\color{' ~ prompt_color ~ '}' ~ prompt ~ '[{\\color{' ~ prompt_color ~ '}' ~ execution_count ~ '}]:} ', cont=indention) ))) | |
|
57 | 57 | \end{Verbatim} |
|
58 | 58 | ((*- endmacro *)) |
@@ -1,21 +1,21 b'' | |||
|
1 | 1 | {%- extends 'null.tpl' -%} |
|
2 | 2 | |
|
3 | 3 | {% block header %} |
|
4 | 4 | # coding: utf-8 |
|
5 | 5 | {% endblock header %} |
|
6 | 6 | |
|
7 | 7 | {% block in_prompt %} |
|
8 |
# In[{{ cell. |
|
|
8 | # In[{{ cell.execution_count if cell.execution_count else ' ' }}]: | |
|
9 | 9 | {% endblock in_prompt %} |
|
10 | 10 | |
|
11 | 11 | {% block input %} |
|
12 | 12 | {{ cell.source | ipython2python }} |
|
13 | 13 | {% endblock input %} |
|
14 | 14 | |
|
15 | 15 | {% block markdowncell scoped %} |
|
16 | 16 | {{ cell.source | comment_lines }} |
|
17 | 17 | {% endblock markdowncell %} |
|
18 | 18 | |
|
19 | 19 | {% block headingcell scoped %} |
|
20 | 20 | {{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }} |
|
21 | 21 | {% endblock headingcell %} |
@@ -1,143 +1,143 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "cells": [ |
|
3 | 3 | { |
|
4 | 4 | "cell_type": "heading", |
|
5 | 5 | "level": 1, |
|
6 | 6 | "metadata": {}, |
|
7 | 7 | "source": [ |
|
8 | 8 | "A simple SymPy example" |
|
9 | 9 | ] |
|
10 | 10 | }, |
|
11 | 11 | { |
|
12 | 12 | "cell_type": "markdown", |
|
13 | 13 | "metadata": {}, |
|
14 | 14 | "source": [ |
|
15 | 15 | "First we import SymPy and initialize printing:" |
|
16 | 16 | ] |
|
17 | 17 | }, |
|
18 | 18 | { |
|
19 | 19 | "cell_type": "code", |
|
20 | "execution_count": 2, | |
|
20 | 21 | "metadata": { |
|
21 | 22 | "collapsed": false |
|
22 | 23 | }, |
|
23 | 24 | "outputs": [], |
|
24 | "prompt_number": 2, | |
|
25 | 25 | "source": [ |
|
26 | 26 | "from sympy import init_printing\n", |
|
27 | 27 | "from sympy import *\n", |
|
28 | 28 | " init_printing()" |
|
29 | 29 | ] |
|
30 | 30 | }, |
|
31 | 31 | { |
|
32 | 32 | "cell_type": "markdown", |
|
33 | 33 | "metadata": {}, |
|
34 | 34 | "source": [ |
|
35 | 35 | "Create a few symbols:" |
|
36 | 36 | ] |
|
37 | 37 | }, |
|
38 | 38 | { |
|
39 | 39 | "cell_type": "code", |
|
40 | "execution_count": 4, | |
|
40 | 41 | "metadata": { |
|
41 | 42 | "collapsed": false |
|
42 | 43 | }, |
|
43 | 44 | "outputs": [], |
|
44 | "prompt_number": 4, | |
|
45 | 45 | "source": [ |
|
46 | 46 | "x,y,z = symbols('x y z')" |
|
47 | 47 | ] |
|
48 | 48 | }, |
|
49 | 49 | { |
|
50 | 50 | "cell_type": "markdown", |
|
51 | 51 | "metadata": {}, |
|
52 | 52 | "source": [ |
|
53 | 53 | "Here is a basic expression:" |
|
54 | 54 | ] |
|
55 | 55 | }, |
|
56 | 56 | { |
|
57 | 57 | "cell_type": "code", |
|
58 | "execution_count": 6, | |
|
58 | 59 | "metadata": { |
|
59 | 60 | "collapsed": false |
|
60 | 61 | }, |
|
61 | 62 | "outputs": [ |
|
62 | 63 | { |
|
64 | "execution_count": 6, | |
|
63 | 65 | "image/png": "iVBORw0KGgoAAAANSUhEUgAAAKMAAAAZBAMAAACvE4OgAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAA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=\n", |
|
64 | 66 | "metadata": {}, |
|
65 | 67 | "output_type": "execute_result", |
|
66 | "prompt_number": 6, | |
|
67 | 68 | "text/latex": [ |
|
68 | 69 | "$$x^{2} + 2.0 y + \\sin{\\left (z \\right )}$$" |
|
69 | 70 | ], |
|
70 | 71 | "text/plain": [ |
|
71 | 72 | " 2 \n", |
|
72 | 73 | "x + 2.0\u22c5y + sin(z)" |
|
73 | 74 | ] |
|
74 | 75 | } |
|
75 | 76 | ], |
|
76 | "prompt_number": 6, | |
|
77 | 77 | "source": [ |
|
78 | 78 | "e = x**2 + 2.0*y + sin(z); e" |
|
79 | 79 | ] |
|
80 | 80 | }, |
|
81 | 81 | { |
|
82 | 82 | "cell_type": "code", |
|
83 | "execution_count": 7, | |
|
83 | 84 | "metadata": { |
|
84 | 85 | "collapsed": false |
|
85 | 86 | }, |
|
86 | 87 | "outputs": [ |
|
87 | 88 | { |
|
89 | "execution_count": 7, | |
|
88 | 90 | "image/png": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAOBAMAAADd6iHDAAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAIpm7MhCriUTv3c12\nVGZoascqAAAAgElEQVQIHWNgVDJ2YICAMAb2H1BmKgPDTChzFgNDvgOEvT8AzgQKrA9gPZPYUwNk\ncXxnCGd4dWA1kMllwFDKUB9wEchUZmAIYNgMZDDwJIDIPyDiEgOjAAPLFwZWBhYFBh6BqzwfGI4y\nSJUXZXH8Zf7A+IBh////v1hzjh5/xwAAW80hUDE8HYkAAAAASUVORK5CYII=\n", |
|
89 | 91 | "metadata": {}, |
|
90 | 92 | "output_type": "execute_result", |
|
91 | "prompt_number": 7, | |
|
92 | 93 | "text/latex": [ |
|
93 | 94 | "$$2 x$$" |
|
94 | 95 | ], |
|
95 | 96 | "text/plain": [ |
|
96 | 97 | "2\u22c5x" |
|
97 | 98 | ] |
|
98 | 99 | } |
|
99 | 100 | ], |
|
100 | "prompt_number": 7, | |
|
101 | 101 | "source": [ |
|
102 | 102 | "diff(e, x)" |
|
103 | 103 | ] |
|
104 | 104 | }, |
|
105 | 105 | { |
|
106 | 106 | "cell_type": "code", |
|
107 | "execution_count": 8, | |
|
107 | 108 | "metadata": { |
|
108 | 109 | "collapsed": false |
|
109 | 110 | }, |
|
110 | 111 | "outputs": [ |
|
111 | 112 | { |
|
113 | "execution_count": 8, | |
|
112 | 114 | "image/png": "iVBORw0KGgoAAAANSUhEUgAAALsAAAAZBAMAAACbakK8AAAAMFBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAEHarIkSJZt3NVLsy\nme8Q6PJIAAADAklEQVRIDbVVS2gTURQ90/wmk0k6tCJCsR1SKShIsxE3CgNWBKUxq9qFmqFqShfF\nUKQrkaDiF0pcCKYgBBcuBLV+wIWKARe6kQ4UhNKKWdiF4KIptmA/xPvmzZuMxdYUzIPcd+655568\nvLlJAL6G32oOasQWNHz5Rvg6nrKh/mygfSzlX2ygPaBUGmov6//NXs1yq4sex2EPrsHemTd2snNg\ntkb+Cx1zBL6SqwxZLvQAKYHzKZaPY4fh4TeHd0S5Nox9OClItm/jiU9DrEwwVEawpiVis9VkimqX\nAOr4o2cCs/0BT2I5+FYJRhJbePQxgzcD7QLEqtV5gdnu2Icr3L45gcCyt74Z7neL4SLQ0nm4S+dM\nYCz1gSPHnhKZDWyHhcCCNKwjqaF/TkwGl0L6nClie/wc1D1xdoNsSLhT0IJkhi7Lzr22xb8keE/N\nPm0Sc9yEuhRUyuiG9HzvFNeImCyq39SriOhtQI7IV/TiTqE8glqwohjE0NJwiANxOZTdZoxtfzSa\nx2tI8DtHcKQoQFmV6f1XT2swibxFL+6k5EgenhBCqKLTPX3ULnaYdDlaTMcCSd8zuXTvBq2bJUJr\nlE4WgSV5ZRdBzLFgO6nzhJp1ltvrlB2HCoWxQuG+jTvt2GxBWUZaU2mMApZNuSHA3vJpCliRhqqs\nZtvbTrb9ZIk+i70Ut1OcnpgeKskTCFUwjaYy8Jhr3eiefq0HIfa7yC6HOwVyULRuNDn21JngbcL+\nE8A+MNnSxb+w59+Cj2tELJBbjEZr8SGwn0j2aLkTPdp08R2OcKV6fXB3ikPH3n8tM5WTfrETtZcw\ng3QWH0dH7nKNiMkszqo/EDafaHhJ5Bm6ee4UtdAabxnMcmUUl0SnYx+uVqs5XAGN9QGgdeCrASv0\n3TmCsJcOdhnozexD38goK9HXynEKr1OKDs9guhQD039kGySyIQpJAdbvJ9YTlPvyUl3/aLUf34G/\nuGxIyXpE37DoLbAHwJaU53t9MRCfrU8o/k4iRn36Lar8Wd5wAfgN4R6xelyy/ssAAAAASUVORK5C\nYII=\n", |
|
113 | 115 | "metadata": {}, |
|
114 | 116 | "output_type": "execute_result", |
|
115 | "prompt_number": 8, | |
|
116 | 117 | "text/latex": [ |
|
117 | 118 | "$$x^{2} z + 2.0 y z - \\cos{\\left (z \\right )}$$" |
|
118 | 119 | ], |
|
119 | 120 | "text/plain": [ |
|
120 | 121 | " 2 \n", |
|
121 | 122 | "x \u22c5z + 2.0\u22c5y\u22c5z - cos(z)" |
|
122 | 123 | ] |
|
123 | 124 | } |
|
124 | 125 | ], |
|
125 | "prompt_number": 8, | |
|
126 | 126 | "source": [ |
|
127 | 127 | "integrate(e, z)" |
|
128 | 128 | ] |
|
129 | 129 | }, |
|
130 | 130 | { |
|
131 | 131 | "cell_type": "code", |
|
132 | "execution_count": null, | |
|
132 | 133 | "metadata": { |
|
133 | 134 | "collapsed": false |
|
134 | 135 | }, |
|
135 | 136 | "outputs": [], |
|
136 | "prompt_number": null, | |
|
137 | 137 | "source": [] |
|
138 | 138 | } |
|
139 | 139 | ], |
|
140 | 140 | "metadata": {}, |
|
141 | 141 | "nbformat": 4, |
|
142 | 142 | "nbformat_minor": 0 |
|
143 | 143 | } No newline at end of file |
@@ -1,215 +1,215 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "cells": [ |
|
3 | 3 | { |
|
4 | 4 | "cell_type": "heading", |
|
5 | 5 | "level": 1, |
|
6 | 6 | "metadata": {}, |
|
7 | 7 | "source": [ |
|
8 | 8 | "NumPy and Matplotlib examples" |
|
9 | 9 | ] |
|
10 | 10 | }, |
|
11 | 11 | { |
|
12 | 12 | "cell_type": "markdown", |
|
13 | 13 | "metadata": {}, |
|
14 | 14 | "source": [ |
|
15 | 15 | "First import NumPy and Matplotlib:" |
|
16 | 16 | ] |
|
17 | 17 | }, |
|
18 | 18 | { |
|
19 | 19 | "cell_type": "code", |
|
20 | "execution_count": 1, | |
|
20 | 21 | "metadata": { |
|
21 | 22 | "collapsed": false |
|
22 | 23 | }, |
|
23 | 24 | "outputs": [ |
|
24 | 25 | { |
|
25 | 26 | "metadata": {}, |
|
26 | 27 | "name": "stdout", |
|
27 | 28 | "output_type": "stream", |
|
28 | 29 | "text": "module://IPython.kernel.zmq.pylab.backend_inline\n" |
|
29 | 30 | } |
|
30 | 31 | ], |
|
31 | "prompt_number": 1, | |
|
32 | 32 | "source": [ |
|
33 | 33 | "%matplotlib inline\n", |
|
34 | 34 | "import matplotlib\n", |
|
35 | 35 | "import matplotlib.pyplot as plt\n", |
|
36 | 36 | "print(matplotlib.backends.backend)" |
|
37 | 37 | ] |
|
38 | 38 | }, |
|
39 | 39 | { |
|
40 | 40 | "cell_type": "code", |
|
41 | "execution_count": 2, | |
|
41 | 42 | "metadata": { |
|
42 | 43 | "collapsed": false |
|
43 | 44 | }, |
|
44 | 45 | "outputs": [], |
|
45 | "prompt_number": 2, | |
|
46 | 46 | "source": [ |
|
47 | 47 | "from IPython.display import set_matplotlib_formats\n", |
|
48 | 48 | "set_matplotlib_formats('png', 'pdf')\n", |
|
49 | 49 | "matplotlib.rcParams['figure.figsize'] = (2,1)" |
|
50 | 50 | ] |
|
51 | 51 | }, |
|
52 | 52 | { |
|
53 | 53 | "cell_type": "code", |
|
54 | "execution_count": 3, | |
|
54 | 55 | "metadata": { |
|
55 | 56 | "collapsed": false |
|
56 | 57 | }, |
|
57 | 58 | "outputs": [ |
|
58 | 59 | { |
|
60 | "execution_count": 3, | |
|
59 | 61 | "metadata": {}, |
|
60 | 62 | "output_type": "execute_result", |
|
61 | "prompt_number": 3, | |
|
62 | 63 | "text/plain": [ |
|
63 | 64 | "{matplotlib.figure.Figure: <function IPython.core.pylabtools.<lambda>>}" |
|
64 | 65 | ] |
|
65 | 66 | } |
|
66 | 67 | ], |
|
67 | "prompt_number": 3, | |
|
68 | 68 | "source": [ |
|
69 | 69 | "ip.display_formatter.formatters['application/pdf'].type_printers" |
|
70 | 70 | ] |
|
71 | 71 | }, |
|
72 | 72 | { |
|
73 | 73 | "cell_type": "code", |
|
74 | "execution_count": 4, | |
|
74 | 75 | "metadata": { |
|
75 | 76 | "collapsed": false |
|
76 | 77 | }, |
|
77 | 78 | "outputs": [], |
|
78 | "prompt_number": 4, | |
|
79 | 79 | "source": [ |
|
80 | 80 | "import numpy as np" |
|
81 | 81 | ] |
|
82 | 82 | }, |
|
83 | 83 | { |
|
84 | 84 | "cell_type": "markdown", |
|
85 | 85 | "metadata": {}, |
|
86 | 86 | "source": [ |
|
87 | 87 | "Now we show some very basic examples of how they can be used." |
|
88 | 88 | ] |
|
89 | 89 | }, |
|
90 | 90 | { |
|
91 | 91 | "cell_type": "code", |
|
92 | "execution_count": 5, | |
|
92 | 93 | "metadata": { |
|
93 | 94 | "collapsed": false |
|
94 | 95 | }, |
|
95 | 96 | "outputs": [], |
|
96 | "prompt_number": 5, | |
|
97 | 97 | "source": [ |
|
98 | 98 | "a = np.random.uniform(size=(100,100))" |
|
99 | 99 | ] |
|
100 | 100 | }, |
|
101 | 101 | { |
|
102 | 102 | "cell_type": "code", |
|
103 | "execution_count": 6, | |
|
103 | 104 | "metadata": { |
|
104 | 105 | "collapsed": false |
|
105 | 106 | }, |
|
106 | 107 | "outputs": [ |
|
107 | 108 | { |
|
109 | "execution_count": 6, | |
|
108 | 110 | "metadata": {}, |
|
109 | 111 | "output_type": "execute_result", |
|
110 | "prompt_number": 6, | |
|
111 | 112 | "text/plain": [ |
|
112 | 113 | "(100, 100)" |
|
113 | 114 | ] |
|
114 | 115 | } |
|
115 | 116 | ], |
|
116 | "prompt_number": 6, | |
|
117 | 117 | "source": [ |
|
118 | 118 | "a.shape" |
|
119 | 119 | ] |
|
120 | 120 | }, |
|
121 | 121 | { |
|
122 | 122 | "cell_type": "code", |
|
123 | "execution_count": 7, | |
|
123 | 124 | "metadata": { |
|
124 | 125 | "collapsed": false |
|
125 | 126 | }, |
|
126 | 127 | "outputs": [], |
|
127 | "prompt_number": 7, | |
|
128 | 128 | "source": [ |
|
129 | 129 | "evs = np.linalg.eigvals(a)" |
|
130 | 130 | ] |
|
131 | 131 | }, |
|
132 | 132 | { |
|
133 | 133 | "cell_type": "code", |
|
134 | "execution_count": 8, | |
|
134 | 135 | "metadata": { |
|
135 | 136 | "collapsed": false |
|
136 | 137 | }, |
|
137 | 138 | "outputs": [ |
|
138 | 139 | { |
|
140 | "execution_count": 8, | |
|
139 | 141 | "metadata": {}, |
|
140 | 142 | "output_type": "execute_result", |
|
141 | "prompt_number": 8, | |
|
142 | 143 | "text/plain": [ |
|
143 | 144 | "(100,)" |
|
144 | 145 | ] |
|
145 | 146 | } |
|
146 | 147 | ], |
|
147 | "prompt_number": 8, | |
|
148 | 148 | "source": [ |
|
149 | 149 | "evs.shape" |
|
150 | 150 | ] |
|
151 | 151 | }, |
|
152 | 152 | { |
|
153 | 153 | "cell_type": "heading", |
|
154 | 154 | "level": 2, |
|
155 | 155 | "metadata": {}, |
|
156 | 156 | "source": [ |
|
157 | 157 | "Here is a very long heading that pandoc will wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap and wrap" |
|
158 | 158 | ] |
|
159 | 159 | }, |
|
160 | 160 | { |
|
161 | 161 | "cell_type": "markdown", |
|
162 | 162 | "metadata": {}, |
|
163 | 163 | "source": [ |
|
164 | 164 | "Here is a cell that has both text and PNG output:" |
|
165 | 165 | ] |
|
166 | 166 | }, |
|
167 | 167 | { |
|
168 | 168 | "cell_type": "code", |
|
169 | "execution_count": 9, | |
|
169 | 170 | "metadata": { |
|
170 | 171 | "collapsed": false |
|
171 | 172 | }, |
|
172 | 173 | "outputs": [ |
|
173 | 174 | { |
|
175 | "execution_count": 9, | |
|
174 | 176 | "metadata": {}, |
|
175 | 177 | "output_type": "execute_result", |
|
176 | "prompt_number": 9, | |
|
177 | 178 | "text/plain": [ |
|
178 | 179 | "(array([97, 2, 0, 0, 0, 0, 0, 0, 0, 1]),\n", |
|
179 | 180 | " array([ -2.59479443, 2.67371141, 7.94221725, 13.21072308,\n", |
|
180 | 181 | " 18.47922892, 23.74773476, 29.0162406 , 34.28474644,\n", |
|
181 | 182 | " 39.55325228, 44.82175812, 50.09026395]),\n", |
|
182 | 183 | " <a list of 10 Patch objects>)" |
|
183 | 184 | ] |
|
184 | 185 | }, |
|
185 | 186 | { |
|
186 | 187 | "application/pdf": "JVBERi0xLjQKJazcIKu6CjEgMCBvYmoKPDwgL1R5cGUgL0NhdGFsb2cgL1BhZ2VzIDIgMCBSID4+\nCmVuZG9iago4IDAgb2JqCjw8IC9YT2JqZWN0IDcgMCBSIC9QYXR0ZXJuIDUgMCBSCi9Qcm9jU2V0\nIFsgL1BERiAvVGV4dCAvSW1hZ2VCIC9JbWFnZUMgL0ltYWdlSSBdIC9FeHRHU3RhdGUgNCAwIFIK\nL1NoYWRpbmcgNiAwIFIgL0ZvbnQgMyAwIFIgPj4KZW5kb2JqCjEwIDAgb2JqCjw8IC9Hcm91cCA8\nPCAvQ1MgL0RldmljZVJHQiAvUyAvVHJhbnNwYXJlbmN5IC9UeXBlIC9Hcm91cCA+PiAvUGFyZW50\nIDIgMCBSCi9NZWRpYUJveCBbIDAgMCAxNTIuMzk4NDM3NSA4Ny4xOTIxODc1IF0gL1Jlc291cmNl\ncyA4IDAgUiA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|
|
188 | 189 | "metadata": {}, |
|
189 | 190 | "output_type": "display_data", |
|
190 | 191 | "text/plain": [ |
|
191 | 192 | "<matplotlib.figure.Figure at 0x10b0ecf10>" |
|
192 | 193 | ] |
|
193 | 194 | } |
|
194 | 195 | ], |
|
195 | "prompt_number": 9, | |
|
196 | 196 | "source": [ |
|
197 | 197 | "plt.hist(evs.real)" |
|
198 | 198 | ] |
|
199 | 199 | }, |
|
200 | 200 | { |
|
201 | 201 | "cell_type": "markdown", |
|
202 | 202 | "metadata": {}, |
|
203 | 203 | "source": [ |
|
204 | 204 | "```python\n", |
|
205 | 205 | "def foo(bar=1):\n", |
|
206 | 206 | " \"\"\"docstring\"\"\"\n", |
|
207 | 207 | " raise Exception(\"message\")\n", |
|
208 | 208 | "```" |
|
209 | 209 | ] |
|
210 | 210 | } |
|
211 | 211 | ], |
|
212 | 212 | "metadata": {}, |
|
213 | 213 | "nbformat": 4, |
|
214 | 214 | "nbformat_minor": 0 |
|
215 | 215 | } No newline at end of file |
@@ -1,310 +1,310 b'' | |||
|
1 | 1 | """Functions for signing notebooks""" |
|
2 | 2 | |
|
3 | 3 | # Copyright (c) IPython Development Team. |
|
4 | 4 | # Distributed under the terms of the Modified BSD License. |
|
5 | 5 | |
|
6 | 6 | import base64 |
|
7 | 7 | from contextlib import contextmanager |
|
8 | 8 | import hashlib |
|
9 | 9 | from hmac import HMAC |
|
10 | 10 | import io |
|
11 | 11 | import os |
|
12 | 12 | |
|
13 | 13 | from IPython.utils.py3compat import string_types, unicode_type, cast_bytes |
|
14 | 14 | from IPython.utils.traitlets import Instance, Bytes, Enum, Any, Unicode, Bool |
|
15 | 15 | from IPython.config import LoggingConfigurable, MultipleInstanceError |
|
16 | 16 | from IPython.core.application import BaseIPythonApplication, base_flags |
|
17 | 17 | |
|
18 | 18 | from .current import read, write |
|
19 | 19 | |
|
20 | 20 | try: |
|
21 | 21 | # Python 3 |
|
22 | 22 | algorithms = hashlib.algorithms_guaranteed |
|
23 | 23 | except AttributeError: |
|
24 | 24 | algorithms = hashlib.algorithms |
|
25 | 25 | |
|
26 | 26 | |
|
27 | 27 | def yield_everything(obj): |
|
28 | 28 | """Yield every item in a container as bytes |
|
29 | 29 | |
|
30 | 30 | Allows any JSONable object to be passed to an HMAC digester |
|
31 | 31 | without having to serialize the whole thing. |
|
32 | 32 | """ |
|
33 | 33 | if isinstance(obj, dict): |
|
34 | 34 | for key in sorted(obj): |
|
35 | 35 | value = obj[key] |
|
36 | 36 | yield cast_bytes(key) |
|
37 | 37 | for b in yield_everything(value): |
|
38 | 38 | yield b |
|
39 | 39 | elif isinstance(obj, (list, tuple)): |
|
40 | 40 | for element in obj: |
|
41 | 41 | for b in yield_everything(element): |
|
42 | 42 | yield b |
|
43 | 43 | elif isinstance(obj, unicode_type): |
|
44 | 44 | yield obj.encode('utf8') |
|
45 | 45 | else: |
|
46 | 46 | yield unicode_type(obj).encode('utf8') |
|
47 | 47 | |
|
48 | 48 | |
|
49 | 49 | @contextmanager |
|
50 | 50 | def signature_removed(nb): |
|
51 | 51 | """Context manager for operating on a notebook with its signature removed |
|
52 | 52 | |
|
53 | 53 | Used for excluding the previous signature when computing a notebook's signature. |
|
54 | 54 | """ |
|
55 | 55 | save_signature = nb['metadata'].pop('signature', None) |
|
56 | 56 | try: |
|
57 | 57 | yield |
|
58 | 58 | finally: |
|
59 | 59 | if save_signature is not None: |
|
60 | 60 | nb['metadata']['signature'] = save_signature |
|
61 | 61 | |
|
62 | 62 | |
|
63 | 63 | class NotebookNotary(LoggingConfigurable): |
|
64 | 64 | """A class for computing and verifying notebook signatures.""" |
|
65 | 65 | |
|
66 | 66 | profile_dir = Instance("IPython.core.profiledir.ProfileDir") |
|
67 | 67 | def _profile_dir_default(self): |
|
68 | 68 | from IPython.core.application import BaseIPythonApplication |
|
69 | 69 | app = None |
|
70 | 70 | try: |
|
71 | 71 | if BaseIPythonApplication.initialized(): |
|
72 | 72 | app = BaseIPythonApplication.instance() |
|
73 | 73 | except MultipleInstanceError: |
|
74 | 74 | pass |
|
75 | 75 | if app is None: |
|
76 | 76 | # create an app, without the global instance |
|
77 | 77 | app = BaseIPythonApplication() |
|
78 | 78 | app.initialize(argv=[]) |
|
79 | 79 | return app.profile_dir |
|
80 | 80 | |
|
81 | 81 | algorithm = Enum(algorithms, default_value='sha256', config=True, |
|
82 | 82 | help="""The hashing algorithm used to sign notebooks.""" |
|
83 | 83 | ) |
|
84 | 84 | def _algorithm_changed(self, name, old, new): |
|
85 | 85 | self.digestmod = getattr(hashlib, self.algorithm) |
|
86 | 86 | |
|
87 | 87 | digestmod = Any() |
|
88 | 88 | def _digestmod_default(self): |
|
89 | 89 | return getattr(hashlib, self.algorithm) |
|
90 | 90 | |
|
91 | 91 | secret_file = Unicode(config=True, |
|
92 | 92 | help="""The file where the secret key is stored.""" |
|
93 | 93 | ) |
|
94 | 94 | def _secret_file_default(self): |
|
95 | 95 | if self.profile_dir is None: |
|
96 | 96 | return '' |
|
97 | 97 | return os.path.join(self.profile_dir.security_dir, 'notebook_secret') |
|
98 | 98 | |
|
99 | 99 | secret = Bytes(config=True, |
|
100 | 100 | help="""The secret key with which notebooks are signed.""" |
|
101 | 101 | ) |
|
102 | 102 | def _secret_default(self): |
|
103 | 103 | # note : this assumes an Application is running |
|
104 | 104 | if os.path.exists(self.secret_file): |
|
105 | 105 | with io.open(self.secret_file, 'rb') as f: |
|
106 | 106 | return f.read() |
|
107 | 107 | else: |
|
108 | 108 | secret = base64.encodestring(os.urandom(1024)) |
|
109 | 109 | self._write_secret_file(secret) |
|
110 | 110 | return secret |
|
111 | 111 | |
|
112 | 112 | def _write_secret_file(self, secret): |
|
113 | 113 | """write my secret to my secret_file""" |
|
114 | 114 | self.log.info("Writing notebook-signing key to %s", self.secret_file) |
|
115 | 115 | with io.open(self.secret_file, 'wb') as f: |
|
116 | 116 | f.write(secret) |
|
117 | 117 | try: |
|
118 | 118 | os.chmod(self.secret_file, 0o600) |
|
119 | 119 | except OSError: |
|
120 | 120 | self.log.warn( |
|
121 | 121 | "Could not set permissions on %s", |
|
122 | 122 | self.secret_file |
|
123 | 123 | ) |
|
124 | 124 | return secret |
|
125 | 125 | |
|
126 | 126 | def compute_signature(self, nb): |
|
127 | 127 | """Compute a notebook's signature |
|
128 | 128 | |
|
129 | 129 | by hashing the entire contents of the notebook via HMAC digest. |
|
130 | 130 | """ |
|
131 | 131 | hmac = HMAC(self.secret, digestmod=self.digestmod) |
|
132 | 132 | # don't include the previous hash in the content to hash |
|
133 | 133 | with signature_removed(nb): |
|
134 | 134 | # sign the whole thing |
|
135 | 135 | for b in yield_everything(nb): |
|
136 | 136 | hmac.update(b) |
|
137 | 137 | |
|
138 | 138 | return hmac.hexdigest() |
|
139 | 139 | |
|
140 | 140 | def check_signature(self, nb): |
|
141 | 141 | """Check a notebook's stored signature |
|
142 | 142 | |
|
143 | 143 | If a signature is stored in the notebook's metadata, |
|
144 | 144 | a new signature is computed and compared with the stored value. |
|
145 | 145 | |
|
146 | 146 | Returns True if the signature is found and matches, False otherwise. |
|
147 | 147 | |
|
148 | 148 | The following conditions must all be met for a notebook to be trusted: |
|
149 | 149 | - a signature is stored in the form 'scheme:hexdigest' |
|
150 | 150 | - the stored scheme matches the requested scheme |
|
151 | 151 | - the requested scheme is available from hashlib |
|
152 | 152 | - the computed hash from notebook_signature matches the stored hash |
|
153 | 153 | """ |
|
154 | 154 | stored_signature = nb['metadata'].get('signature', None) |
|
155 | 155 | if not stored_signature \ |
|
156 | 156 | or not isinstance(stored_signature, string_types) \ |
|
157 | 157 | or ':' not in stored_signature: |
|
158 | 158 | return False |
|
159 | 159 | stored_algo, sig = stored_signature.split(':', 1) |
|
160 | 160 | if self.algorithm != stored_algo: |
|
161 | 161 | return False |
|
162 | 162 | my_signature = self.compute_signature(nb) |
|
163 | 163 | return my_signature == sig |
|
164 | 164 | |
|
165 | 165 | def sign(self, nb): |
|
166 | 166 | """Sign a notebook, indicating that its output is trusted |
|
167 | 167 | |
|
168 | 168 | stores 'algo:hmac-hexdigest' in notebook.metadata.signature |
|
169 | 169 | |
|
170 | 170 | e.g. 'sha256:deadbeef123...' |
|
171 | 171 | """ |
|
172 | 172 | signature = self.compute_signature(nb) |
|
173 | 173 | nb['metadata']['signature'] = "%s:%s" % (self.algorithm, signature) |
|
174 | 174 | |
|
175 | 175 | def mark_cells(self, nb, trusted): |
|
176 | 176 | """Mark cells as trusted if the notebook's signature can be verified |
|
177 | 177 | |
|
178 | 178 | Sets ``cell.metadata.trusted = True | False`` on all code cells, |
|
179 | 179 | depending on whether the stored signature can be verified. |
|
180 | 180 | |
|
181 | 181 | This function is the inverse of check_cells |
|
182 | 182 | """ |
|
183 | 183 | if not nb['cells']: |
|
184 | 184 | # nothing to mark if there are no cells |
|
185 | 185 | return |
|
186 | 186 | for cell in nb['cells']: |
|
187 | 187 | if cell['cell_type'] == 'code': |
|
188 | 188 | cell['metadata']['trusted'] = trusted |
|
189 | 189 | |
|
190 | 190 | def _check_cell(self, cell): |
|
191 | 191 | """Do we trust an individual cell? |
|
192 | 192 | |
|
193 | 193 | Return True if: |
|
194 | 194 | |
|
195 | 195 | - cell is explicitly trusted |
|
196 | 196 | - cell has no potentially unsafe rich output |
|
197 | 197 | |
|
198 | 198 | If a cell has no output, or only simple print statements, |
|
199 | 199 | it will always be trusted. |
|
200 | 200 | """ |
|
201 | 201 | # explicitly trusted |
|
202 | 202 | if cell['metadata'].pop("trusted", False): |
|
203 | 203 | return True |
|
204 | 204 | |
|
205 | 205 | # explicitly safe output |
|
206 | 206 | safe = { |
|
207 | 207 | 'text/plain', 'image/png', 'image/jpeg', |
|
208 | 208 | } |
|
209 | 209 | |
|
210 | 210 | for output in cell['outputs']: |
|
211 | 211 | output_type = output['output_type'] |
|
212 | 212 | if output_type in {'execute_result', 'display_data'}: |
|
213 | 213 | # if there are any data keys not in the safe whitelist |
|
214 |
output_keys = set(output).difference({"output_type", " |
|
|
214 | output_keys = set(output).difference({"output_type", "execution_count", "metadata"}) | |
|
215 | 215 | if output_keys.difference(safe): |
|
216 | 216 | return False |
|
217 | 217 | |
|
218 | 218 | return True |
|
219 | 219 | |
|
220 | 220 | def check_cells(self, nb): |
|
221 | 221 | """Return whether all code cells are trusted |
|
222 | 222 | |
|
223 | 223 | If there are no code cells, return True. |
|
224 | 224 | |
|
225 | 225 | This function is the inverse of mark_cells. |
|
226 | 226 | """ |
|
227 | 227 | if not nb['cells']: |
|
228 | 228 | return True |
|
229 | 229 | trusted = True |
|
230 | 230 | for cell in nb['cells']: |
|
231 | 231 | if cell['cell_type'] != 'code': |
|
232 | 232 | continue |
|
233 | 233 | # only distrust a cell if it actually has some output to distrust |
|
234 | 234 | if not self._check_cell(cell): |
|
235 | 235 | trusted = False |
|
236 | 236 | |
|
237 | 237 | return trusted |
|
238 | 238 | |
|
239 | 239 | |
|
240 | 240 | trust_flags = { |
|
241 | 241 | 'reset' : ( |
|
242 | 242 | {'TrustNotebookApp' : { 'reset' : True}}, |
|
243 | 243 | """Generate a new key for notebook signature. |
|
244 | 244 | All previously signed notebooks will become untrusted. |
|
245 | 245 | """ |
|
246 | 246 | ), |
|
247 | 247 | } |
|
248 | 248 | trust_flags.update(base_flags) |
|
249 | 249 | trust_flags.pop('init') |
|
250 | 250 | |
|
251 | 251 | |
|
252 | 252 | class TrustNotebookApp(BaseIPythonApplication): |
|
253 | 253 | |
|
254 | 254 | description="""Sign one or more IPython notebooks with your key, |
|
255 | 255 | to trust their dynamic (HTML, Javascript) output. |
|
256 | 256 | |
|
257 | 257 | Trusting a notebook only applies to the current IPython profile. |
|
258 | 258 | To trust a notebook for use with a profile other than default, |
|
259 | 259 | add `--profile [profile name]`. |
|
260 | 260 | |
|
261 | 261 | Otherwise, you will have to re-execute the notebook to see output. |
|
262 | 262 | """ |
|
263 | 263 | |
|
264 | 264 | examples = """ |
|
265 | 265 | ipython trust mynotebook.ipynb and_this_one.ipynb |
|
266 | 266 | ipython trust --profile myprofile mynotebook.ipynb |
|
267 | 267 | """ |
|
268 | 268 | |
|
269 | 269 | flags = trust_flags |
|
270 | 270 | |
|
271 | 271 | reset = Bool(False, config=True, |
|
272 | 272 | help="""If True, generate a new key for notebook signature. |
|
273 | 273 | After reset, all previously signed notebooks will become untrusted. |
|
274 | 274 | """ |
|
275 | 275 | ) |
|
276 | 276 | |
|
277 | 277 | notary = Instance(NotebookNotary) |
|
278 | 278 | def _notary_default(self): |
|
279 | 279 | return NotebookNotary(parent=self, profile_dir=self.profile_dir) |
|
280 | 280 | |
|
281 | 281 | def sign_notebook(self, notebook_path): |
|
282 | 282 | if not os.path.exists(notebook_path): |
|
283 | 283 | self.log.error("Notebook missing: %s" % notebook_path) |
|
284 | 284 | self.exit(1) |
|
285 | 285 | with io.open(notebook_path, encoding='utf8') as f: |
|
286 | 286 | nb = read(f, 'json') |
|
287 | 287 | if self.notary.check_signature(nb): |
|
288 | 288 | print("Notebook already signed: %s" % notebook_path) |
|
289 | 289 | else: |
|
290 | 290 | print("Signing notebook: %s" % notebook_path) |
|
291 | 291 | self.notary.sign(nb) |
|
292 | 292 | with io.open(notebook_path, 'w', encoding='utf8') as f: |
|
293 | 293 | write(nb, f, 'json') |
|
294 | 294 | |
|
295 | 295 | def generate_new_key(self): |
|
296 | 296 | """Generate a new notebook signature key""" |
|
297 | 297 | print("Generating new notebook key: %s" % self.notary.secret_file) |
|
298 | 298 | self.notary._write_secret_file(os.urandom(1024)) |
|
299 | 299 | |
|
300 | 300 | def start(self): |
|
301 | 301 | if self.reset: |
|
302 | 302 | self.generate_new_key() |
|
303 | 303 | return |
|
304 | 304 | if not self.extra_args: |
|
305 | 305 | self.log.critical("Specify at least one notebook to sign.") |
|
306 | 306 | self.exit(1) |
|
307 | 307 | |
|
308 | 308 | for notebook_path in self.extra_args: |
|
309 | 309 | self.sign_notebook(notebook_path) |
|
310 | 310 |
@@ -1,155 +1,155 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "metadata": { |
|
3 | 3 | "cell_tags": ["<None>", null], |
|
4 | 4 | "name": "", |
|
5 | 5 | "kernel_info": { |
|
6 | 6 | "name": "python", |
|
7 | 7 | "language": "python" |
|
8 | 8 | } |
|
9 | 9 | }, |
|
10 | 10 | "nbformat": 4, |
|
11 | 11 | "nbformat_minor": 0, |
|
12 | 12 | "cells": [ |
|
13 | 13 | { |
|
14 | 14 | "cell_type": "heading", |
|
15 | 15 | "level": 1, |
|
16 | 16 | "metadata": {}, |
|
17 | 17 | "source": [ |
|
18 | 18 | "nbconvert latex test" |
|
19 | 19 | ] |
|
20 | 20 | }, |
|
21 | 21 | { |
|
22 | 22 | "cell_type": "markdown", |
|
23 | 23 | "metadata": {}, |
|
24 | 24 | "source": [ |
|
25 | 25 | "**Lorem ipsum** dolor sit amet, consectetur adipiscing elit. Nunc luctus bibendum felis dictum sodales. Ut suscipit, orci ut interdum imperdiet, purus ligula mollis *justo*, non malesuada nisl augue eget lorem. Donec bibendum, erat sit amet porttitor aliquam, urna lorem ornare libero, in vehicula diam diam ut ante. Nam non urna rhoncus, accumsan elit sit amet, mollis tellus. Vestibulum nec tellus metus. Vestibulum tempor, ligula et vehicula rhoncus, sapien turpis faucibus lorem, id dapibus turpis mauris ac orci. Sed volutpat vestibulum venenatis." |
|
26 | 26 | ] |
|
27 | 27 | }, |
|
28 | 28 | { |
|
29 | 29 | "cell_type": "heading", |
|
30 | 30 | "level": 2, |
|
31 | 31 | "metadata": {}, |
|
32 | 32 | "source": [ |
|
33 | 33 | "Printed Using Python" |
|
34 | 34 | ] |
|
35 | 35 | }, |
|
36 | 36 | { |
|
37 | 37 | "cell_type": "code", |
|
38 | 38 | "source": [ |
|
39 | 39 | "print(\"hello\")" |
|
40 | 40 | ], |
|
41 | 41 | "metadata": { |
|
42 | 42 | "collapsed": false, |
|
43 | 43 | "autoscroll": false |
|
44 | 44 | }, |
|
45 | 45 | "outputs": [ |
|
46 | 46 | { |
|
47 | 47 | "output_type": "stream", |
|
48 | 48 | "metadata": {}, |
|
49 | 49 | "name": "stdout", |
|
50 | 50 | "text": [ |
|
51 | 51 | "hello\n" |
|
52 | 52 | ] |
|
53 | 53 | } |
|
54 | 54 | ], |
|
55 |
" |
|
|
55 | "execution_count": 1 | |
|
56 | 56 | }, |
|
57 | 57 | { |
|
58 | 58 | "cell_type": "heading", |
|
59 | 59 | "level": 2, |
|
60 | 60 | "metadata": {}, |
|
61 | 61 | "source": [ |
|
62 | 62 | "Pyout" |
|
63 | 63 | ] |
|
64 | 64 | }, |
|
65 | 65 | { |
|
66 | 66 | "cell_type": "code", |
|
67 | 67 | "source": [ |
|
68 | 68 | "from IPython.display import HTML\n", |
|
69 | 69 | "HTML(\"\"\"\n", |
|
70 | 70 | "<script>\n", |
|
71 | 71 | "console.log(\"hello\");\n", |
|
72 | 72 | "</script>\n", |
|
73 | 73 | "<b>HTML</b>\n", |
|
74 | 74 | "\"\"\")" |
|
75 | 75 | ], |
|
76 | 76 | "metadata": { |
|
77 | 77 | "collapsed": false, |
|
78 | 78 | "autoscroll": false |
|
79 | 79 | }, |
|
80 | 80 | "outputs": [ |
|
81 | 81 | { |
|
82 | 82 | "text/html": [ |
|
83 | 83 | "\n", |
|
84 | 84 | "<script>\n", |
|
85 | 85 | "console.log(\"hello\");\n", |
|
86 | 86 | "</script>\n", |
|
87 | 87 | "<b>HTML</b>\n" |
|
88 | 88 | ], |
|
89 | 89 | "metadata": {}, |
|
90 | 90 | "output_type": "execute_result", |
|
91 |
" |
|
|
91 | "execution_count": 3, | |
|
92 | 92 | "text/plain": [ |
|
93 | 93 | "<IPython.core.display.HTML at 0x1112757d0>" |
|
94 | 94 | ] |
|
95 | 95 | } |
|
96 | 96 | ], |
|
97 |
" |
|
|
97 | "execution_count": 3 | |
|
98 | 98 | }, |
|
99 | 99 | { |
|
100 | 100 | "cell_type": "code", |
|
101 | 101 | "source": [ |
|
102 | 102 | "%%javascript\n", |
|
103 | 103 | "console.log(\"hi\");" |
|
104 | 104 | ], |
|
105 | 105 | "metadata": { |
|
106 | 106 | "collapsed": false, |
|
107 | 107 | "autoscroll": false |
|
108 | 108 | }, |
|
109 | 109 | "outputs": [ |
|
110 | 110 | { |
|
111 | 111 | "text/javascript": [ |
|
112 | 112 | "console.log(\"hi\");" |
|
113 | 113 | ], |
|
114 | 114 | "metadata": {}, |
|
115 | 115 | "output_type": "display_data", |
|
116 | 116 | "text/plain": [ |
|
117 | 117 | "<IPython.core.display.Javascript at 0x1112b4b50>" |
|
118 | 118 | ] |
|
119 | 119 | } |
|
120 | 120 | ], |
|
121 |
" |
|
|
121 | "execution_count": 7 | |
|
122 | 122 | }, |
|
123 | 123 | { |
|
124 | 124 | "cell_type": "heading", |
|
125 | 125 | "level": 3, |
|
126 | 126 | "metadata": {}, |
|
127 | 127 | "source": [ |
|
128 | 128 | "Image" |
|
129 | 129 | ] |
|
130 | 130 | }, |
|
131 | 131 | { |
|
132 | 132 | "cell_type": "code", |
|
133 | 133 | "source": [ |
|
134 | 134 | "from IPython.display import Image\n", |
|
135 | 135 | "Image(\"http://ipython.org/_static/IPy_header.png\")" |
|
136 | 136 | ], |
|
137 | 137 | "metadata": { |
|
138 | 138 | "collapsed": false, |
|
139 | 139 | "autoscroll": false |
|
140 | 140 | }, |
|
141 | 141 | "outputs": [ |
|
142 | 142 | { |
|
143 | 143 | "metadata": {}, |
|
144 | 144 | "output_type": "execute_result", |
|
145 | 145 | "image/png": "iVBORw0KGgoAAAANSUhEUgAAAggAAABDCAYAAAD5/P3lAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAH3AAAB9wBYvxo6AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURB\nVHic7Z15uBxF1bjfugkJhCWBsCSAJGACNg4QCI3RT1lEAVE+UEBNOmwCDcjHT1wQgU+WD3dFxA1o\nCAikAZFFVlnCjizpsCUjHQjBIAkQlpCFJGS79fvjdGf69vTsc2fuza33eeaZmeqq6jM9vZw6dc4p\nBUwC+tE+fqW1fqmRDpRSHjCggS40sBxYDCxKvL8KzNBaL21EPoPB0DPIWVY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DzHt10/jzhXjkGO\nyzNIZEiRD00ga3ocaLv+kUh2xo8hSuVURKmIUyiXVGYCWVzKQlJD7xrJNg85b9LX8RLgF6X6SpFU\n9Cpe28gaJgORqEEAbNffDLlvHIQoAndR8NEYilwjExD/nwuUiTQ0GAwGw7qC7fqjEUvKqsBzmhWd\nt05gu/5pyNoifw48J9N5PForxQeeNFMMBoPBYDD0DWL/llvK1In9jt4zCoLBYDAYDH2DePo5MwrJ\ndv0hFPwTnjBRDAaDwWAw9A3+hPgOHRPl25iK+FhsiuR4OARx0Lwf+J1REAwGg8Fg6AMEnvNklL78\nHMRRca/E5hVINNIVwI2B56z6/3ExLRI31pXNAAAAAElFTkSuQmCC\n", |
|
146 |
" |
|
|
146 | "execution_count": 6, | |
|
147 | 147 | "text/plain": [ |
|
148 | 148 | "<IPython.core.display.Image at 0x111275490>" |
|
149 | 149 | ] |
|
150 | 150 | } |
|
151 | 151 | ], |
|
152 |
" |
|
|
152 | "execution_count": 6 | |
|
153 | 153 | } |
|
154 | 154 | ] |
|
155 | 155 | } |
@@ -1,209 +1,221 b'' | |||
|
1 | 1 | """Code for converting notebooks to and from v3.""" |
|
2 | 2 | |
|
3 | 3 | # Copyright (c) IPython Development Team. |
|
4 | 4 | # Distributed under the terms of the Modified BSD License. |
|
5 | 5 | |
|
6 | 6 | import json |
|
7 | 7 | |
|
8 | 8 | from .nbbase import ( |
|
9 | 9 | nbformat, nbformat_minor, |
|
10 | 10 | NotebookNode, |
|
11 | 11 | ) |
|
12 | 12 | |
|
13 | 13 | from IPython.nbformat import v3 |
|
14 | 14 | from IPython.utils.log import get_logger |
|
15 | 15 | |
|
16 | 16 | |
|
17 | 17 | def upgrade(nb, from_version=3, from_minor=0): |
|
18 | 18 | """Convert a notebook to v4. |
|
19 | 19 | |
|
20 | 20 | Parameters |
|
21 | 21 | ---------- |
|
22 | 22 | nb : NotebookNode |
|
23 | 23 | The Python representation of the notebook to convert. |
|
24 | 24 | from_version : int |
|
25 | 25 | The original version of the notebook to convert. |
|
26 | 26 | from_minor : int |
|
27 | 27 | The original minor version of the notebook to convert (only relevant for v >= 3). |
|
28 | 28 | """ |
|
29 | 29 | from IPython.nbformat.current import validate, ValidationError |
|
30 | 30 | if from_version == 3: |
|
31 | 31 | # Validate the notebook before conversion |
|
32 | 32 | try: |
|
33 | 33 | validate(nb, version=from_version) |
|
34 | 34 | except ValidationError as e: |
|
35 | 35 | get_logger().error("Notebook JSON is not valid v%i: %s", from_version, e) |
|
36 | 36 | |
|
37 | 37 | # Mark the original nbformat so consumers know it has been converted |
|
38 | 38 | orig_nbformat = nb.pop('orig_nbformat', None) |
|
39 | 39 | nb.metadata.orig_nbformat = orig_nbformat or 3 |
|
40 | 40 | |
|
41 | 41 | # Mark the new format |
|
42 | 42 | nb.nbformat = nbformat |
|
43 | 43 | nb.nbformat_minor = nbformat_minor |
|
44 | 44 | |
|
45 | 45 | # remove worksheet(s) |
|
46 | 46 | nb['cells'] = cells = [] |
|
47 | 47 | # In the unlikely event of multiple worksheets, |
|
48 | 48 | # they will be flattened |
|
49 | 49 | for ws in nb.pop('worksheets', []): |
|
50 | 50 | # upgrade each cell |
|
51 | 51 | for cell in ws['cells']: |
|
52 | 52 | cells.append(upgrade_cell(cell)) |
|
53 | 53 | # upgrade metadata |
|
54 | 54 | nb.metadata.pop('name', '') |
|
55 | 55 | # Validate the converted notebook before returning it |
|
56 | 56 | try: |
|
57 | 57 | validate(nb, version=nbformat) |
|
58 | 58 | except ValidationError as e: |
|
59 | 59 | get_logger().error("Notebook JSON is not valid v%i: %s", nbformat, e) |
|
60 | 60 | return nb |
|
61 | 61 | elif from_version == 4: |
|
62 | 62 | # nothing to do |
|
63 | 63 | if from_minor != nbformat_minor: |
|
64 | 64 | nb.metadata.orig_nbformat_minor = from_minor |
|
65 | 65 | nb.nbformat_minor = nbformat_minor |
|
66 | 66 | |
|
67 | 67 | return nb |
|
68 | 68 | else: |
|
69 | 69 | raise ValueError('Cannot convert a notebook directly from v%s to v4. ' \ |
|
70 | 70 | 'Try using the IPython.nbformat.convert module.' % from_version) |
|
71 | 71 | |
|
72 | 72 | def upgrade_cell(cell): |
|
73 | 73 | """upgrade a cell from v3 to v4 |
|
74 | 74 | |
|
75 | 75 | code cell: |
|
76 | 76 | - remove language metadata |
|
77 | 77 | - cell.input -> cell.source |
|
78 | - cell.prompt_number -> cell.execution_count | |
|
78 | 79 | - update outputs |
|
79 | 80 | """ |
|
80 | 81 | cell.setdefault('metadata', NotebookNode()) |
|
81 | 82 | if cell.cell_type == 'code': |
|
82 | 83 | cell.pop('language', '') |
|
83 | 84 | cell.metadata.collapsed = cell.pop('collapsed') |
|
84 | 85 | cell.source = cell.pop('input') |
|
85 |
cell. |
|
|
86 | cell.execution_count = cell.pop('prompt_number', None) | |
|
86 | 87 | cell.outputs = upgrade_outputs(cell.outputs) |
|
87 | 88 | elif cell.cell_type == 'html': |
|
88 | 89 | # Technically, this exists. It will never happen in practice. |
|
89 | 90 | cell.cell_type = 'markdown' |
|
90 | 91 | return cell |
|
91 | 92 | |
|
92 | 93 | def downgrade_cell(cell): |
|
94 | """downgrade a cell from v4 to v3 | |
|
95 | ||
|
96 | code cell: | |
|
97 | - set cell.language | |
|
98 | - cell.input <- cell.source | |
|
99 | - cell.prompt_number <- cell.execution_count | |
|
100 | - update outputs | |
|
101 | """ | |
|
93 | 102 | if cell.cell_type == 'code': |
|
94 | 103 | cell.language = 'python' |
|
95 | 104 | cell.input = cell.pop('source', '') |
|
105 | cell.prompt_number = cell.pop('execution_count', None) | |
|
96 | 106 | cell.collapsed = cell.metadata.pop('collapsed', False) |
|
97 | 107 | cell.outputs = downgrade_outputs(cell.outputs) |
|
98 | 108 | return cell |
|
99 | 109 | |
|
100 | 110 | _mime_map = { |
|
101 | 111 | "text" : "text/plain", |
|
102 | 112 | "html" : "text/html", |
|
103 | 113 | "svg" : "image/svg+xml", |
|
104 | 114 | "png" : "image/png", |
|
105 | 115 | "jpeg" : "image/jpeg", |
|
106 | 116 | "latex" : "text/latex", |
|
107 | 117 | "json" : "application/json", |
|
108 | 118 | "javascript" : "application/javascript", |
|
109 | 119 | }; |
|
110 | 120 | |
|
111 | 121 | def to_mime_key(d): |
|
112 | 122 | """convert dict with v3 aliases to plain mime-type keys""" |
|
113 | 123 | for alias, mime in _mime_map.items(): |
|
114 | 124 | if alias in d: |
|
115 | 125 | d[mime] = d.pop(alias) |
|
116 | 126 | return d |
|
117 | 127 | |
|
118 | 128 | def from_mime_key(d): |
|
119 | 129 | """convert dict with mime-type keys to v3 aliases""" |
|
120 | 130 | for alias, mime in _mime_map.items(): |
|
121 | 131 | if mime in d: |
|
122 | 132 | d[alias] = d.pop(mime) |
|
123 | 133 | return d |
|
124 | 134 | |
|
125 | 135 | def upgrade_output(output): |
|
126 | 136 | """upgrade a single code cell output from v3 to v4 |
|
127 | 137 | |
|
128 | 138 | - pyout -> execute_result |
|
129 | 139 | - pyerr -> error |
|
130 | 140 | - mime-type keys |
|
131 | 141 | - stream.stream -> stream.name |
|
132 | 142 | """ |
|
133 | 143 | output.setdefault('metadata', NotebookNode()) |
|
134 | 144 | if output['output_type'] in {'pyout', 'display_data'}: |
|
135 | 145 | if output['output_type'] == 'pyout': |
|
136 | 146 | output['output_type'] = 'execute_result' |
|
147 | output['execution_count'] = output.pop('prompt_number', None) | |
|
137 | 148 | to_mime_key(output) |
|
138 | 149 | to_mime_key(output.metadata) |
|
139 | 150 | if 'application/json' in output: |
|
140 | 151 | output['application/json'] = json.loads(output['application/json']) |
|
141 | 152 | # promote ascii bytes (from v2) to unicode |
|
142 | 153 | for key in ('image/png', 'image/jpeg'): |
|
143 | 154 | if key in output and isinstance(output[key], bytes): |
|
144 | 155 | output[key] = output[key].decode('ascii') |
|
145 | 156 | elif output['output_type'] == 'pyerr': |
|
146 | 157 | output['output_type'] = 'error' |
|
147 | 158 | elif output['output_type'] == 'stream': |
|
148 | 159 | output['name'] = output.pop('stream') |
|
149 | 160 | return output |
|
150 | 161 | |
|
151 | 162 | def downgrade_output(output): |
|
152 | 163 | """downgrade a single code cell output to v3 from v4 |
|
153 | 164 | |
|
154 | 165 | - pyout <- execute_result |
|
155 | 166 | - pyerr <- error |
|
156 | 167 | - un-mime-type keys |
|
157 | 168 | - stream.stream <- stream.name |
|
158 | 169 | """ |
|
159 | 170 | if output['output_type'] == 'execute_result': |
|
160 | 171 | output['output_type'] = 'pyout' |
|
172 | output['prompt_number'] = output.pop('execution_count', None) | |
|
161 | 173 | if 'application/json' in output: |
|
162 | 174 | output['application/json'] = json.dumps(output['application/json']) |
|
163 | 175 | from_mime_key(output) |
|
164 | 176 | from_mime_key(output.get('metadata', {})) |
|
165 | 177 | elif output['output_type'] == 'error': |
|
166 | 178 | output['output_type'] = 'pyerr' |
|
167 | 179 | elif output['output_type'] == 'display_data': |
|
168 | 180 | if 'application/json' in output: |
|
169 | 181 | output['application/json'] = json.dumps(output['application/json']) |
|
170 | 182 | from_mime_key(output) |
|
171 | 183 | from_mime_key(output.get('metadata', {})) |
|
172 | 184 | elif output['output_type'] == 'stream': |
|
173 | 185 | output['stream'] = output.pop('name') |
|
174 | 186 | output.pop('metadata') |
|
175 | 187 | return output |
|
176 | 188 | |
|
177 | 189 | def upgrade_outputs(outputs): |
|
178 | 190 | """upgrade outputs of a code cell from v3 to v4""" |
|
179 | 191 | return [upgrade_output(op) for op in outputs] |
|
180 | 192 | |
|
181 | 193 | def downgrade_outputs(outputs): |
|
182 | 194 | """downgrade outputs of a code cell to v3 from v4""" |
|
183 | 195 | return [downgrade_output(op) for op in outputs] |
|
184 | 196 | |
|
185 | 197 | def downgrade(nb): |
|
186 | 198 | """Convert a v4 notebook to v3. |
|
187 | 199 | |
|
188 | 200 | Parameters |
|
189 | 201 | ---------- |
|
190 | 202 | nb : NotebookNode |
|
191 | 203 | The Python representation of the notebook to convert. |
|
192 | 204 | """ |
|
193 | 205 | from IPython.nbformat.current import validate |
|
194 | 206 | # Validate the notebook before conversion |
|
195 | 207 | validate(nb, version=nbformat) |
|
196 | 208 | |
|
197 | 209 | if nb.nbformat != 4: |
|
198 | 210 | return nb |
|
199 | 211 | nb.nbformat = v3.nbformat |
|
200 | 212 | nb.nbformat_minor = v3.nbformat_minor |
|
201 | 213 | cells = [ downgrade_cell(cell) for cell in nb.pop('cells') ] |
|
202 | 214 | nb.worksheets = [v3.new_worksheet(cells=cells)] |
|
203 | 215 | nb.metadata.setdefault('name', '') |
|
204 | 216 | nb.metadata.pop('orig_nbformat', None) |
|
205 | 217 | nb.metadata.pop('orig_nbformat_minor', None) |
|
206 | 218 | |
|
207 | 219 | # Validate the converted notebook before returning it |
|
208 | 220 | validate(nb, version=v3.nbformat) |
|
209 | 221 | return nb |
@@ -1,148 +1,148 b'' | |||
|
1 | 1 | """Python API for composing notebook elements |
|
2 | 2 | |
|
3 | 3 | The Python representation of a notebook is a nested structure of |
|
4 | 4 | dictionary subclasses that support attribute access |
|
5 | 5 | (IPython.utils.ipstruct.Struct). The functions in this module are merely |
|
6 | 6 | helpers to build the structs in the right form. |
|
7 | 7 | """ |
|
8 | 8 | |
|
9 | 9 | # Copyright (c) IPython Development Team. |
|
10 | 10 | # Distributed under the terms of the Modified BSD License. |
|
11 | 11 | |
|
12 | 12 | from IPython.utils.ipstruct import Struct |
|
13 | 13 | |
|
14 | 14 | # Change this when incrementing the nbformat version |
|
15 | 15 | nbformat = 4 |
|
16 | 16 | nbformat_minor = 0 |
|
17 | 17 | nbformat_schema = 'nbformat.v4.schema.json' |
|
18 | 18 | |
|
19 | 19 | |
|
20 | 20 | def validate(node, ref=None): |
|
21 | 21 | """validate a v4 node""" |
|
22 | 22 | from ..current import validate |
|
23 | 23 | return validate(node, ref=ref, version=nbformat) |
|
24 | 24 | |
|
25 | 25 | |
|
26 | 26 | class NotebookNode(Struct): |
|
27 | 27 | pass |
|
28 | 28 | |
|
29 | 29 | def from_dict(d): |
|
30 | 30 | if isinstance(d, dict): |
|
31 | 31 | newd = NotebookNode() |
|
32 | 32 | for k,v in d.items(): |
|
33 | 33 | newd[k] = from_dict(v) |
|
34 | 34 | return newd |
|
35 | 35 | elif isinstance(d, (tuple, list)): |
|
36 | 36 | return [from_dict(i) for i in d] |
|
37 | 37 | else: |
|
38 | 38 | return d |
|
39 | 39 | |
|
40 | 40 | |
|
41 | 41 | def new_output(output_type, mime_bundle=None, **kwargs): |
|
42 | 42 | """Create a new output, to go in the ``cell.outputs`` list of a code cell.""" |
|
43 | 43 | output = NotebookNode(output_type=output_type) |
|
44 | 44 | output.update(from_dict(kwargs)) |
|
45 | 45 | if mime_bundle: |
|
46 | 46 | output.update(mime_bundle) |
|
47 | 47 | # populate defaults: |
|
48 | 48 | output.setdefault('metadata', NotebookNode()) |
|
49 | 49 | if output_type == 'stream': |
|
50 | 50 | output.setdefault('name', 'stdout') |
|
51 | 51 | output.setdefault('text', '') |
|
52 | 52 | validate(output, output_type) |
|
53 | 53 | return output |
|
54 | 54 | |
|
55 | 55 | |
|
56 | 56 | def output_from_msg(msg): |
|
57 | 57 | """Create a NotebookNode for an output from a kernel's IOPub message. |
|
58 | 58 | |
|
59 | 59 | Returns |
|
60 | 60 | ------- |
|
61 | 61 | |
|
62 | 62 | NotebookNode: the output as a notebook node. |
|
63 | 63 | |
|
64 | 64 | Raises |
|
65 | 65 | ------ |
|
66 | 66 | |
|
67 | 67 | ValueError: if the message is not an output message. |
|
68 | 68 | |
|
69 | 69 | """ |
|
70 | 70 | msg_type = msg['header']['msg_type'] |
|
71 | 71 | content = msg['content'] |
|
72 | 72 | |
|
73 | 73 | if msg_type == 'execute_result': |
|
74 | 74 | return new_output(output_type=msg_type, |
|
75 | 75 | metadata=content['metadata'], |
|
76 | 76 | mime_bundle=content['data'], |
|
77 |
|
|
|
77 | execution_count=content['execution_count'], | |
|
78 | 78 | ) |
|
79 | 79 | |
|
80 | 80 | elif msg_type == 'stream': |
|
81 | 81 | return new_output(output_type=msg_type, |
|
82 | 82 | name=content['name'], |
|
83 | 83 | data=content['data'], |
|
84 | 84 | ) |
|
85 | 85 | elif msg_type == 'display_data': |
|
86 | 86 | return new_output(output_type=msg_type, |
|
87 | 87 | metadata=content['metadata'], |
|
88 | 88 | mime_bundle=content['data'], |
|
89 | 89 | ) |
|
90 | 90 | elif msg_type == 'error': |
|
91 | 91 | return new_output(output_type=msg_type, |
|
92 | 92 | ename=content['ename'], |
|
93 | 93 | evalue=content['evalue'], |
|
94 | 94 | traceback=content['traceback'], |
|
95 | 95 | ) |
|
96 | 96 | else: |
|
97 | 97 | raise ValueError("Unrecognized output msg type: %r" % msg_type) |
|
98 | 98 | |
|
99 | 99 | |
|
100 | 100 | def new_code_cell(source='', **kwargs): |
|
101 | 101 | """Create a new code cell""" |
|
102 | 102 | cell = NotebookNode(cell_type='code', source=source) |
|
103 | 103 | cell.update(from_dict(kwargs)) |
|
104 | 104 | cell.setdefault('metadata', NotebookNode()) |
|
105 | 105 | cell.setdefault('source', '') |
|
106 |
cell.setdefault(' |
|
|
106 | cell.setdefault('execution_count', None) | |
|
107 | 107 | cell.setdefault('outputs', []) |
|
108 | 108 | |
|
109 | 109 | validate(cell, 'code_cell') |
|
110 | 110 | return cell |
|
111 | 111 | |
|
112 | 112 | def new_markdown_cell(source='', **kwargs): |
|
113 | 113 | """Create a new markdown cell""" |
|
114 | 114 | cell = NotebookNode(cell_type='markdown', source=source) |
|
115 | 115 | cell.update(from_dict(kwargs)) |
|
116 | 116 | cell.setdefault('metadata', NotebookNode()) |
|
117 | 117 | |
|
118 | 118 | validate(cell, 'markdown_cell') |
|
119 | 119 | return cell |
|
120 | 120 | |
|
121 | 121 | def new_heading_cell(source='', **kwargs): |
|
122 | 122 | """Create a new heading cell""" |
|
123 | 123 | cell = NotebookNode(cell_type='heading', source=source) |
|
124 | 124 | cell.update(from_dict(kwargs)) |
|
125 | 125 | cell.setdefault('metadata', NotebookNode()) |
|
126 | 126 | cell.setdefault('level', 1) |
|
127 | 127 | |
|
128 | 128 | validate(cell, 'heading_cell') |
|
129 | 129 | return cell |
|
130 | 130 | |
|
131 | 131 | def new_raw_cell(source='', **kwargs): |
|
132 | 132 | """Create a new raw cell""" |
|
133 | 133 | cell = NotebookNode(cell_type='raw', source=source) |
|
134 | 134 | cell.update(from_dict(kwargs)) |
|
135 | 135 | cell.setdefault('metadata', NotebookNode()) |
|
136 | 136 | |
|
137 | 137 | validate(cell, 'raw_cell') |
|
138 | 138 | return cell |
|
139 | 139 | |
|
140 | 140 | def new_notebook(**kwargs): |
|
141 | 141 | """Create a new notebook""" |
|
142 | 142 | nb = from_dict(kwargs) |
|
143 | 143 | nb.nbformat = nbformat |
|
144 | 144 | nb.nbformat_minor = nbformat_minor |
|
145 | 145 | nb.setdefault('cells', []) |
|
146 | 146 | nb.setdefault('metadata', NotebookNode()) |
|
147 | 147 | validate(nb) |
|
148 | 148 | return nb |
@@ -1,346 +1,346 b'' | |||
|
1 | 1 | { |
|
2 | 2 | "$schema": "http://json-schema.org/draft-04/schema#", |
|
3 | 3 | "description": "IPython Notebook v4.0 JSON schema.", |
|
4 | 4 | "type": "object", |
|
5 | 5 | "additionalProperties": false, |
|
6 | 6 | "required": ["metadata", "nbformat_minor", "nbformat", "cells"], |
|
7 | 7 | "properties": { |
|
8 | 8 | "metadata": { |
|
9 | 9 | "description": "Notebook root-level metadata.", |
|
10 | 10 | "type": "object", |
|
11 | 11 | "additionalProperties": true, |
|
12 | 12 | "properties": { |
|
13 | 13 | "kernel_info": { |
|
14 | 14 | "description": "Kernel information.", |
|
15 | 15 | "type": "object", |
|
16 | 16 | "required": ["name", "language"], |
|
17 | 17 | "properties": { |
|
18 | 18 | "name": { |
|
19 | 19 | "description": "Name of the kernel specification.", |
|
20 | 20 | "type": "string" |
|
21 | 21 | }, |
|
22 | 22 | "language": { |
|
23 | 23 | "description": "The programming language which this kernel runs.", |
|
24 | 24 | "type": "string" |
|
25 | 25 | }, |
|
26 | 26 | "codemirror_mode": { |
|
27 | 27 | "description": "The codemirror mode to use for code in this language.", |
|
28 | 28 | "type": "string" |
|
29 | 29 | } |
|
30 | 30 | } |
|
31 | 31 | }, |
|
32 | 32 | "signature": { |
|
33 | 33 | "description": "Hash of the notebook.", |
|
34 | 34 | "type": "string" |
|
35 | 35 | }, |
|
36 | 36 | "orig_nbformat": { |
|
37 | 37 | "description": "Original notebook format (major number) before converting the notebook between versions. This should never be written to a file.", |
|
38 | 38 | "type": "integer", |
|
39 | 39 | "minimum": 1 |
|
40 | 40 | } |
|
41 | 41 | } |
|
42 | 42 | }, |
|
43 | 43 | "nbformat_minor": { |
|
44 | 44 | "description": "Notebook format (minor number). Incremented for backward compatible changes to the notebook format.", |
|
45 | 45 | "type": "integer", |
|
46 | 46 | "minimum": 0 |
|
47 | 47 | }, |
|
48 | 48 | "nbformat": { |
|
49 | 49 | "description": "Notebook format (major number). Incremented between backwards incompatible changes to the notebook format.", |
|
50 | 50 | "type": "integer", |
|
51 | 51 | "minimum": 4, |
|
52 | 52 | "maximum": 4 |
|
53 | 53 | }, |
|
54 | 54 | "cells": { |
|
55 | 55 | "description": "Array of cells of the current notebook.", |
|
56 | 56 | "type": "array", |
|
57 | 57 | "items": { |
|
58 | 58 | "type": "object", |
|
59 | 59 | "oneOf": [ |
|
60 | 60 | {"$ref": "#/definitions/raw_cell"}, |
|
61 | 61 | {"$ref": "#/definitions/markdown_cell"}, |
|
62 | 62 | {"$ref": "#/definitions/heading_cell"}, |
|
63 | 63 | {"$ref": "#/definitions/code_cell"} |
|
64 | 64 | ] |
|
65 | 65 | } |
|
66 | 66 | } |
|
67 | 67 | }, |
|
68 | 68 | |
|
69 | 69 | "definitions": { |
|
70 | 70 | |
|
71 | 71 | "raw_cell": { |
|
72 | 72 | "description": "Notebook raw nbconvert cell.", |
|
73 | 73 | "type": "object", |
|
74 | 74 | "additionalProperties": false, |
|
75 | 75 | "required": ["cell_type", "metadata", "source"], |
|
76 | 76 | "properties": { |
|
77 | 77 | "cell_type": { |
|
78 | 78 | "description": "String identifying the type of cell.", |
|
79 | 79 | "enum": ["raw"] |
|
80 | 80 | }, |
|
81 | 81 | "metadata": { |
|
82 | 82 | "description": "Cell-level metadata.", |
|
83 | 83 | "type": "object", |
|
84 | 84 | "additionalProperties": true, |
|
85 | 85 | "properties": { |
|
86 | 86 | "format": { |
|
87 | 87 | "description": "Raw cell metadata format for nbconvert.", |
|
88 | 88 | "type": "string" |
|
89 | 89 | }, |
|
90 | 90 | "name": {"$ref": "#/definitions/misc/metadata_name"}, |
|
91 | 91 | "tags": {"$ref": "#/definitions/misc/metadata_tags"} |
|
92 | 92 | } |
|
93 | 93 | }, |
|
94 | 94 | "source": {"$ref": "#/definitions/misc/source"} |
|
95 | 95 | } |
|
96 | 96 | }, |
|
97 | 97 | |
|
98 | 98 | "markdown_cell": { |
|
99 | 99 | "description": "Notebook markdown cell.", |
|
100 | 100 | "type": "object", |
|
101 | 101 | "additionalProperties": false, |
|
102 | 102 | "required": ["cell_type", "metadata", "source"], |
|
103 | 103 | "properties": { |
|
104 | 104 | "cell_type": { |
|
105 | 105 | "description": "String identifying the type of cell.", |
|
106 | 106 | "enum": ["markdown"] |
|
107 | 107 | }, |
|
108 | 108 | "metadata": { |
|
109 | 109 | "description": "Cell-level metadata.", |
|
110 | 110 | "type": "object", |
|
111 | 111 | "properties": { |
|
112 | 112 | "name": {"$ref": "#/definitions/misc/metadata_name"}, |
|
113 | 113 | "tags": {"$ref": "#/definitions/misc/metadata_tags"} |
|
114 | 114 | }, |
|
115 | 115 | "additionalProperties": true |
|
116 | 116 | }, |
|
117 | 117 | "source": {"$ref": "#/definitions/misc/source"} |
|
118 | 118 | } |
|
119 | 119 | }, |
|
120 | 120 | |
|
121 | 121 | "heading_cell": { |
|
122 | 122 | "description": "Notebook heading cell.", |
|
123 | 123 | "type": "object", |
|
124 | 124 | "additionalProperties": false, |
|
125 | 125 | "required": ["cell_type", "metadata", "source", "level"], |
|
126 | 126 | "properties": { |
|
127 | 127 | "cell_type": { |
|
128 | 128 | "description": "String identifying the type of cell.", |
|
129 | 129 | "enum": ["heading"] |
|
130 | 130 | }, |
|
131 | 131 | "metadata": { |
|
132 | 132 | "description": "Cell-level metadata.", |
|
133 | 133 | "type": "object", |
|
134 | 134 | "properties": { |
|
135 | 135 | "name": {"$ref": "#/definitions/misc/metadata_name"}, |
|
136 | 136 | "tags": {"$ref": "#/definitions/misc/metadata_tags"} |
|
137 | 137 | }, |
|
138 | 138 | "additionalProperties": true |
|
139 | 139 | }, |
|
140 | 140 | "source": {"$ref": "#/definitions/misc/source"}, |
|
141 | 141 | "level": { |
|
142 | 142 | "description": "Level of heading cells.", |
|
143 | 143 | "type": "integer", |
|
144 | 144 | "minimum": 1 |
|
145 | 145 | } |
|
146 | 146 | } |
|
147 | 147 | }, |
|
148 | 148 | |
|
149 | 149 | "code_cell": { |
|
150 | 150 | "description": "Notebook code cell.", |
|
151 | 151 | "type": "object", |
|
152 | 152 | "additionalProperties": false, |
|
153 |
"required": ["cell_type", "metadata", "source", "outputs", " |
|
|
153 | "required": ["cell_type", "metadata", "source", "outputs", "execution_count"], | |
|
154 | 154 | "properties": { |
|
155 | 155 | "cell_type": { |
|
156 | 156 | "description": "String identifying the type of cell.", |
|
157 | 157 | "enum": ["code"] |
|
158 | 158 | }, |
|
159 | 159 | "metadata": { |
|
160 | 160 | "description": "Cell-level metadata.", |
|
161 | 161 | "type": "object", |
|
162 | 162 | "additionalProperties": true, |
|
163 | 163 | "properties": { |
|
164 | 164 | "collapsed": { |
|
165 | 165 | "description": "Whether the cell is collapsed/expanded.", |
|
166 | 166 | "type": "boolean" |
|
167 | 167 | }, |
|
168 | 168 | "autoscroll": { |
|
169 | 169 | "description": "Whether the cell's output is scrolled, unscrolled, or autoscrolled.", |
|
170 | 170 | "enum": [true, false, "auto"] |
|
171 | 171 | }, |
|
172 | 172 | "name": {"$ref": "#/definitions/misc/metadata_name"}, |
|
173 | 173 | "tags": {"$ref": "#/definitions/misc/metadata_tags"} |
|
174 | 174 | } |
|
175 | 175 | }, |
|
176 | 176 | "source": {"$ref": "#/definitions/misc/source"}, |
|
177 | 177 | "outputs": { |
|
178 | 178 | "description": "Execution, display, or stream outputs.", |
|
179 | 179 | "type": "array", |
|
180 | 180 | "items": {"$ref": "#/definitions/output"} |
|
181 | 181 | }, |
|
182 |
" |
|
|
182 | "execution_count": { | |
|
183 | 183 | "description": "The code cell's prompt number. Will be null if the cell has not been run.", |
|
184 | 184 | "type": ["integer", "null"], |
|
185 | 185 | "minimum": 0 |
|
186 | 186 | } |
|
187 | 187 | } |
|
188 | 188 | }, |
|
189 | 189 | "output": { |
|
190 | 190 | "type": "object", |
|
191 | 191 | "oneOf": [ |
|
192 | 192 | {"$ref": "#/definitions/execute_result"}, |
|
193 | 193 | {"$ref": "#/definitions/display_data"}, |
|
194 | 194 | {"$ref": "#/definitions/stream"}, |
|
195 | 195 | {"$ref": "#/definitions/error"} |
|
196 | 196 | ] |
|
197 | 197 | }, |
|
198 | 198 | "execute_result": { |
|
199 | 199 | "description": "Result of executing a code cell.", |
|
200 | 200 | "type": "object", |
|
201 | 201 | "additionalProperties": false, |
|
202 |
"required": ["output_type", "metadata", " |
|
|
202 | "required": ["output_type", "metadata", "execution_count"], | |
|
203 | 203 | "properties": { |
|
204 | 204 | "output_type": { |
|
205 | 205 | "description": "Type of cell output.", |
|
206 | 206 | "enum": ["execute_result"] |
|
207 | 207 | }, |
|
208 |
" |
|
|
208 | "execution_count": { | |
|
209 | 209 | "description": "A result's prompt number.", |
|
210 | "type": ["integer"], | |
|
210 | "type": ["integer", "null"], | |
|
211 | 211 | "minimum": 0 |
|
212 | 212 | }, |
|
213 | 213 | "application/json": { |
|
214 | 214 | "type": "object" |
|
215 | 215 | }, |
|
216 | 216 | "metadata": {"$ref": "#/definitions/misc/output_metadata"} |
|
217 | 217 | }, |
|
218 | 218 | "patternProperties": { |
|
219 | 219 | "^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\\-\\+\\.]+$": { |
|
220 | 220 | "description": "mimetype output (e.g. text/plain), represented as either an array of strings or a string.", |
|
221 | 221 | "$ref": "#/definitions/misc/multiline_string" |
|
222 | 222 | } |
|
223 | 223 | } |
|
224 | 224 | }, |
|
225 | 225 | |
|
226 | 226 | "display_data": { |
|
227 | 227 | "description": "Data displayed as a result of code cell execution.", |
|
228 | 228 | "type": "object", |
|
229 | 229 | "additionalProperties": false, |
|
230 | 230 | "required": ["output_type", "metadata"], |
|
231 | 231 | "properties": { |
|
232 | 232 | "output_type": { |
|
233 | 233 | "description": "Type of cell output.", |
|
234 | 234 | "enum": ["display_data"] |
|
235 | 235 | }, |
|
236 | 236 | "application/json": { |
|
237 | 237 | "type": "object" |
|
238 | 238 | }, |
|
239 | 239 | "metadata": {"$ref": "#/definitions/misc/output_metadata"} |
|
240 | 240 | }, |
|
241 | 241 | "patternProperties": { |
|
242 | 242 | "^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\\-\\+\\.]+$": { |
|
243 | 243 | "description": "mimetype output (e.g. text/plain), represented as either an array of strings or a string.", |
|
244 | 244 | "$ref": "#/definitions/misc/multiline_string" |
|
245 | 245 | } |
|
246 | 246 | } |
|
247 | 247 | }, |
|
248 | 248 | |
|
249 | 249 | "stream": { |
|
250 | 250 | "description": "Stream output from a code cell.", |
|
251 | 251 | "type": "object", |
|
252 | 252 | "additionalProperties": false, |
|
253 | 253 | "required": ["output_type", "metadata", "name", "text"], |
|
254 | 254 | "properties": { |
|
255 | 255 | "output_type": { |
|
256 | 256 | "description": "Type of cell output.", |
|
257 | 257 | "enum": ["stream"] |
|
258 | 258 | }, |
|
259 | 259 | "metadata": {"$ref": "#/definitions/misc/output_metadata"}, |
|
260 | 260 | "name": { |
|
261 | 261 | "description": "The name of the stream (stdout, stderr).", |
|
262 | 262 | "type": "string" |
|
263 | 263 | }, |
|
264 | 264 | "text": { |
|
265 | 265 | "description": "The stream's text output, represented as an array of strings.", |
|
266 | 266 | "$ref": "#/definitions/misc/multiline_string" |
|
267 | 267 | } |
|
268 | 268 | } |
|
269 | 269 | }, |
|
270 | 270 | |
|
271 | 271 | "error": { |
|
272 | 272 | "description": "Output of an error that occurred during code cell execution.", |
|
273 | 273 | "type": "object", |
|
274 | 274 | "additionalProperties": false, |
|
275 | 275 | "required": ["output_type", "metadata", "ename", "evalue", "traceback"], |
|
276 | 276 | "properties": { |
|
277 | 277 | "output_type": { |
|
278 | 278 | "description": "Type of cell output.", |
|
279 | 279 | "enum": ["error"] |
|
280 | 280 | }, |
|
281 | 281 | "metadata": {"$ref": "#/definitions/misc/output_metadata"}, |
|
282 | 282 | "ename": { |
|
283 | 283 | "description": "The name of the error.", |
|
284 | 284 | "type": "string" |
|
285 | 285 | }, |
|
286 | 286 | "evalue": { |
|
287 | 287 | "description": "The value, or message, of the error.", |
|
288 | 288 | "type": "string" |
|
289 | 289 | }, |
|
290 | 290 | "traceback": { |
|
291 | 291 | "description": "The error's traceback, represented as an array of strings.", |
|
292 | 292 | "type": "array", |
|
293 | 293 | "items": {"type": "string"} |
|
294 | 294 | } |
|
295 | 295 | } |
|
296 | 296 | }, |
|
297 | 297 | |
|
298 | 298 | "misc": { |
|
299 | 299 | "metadata_name": { |
|
300 | 300 | "description": "The cell's name. If present, must be a non-empty string.", |
|
301 | 301 | "type": "string", |
|
302 | 302 | "pattern": "^.+$" |
|
303 | 303 | }, |
|
304 | 304 | "metadata_tags": { |
|
305 | 305 | "description": "The cell's tags. Tags must be unique, and must not contain commas.", |
|
306 | 306 | "type": "array", |
|
307 | 307 | "uniqueItems": true, |
|
308 | 308 | "items": { |
|
309 | 309 | "type": "string", |
|
310 | 310 | "pattern": "^[^,]+$" |
|
311 | 311 | } |
|
312 | 312 | }, |
|
313 | 313 | "source": { |
|
314 | 314 | "description": "Contents of the cell, represented as an array of lines.", |
|
315 | 315 | "$ref": "#/definitions/misc/multiline_string" |
|
316 | 316 | }, |
|
317 |
" |
|
|
317 | "execution_count": { | |
|
318 | 318 | "description": "The code cell's prompt number. Will be null if the cell has not been run.", |
|
319 | 319 | "type": ["integer", "null"], |
|
320 | 320 | "minimum": 0 |
|
321 | 321 | }, |
|
322 | 322 | "mimetype": { |
|
323 | 323 | "patternProperties": { |
|
324 | 324 | "^[a-zA-Z0-9\\-\\+]+/[a-zA-Z0-9\\-\\+]+": { |
|
325 | 325 | "description": "The cell's mimetype output (e.g. text/plain), represented as either an array of strings or a string.", |
|
326 | 326 | "$ref": "#/definitions/misc/multiline_string" |
|
327 | 327 | } |
|
328 | 328 | } |
|
329 | 329 | }, |
|
330 | 330 | "output_metadata": { |
|
331 | 331 | "description": "Cell output metadata.", |
|
332 | 332 | "type": "object", |
|
333 | 333 | "additionalProperties": true |
|
334 | 334 | }, |
|
335 | 335 | "multiline_string": { |
|
336 | 336 | "oneOf" : [ |
|
337 | 337 | {"type": "string"}, |
|
338 | 338 | { |
|
339 | 339 | "type": "array", |
|
340 | 340 | "items": {"type": "string"} |
|
341 | 341 | } |
|
342 | 342 | ] |
|
343 | 343 | } |
|
344 | 344 | } |
|
345 | 345 | } |
|
346 | 346 | } |
@@ -1,105 +1,105 b'' | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 | 3 | import os |
|
4 | 4 | from base64 import encodestring |
|
5 | 5 | |
|
6 | 6 | from ..nbbase import ( |
|
7 | 7 | new_code_cell, new_heading_cell, new_markdown_cell, new_notebook, |
|
8 | 8 | new_output, new_raw_cell |
|
9 | 9 | ) |
|
10 | 10 | |
|
11 | 11 | # some random base64-encoded *text* |
|
12 | 12 | png = encodestring(os.urandom(5)).decode('ascii') |
|
13 | 13 | jpeg = encodestring(os.urandom(6)).decode('ascii') |
|
14 | 14 | |
|
15 | 15 | cells = [] |
|
16 | 16 | cells.append(new_markdown_cell( |
|
17 | 17 | source='Some NumPy Examples', |
|
18 | 18 | )) |
|
19 | 19 | |
|
20 | 20 | |
|
21 | 21 | cells.append(new_code_cell( |
|
22 | 22 | source='import numpy', |
|
23 | prompt_number=1, | |
|
23 | execution_count=1, | |
|
24 | 24 | )) |
|
25 | 25 | |
|
26 | 26 | cells.append(new_markdown_cell( |
|
27 | 27 | source='A random array', |
|
28 | 28 | )) |
|
29 | 29 | |
|
30 | 30 | cells.append(new_raw_cell( |
|
31 | 31 | source='A random array', |
|
32 | 32 | )) |
|
33 | 33 | |
|
34 | 34 | cells.append(new_heading_cell( |
|
35 | 35 | source=u'My Heading', |
|
36 | 36 | level=2, |
|
37 | 37 | )) |
|
38 | 38 | |
|
39 | 39 | cells.append(new_code_cell( |
|
40 | 40 | source='a = numpy.random.rand(100)', |
|
41 | prompt_number=2, | |
|
41 | execution_count=2, | |
|
42 | 42 | )) |
|
43 | 43 | cells.append(new_code_cell( |
|
44 | 44 | source='a = 10\nb = 5\n', |
|
45 | prompt_number=3, | |
|
45 | execution_count=3, | |
|
46 | 46 | )) |
|
47 | 47 | cells.append(new_code_cell( |
|
48 | 48 | source='a = 10\nb = 5', |
|
49 | prompt_number=4, | |
|
49 | execution_count=4, | |
|
50 | 50 | )) |
|
51 | 51 | |
|
52 | 52 | cells.append(new_code_cell( |
|
53 | 53 | source=u'print "ünîcødé"', |
|
54 | prompt_number=3, | |
|
54 | execution_count=3, | |
|
55 | 55 | outputs=[new_output( |
|
56 | 56 | output_type=u'execute_result', |
|
57 | 57 | mime_bundle={ |
|
58 | 58 | 'text/plain': u'<array a>', |
|
59 | 59 | 'text/html': u'The HTML rep', |
|
60 | 60 | 'text/latex': u'$a$', |
|
61 | 61 | 'image/png': png, |
|
62 | 62 | 'image/jpeg': jpeg, |
|
63 | 63 | 'image/svg+xml': u'<svg>', |
|
64 | 64 | 'application/json': { |
|
65 | 65 | 'key': 'value' |
|
66 | 66 | }, |
|
67 | 67 | 'application/javascript': u'var i=0;' |
|
68 | 68 | }, |
|
69 | prompt_number=3 | |
|
69 | execution_count=3 | |
|
70 | 70 | ),new_output( |
|
71 | 71 | output_type=u'display_data', |
|
72 | 72 | mime_bundle={ |
|
73 | 73 | 'text/plain': u'<array a>', |
|
74 | 74 | 'text/html': u'The HTML rep', |
|
75 | 75 | 'text/latex': u'$a$', |
|
76 | 76 | 'image/png': png, |
|
77 | 77 | 'image/jpeg': jpeg, |
|
78 | 78 | 'image/svg+xml': u'<svg>', |
|
79 | 79 | 'application/json': { |
|
80 | 80 | 'key': 'value' |
|
81 | 81 | }, |
|
82 | 82 | 'application/javascript': u'var i=0;' |
|
83 | 83 | }, |
|
84 | 84 | ),new_output( |
|
85 | 85 | output_type=u'error', |
|
86 | 86 | ename=u'NameError', |
|
87 | 87 | evalue=u'NameError was here', |
|
88 | 88 | traceback=[u'frame 0', u'frame 1', u'frame 2'] |
|
89 | 89 | ),new_output( |
|
90 | 90 | output_type=u'stream', |
|
91 | 91 | text='foo\rbar\r\n' |
|
92 | 92 | ),new_output( |
|
93 | 93 | output_type=u'stream', |
|
94 | 94 | name='stderr', |
|
95 | 95 | text='\rfoo\rbar\n' |
|
96 | 96 | )] |
|
97 | 97 | )) |
|
98 | 98 | |
|
99 | 99 | nb0 = new_notebook(cells=cells, |
|
100 | 100 | metadata={ |
|
101 | 101 | 'language': 'python', |
|
102 | 102 | } |
|
103 | 103 | ) |
|
104 | 104 | |
|
105 | 105 |
@@ -1,112 +1,112 b'' | |||
|
1 | 1 | # coding: utf-8 |
|
2 | 2 | """Tests for the Python API for composing notebook elements""" |
|
3 | 3 | |
|
4 | 4 | import nose.tools as nt |
|
5 | 5 | |
|
6 | 6 | from IPython.nbformat.validator import isvalid, validate, ValidationError |
|
7 | 7 | from ..nbbase import ( |
|
8 | 8 | NotebookNode, nbformat, |
|
9 | 9 | new_code_cell, new_heading_cell, new_markdown_cell, new_notebook, |
|
10 | 10 | new_output, new_raw_cell, |
|
11 | 11 | ) |
|
12 | 12 | |
|
13 | 13 | def test_empty_notebook(): |
|
14 | 14 | nb = new_notebook() |
|
15 | 15 | nt.assert_equal(nb.cells, []) |
|
16 | 16 | nt.assert_equal(nb.metadata, NotebookNode()) |
|
17 | 17 | nt.assert_equal(nb.nbformat, nbformat) |
|
18 | 18 | |
|
19 | 19 | def test_empty_markdown_cell(): |
|
20 | 20 | cell = new_markdown_cell() |
|
21 | 21 | nt.assert_equal(cell.cell_type, 'markdown') |
|
22 | 22 | nt.assert_equal(cell.source, '') |
|
23 | 23 | |
|
24 | 24 | def test_markdown_cell(): |
|
25 | 25 | cell = new_markdown_cell(u'* Søme markdown') |
|
26 | 26 | nt.assert_equal(cell.source, u'* Søme markdown') |
|
27 | 27 | |
|
28 | 28 | def test_empty_raw_cell(): |
|
29 | 29 | cell = new_raw_cell() |
|
30 | 30 | nt.assert_equal(cell.cell_type, u'raw') |
|
31 | 31 | nt.assert_equal(cell.source, '') |
|
32 | 32 | |
|
33 | 33 | def test_raw_cell(): |
|
34 | 34 | cell = new_raw_cell('hi') |
|
35 | 35 | nt.assert_equal(cell.source, u'hi') |
|
36 | 36 | |
|
37 | 37 | def test_empty_heading_cell(): |
|
38 | 38 | cell = new_heading_cell() |
|
39 | 39 | nt.assert_equal(cell.cell_type, u'heading') |
|
40 | 40 | nt.assert_equal(cell.source, '') |
|
41 | 41 | nt.assert_equal(cell.level, 1) |
|
42 | 42 | |
|
43 | 43 | def test_heading_cell(): |
|
44 | 44 | cell = new_heading_cell(u'hi', level=2) |
|
45 | 45 | nt.assert_equal(cell.source, u'hi') |
|
46 | 46 | nt.assert_equal(cell.level, 2) |
|
47 | 47 | |
|
48 | 48 | def test_empty_code_cell(): |
|
49 | 49 | cell = new_code_cell('hi') |
|
50 | 50 | nt.assert_equal(cell.cell_type, 'code') |
|
51 | 51 | nt.assert_equal(cell.source, u'hi') |
|
52 | 52 | |
|
53 | 53 | def test_empty_display_data(): |
|
54 | 54 | output = new_output('display_data') |
|
55 | 55 | nt.assert_equal(output.output_type, 'display_data') |
|
56 | 56 | |
|
57 | 57 | def test_empty_stream(): |
|
58 | 58 | output = new_output('stream') |
|
59 | 59 | nt.assert_equal(output.output_type, 'stream') |
|
60 | 60 | nt.assert_equal(output.name, 'stdout') |
|
61 | 61 | nt.assert_equal(output.text, '') |
|
62 | 62 | |
|
63 | 63 | def test_empty_execute_result(): |
|
64 |
output = new_output('execute_result', |
|
|
64 | output = new_output('execute_result', execution_count=1) | |
|
65 | 65 | nt.assert_equal(output.output_type, 'execute_result') |
|
66 | 66 | |
|
67 | 67 | mimebundle = { |
|
68 | 68 | 'text/plain': "some text", |
|
69 | 69 | "application/json": { |
|
70 | 70 | "key": "value" |
|
71 | 71 | }, |
|
72 | 72 | "image/svg+xml": 'ABCDEF', |
|
73 | 73 | "application/octet-stream": 'ABC-123', |
|
74 | 74 | "application/vnd.foo+bar": "Some other stuff", |
|
75 | 75 | } |
|
76 | 76 | |
|
77 | 77 | def test_display_data(): |
|
78 | 78 | output = new_output('display_data', mimebundle) |
|
79 | 79 | for key, expected in mimebundle.items(): |
|
80 | 80 | nt.assert_equal(output[key], expected) |
|
81 | 81 | |
|
82 | 82 | def test_execute_result(): |
|
83 |
output = new_output('execute_result', mimebundle, |
|
|
84 |
nt.assert_equal(output. |
|
|
83 | output = new_output('execute_result', mimebundle, execution_count=10) | |
|
84 | nt.assert_equal(output.execution_count, 10) | |
|
85 | 85 | for key, expected in mimebundle.items(): |
|
86 | 86 | nt.assert_equal(output[key], expected) |
|
87 | 87 | |
|
88 | 88 | def test_error(): |
|
89 | 89 | o = new_output(output_type=u'error', ename=u'NameError', |
|
90 | 90 | evalue=u'Name not found', traceback=[u'frame 0', u'frame 1', u'frame 2'] |
|
91 | 91 | ) |
|
92 | 92 | nt.assert_equal(o.output_type, u'error') |
|
93 | 93 | nt.assert_equal(o.ename, u'NameError') |
|
94 | 94 | nt.assert_equal(o.evalue, u'Name not found') |
|
95 | 95 | nt.assert_equal(o.traceback, [u'frame 0', u'frame 1', u'frame 2']) |
|
96 | 96 | |
|
97 | 97 | def test_code_cell_with_outputs(): |
|
98 |
cell = new_code_cell( |
|
|
98 | cell = new_code_cell(execution_count=10, outputs=[ | |
|
99 | 99 | new_output('display_data', mimebundle), |
|
100 | 100 | new_output('stream', text='hello'), |
|
101 |
new_output('execute_result', mimebundle, |
|
|
101 | new_output('execute_result', mimebundle, execution_count=10), | |
|
102 | 102 | ]) |
|
103 |
nt.assert_equal(cell. |
|
|
103 | nt.assert_equal(cell.execution_count, 10) | |
|
104 | 104 | nt.assert_equal(len(cell.outputs), 3) |
|
105 | 105 | er = cell.outputs[-1] |
|
106 |
nt.assert_equal(er. |
|
|
106 | nt.assert_equal(er.execution_count, 10) | |
|
107 | 107 | nt.assert_equal(er['output_type'], 'execute_result') |
|
108 | 108 | |
|
109 | 109 | def test_stream(): |
|
110 | 110 | output = new_output('stream', name='stderr', text='hello there') |
|
111 | 111 | nt.assert_equal(output.name, 'stderr') |
|
112 | 112 | nt.assert_equal(output.text, 'hello there') |
General Comments 0
You need to be logged in to leave comments.
Login now