##// END OF EJS Templates
remove references to loadpy...
Matthias BUSSONNIER -
Show More
@@ -1,275 +1,275 b''
1 1 """A notebook manager that uses the local file system for storage.
2 2
3 3 Authors:
4 4
5 5 * Brian Granger
6 6 """
7 7
8 8 #-----------------------------------------------------------------------------
9 9 # Copyright (C) 2008-2011 The IPython Development Team
10 10 #
11 11 # Distributed under the terms of the BSD License. The full license is in
12 12 # the file COPYING, distributed as part of this software.
13 13 #-----------------------------------------------------------------------------
14 14
15 15 #-----------------------------------------------------------------------------
16 16 # Imports
17 17 #-----------------------------------------------------------------------------
18 18
19 19 import datetime
20 20 import io
21 21 import os
22 22 import uuid
23 23 import glob
24 24
25 25 from tornado import web
26 26
27 27 from IPython.config.configurable import LoggingConfigurable
28 28 from IPython.nbformat import current
29 29 from IPython.utils.traitlets import Unicode, List, Dict, Bool
30 30
31 31 #-----------------------------------------------------------------------------
32 32 # Classes
33 33 #-----------------------------------------------------------------------------
34 34
35 35 class NotebookManager(LoggingConfigurable):
36 36
37 37 notebook_dir = Unicode(os.getcwdu(), config=True, help="""
38 38 The directory to use for notebooks.
39 39 """)
40 40
41 41 save_script = Bool(False, config=True,
42 42 help="""Automatically create a Python script when saving the notebook.
43 43
44 For easier use of import, %run and %loadpy across notebooks, a
44 For easier use of import, %run and %load across notebooks, a
45 45 <notebook-name>.py script will be created next to any
46 46 <notebook-name>.ipynb on each save. This can also be set with the
47 47 short `--script` flag.
48 48 """
49 49 )
50 50
51 51 filename_ext = Unicode(u'.ipynb')
52 52 allowed_formats = List([u'json',u'py'])
53 53
54 54 # Map notebook_ids to notebook names
55 55 mapping = Dict()
56 56 # Map notebook names to notebook_ids
57 57 rev_mapping = Dict()
58 58
59 59 def list_notebooks(self):
60 60 """List all notebooks in the notebook dir.
61 61
62 62 This returns a list of dicts of the form::
63 63
64 64 dict(notebook_id=notebook,name=name)
65 65 """
66 66 names = glob.glob(os.path.join(self.notebook_dir,
67 67 '*' + self.filename_ext))
68 68 names = [os.path.splitext(os.path.basename(name))[0]
69 69 for name in names]
70 70
71 71 data = []
72 72 for name in names:
73 73 if name not in self.rev_mapping:
74 74 notebook_id = self.new_notebook_id(name)
75 75 else:
76 76 notebook_id = self.rev_mapping[name]
77 77 data.append(dict(notebook_id=notebook_id,name=name))
78 78 data = sorted(data, key=lambda item: item['name'])
79 79 return data
80 80
81 81 def new_notebook_id(self, name):
82 82 """Generate a new notebook_id for a name and store its mappings."""
83 83 # TODO: the following will give stable urls for notebooks, but unless
84 84 # the notebooks are immediately redirected to their new urls when their
85 85 # filemname changes, nasty inconsistencies result. So for now it's
86 86 # disabled and instead we use a random uuid4() call. But we leave the
87 87 # logic here so that we can later reactivate it, whhen the necessary
88 88 # url redirection code is written.
89 89 #notebook_id = unicode(uuid.uuid5(uuid.NAMESPACE_URL,
90 90 # 'file://'+self.get_path_by_name(name).encode('utf-8')))
91 91
92 92 notebook_id = unicode(uuid.uuid4())
93 93
94 94 self.mapping[notebook_id] = name
95 95 self.rev_mapping[name] = notebook_id
96 96 return notebook_id
97 97
98 98 def delete_notebook_id(self, notebook_id):
99 99 """Delete a notebook's id only. This doesn't delete the actual notebook."""
100 100 name = self.mapping[notebook_id]
101 101 del self.mapping[notebook_id]
102 102 del self.rev_mapping[name]
103 103
104 104 def notebook_exists(self, notebook_id):
105 105 """Does a notebook exist?"""
106 106 if notebook_id not in self.mapping:
107 107 return False
108 108 path = self.get_path_by_name(self.mapping[notebook_id])
109 109 return os.path.isfile(path)
110 110
111 111 def find_path(self, notebook_id):
112 112 """Return a full path to a notebook given its notebook_id."""
113 113 try:
114 114 name = self.mapping[notebook_id]
115 115 except KeyError:
116 116 raise web.HTTPError(404, u'Notebook does not exist: %s' % notebook_id)
117 117 return self.get_path_by_name(name)
118 118
119 119 def get_path_by_name(self, name):
120 120 """Return a full path to a notebook given its name."""
121 121 filename = name + self.filename_ext
122 122 path = os.path.join(self.notebook_dir, filename)
123 123 return path
124 124
125 125 def get_notebook(self, notebook_id, format=u'json'):
126 126 """Get the representation of a notebook in format by notebook_id."""
127 127 format = unicode(format)
128 128 if format not in self.allowed_formats:
129 129 raise web.HTTPError(415, u'Invalid notebook format: %s' % format)
130 130 last_modified, nb = self.get_notebook_object(notebook_id)
131 131 kwargs = {}
132 132 if format == 'json':
133 133 # don't split lines for sending over the wire, because it
134 134 # should match the Python in-memory format.
135 135 kwargs['split_lines'] = False
136 136 data = current.writes(nb, format, **kwargs)
137 137 name = nb.get('name','notebook')
138 138 return last_modified, name, data
139 139
140 140 def get_notebook_object(self, notebook_id):
141 141 """Get the NotebookNode representation of a notebook by notebook_id."""
142 142 path = self.find_path(notebook_id)
143 143 if not os.path.isfile(path):
144 144 raise web.HTTPError(404, u'Notebook does not exist: %s' % notebook_id)
145 145 info = os.stat(path)
146 146 last_modified = datetime.datetime.utcfromtimestamp(info.st_mtime)
147 147 with open(path,'r') as f:
148 148 s = f.read()
149 149 try:
150 150 # v1 and v2 and json in the .ipynb files.
151 151 nb = current.reads(s, u'json')
152 152 except:
153 153 raise web.HTTPError(500, u'Unreadable JSON notebook.')
154 154 if 'name' not in nb:
155 155 nb.name = os.path.split(path)[-1].split(u'.')[0]
156 156 return last_modified, nb
157 157
158 158 def save_new_notebook(self, data, name=None, format=u'json'):
159 159 """Save a new notebook and return its notebook_id.
160 160
161 161 If a name is passed in, it overrides any values in the notebook data
162 162 and the value in the data is updated to use that value.
163 163 """
164 164 if format not in self.allowed_formats:
165 165 raise web.HTTPError(415, u'Invalid notebook format: %s' % format)
166 166
167 167 try:
168 168 nb = current.reads(data.decode('utf-8'), format)
169 169 except:
170 170 raise web.HTTPError(400, u'Invalid JSON data')
171 171
172 172 if name is None:
173 173 try:
174 174 name = nb.metadata.name
175 175 except AttributeError:
176 176 raise web.HTTPError(400, u'Missing notebook name')
177 177 nb.metadata.name = name
178 178
179 179 notebook_id = self.new_notebook_id(name)
180 180 self.save_notebook_object(notebook_id, nb)
181 181 return notebook_id
182 182
183 183 def save_notebook(self, notebook_id, data, name=None, format=u'json'):
184 184 """Save an existing notebook by notebook_id."""
185 185 if format not in self.allowed_formats:
186 186 raise web.HTTPError(415, u'Invalid notebook format: %s' % format)
187 187
188 188 try:
189 189 nb = current.reads(data.decode('utf-8'), format)
190 190 except:
191 191 raise web.HTTPError(400, u'Invalid JSON data')
192 192
193 193 if name is not None:
194 194 nb.metadata.name = name
195 195 self.save_notebook_object(notebook_id, nb)
196 196
197 197 def save_notebook_object(self, notebook_id, nb):
198 198 """Save an existing notebook object by notebook_id."""
199 199 if notebook_id not in self.mapping:
200 200 raise web.HTTPError(404, u'Notebook does not exist: %s' % notebook_id)
201 201 old_name = self.mapping[notebook_id]
202 202 try:
203 203 new_name = nb.metadata.name
204 204 except AttributeError:
205 205 raise web.HTTPError(400, u'Missing notebook name')
206 206 path = self.get_path_by_name(new_name)
207 207 try:
208 208 with open(path,'w') as f:
209 209 current.write(nb, f, u'json')
210 210 except Exception as e:
211 211 raise web.HTTPError(400, u'Unexpected error while saving notebook: %s' % e)
212 212 # save .py script as well
213 213 if self.save_script:
214 214 pypath = os.path.splitext(path)[0] + '.py'
215 215 try:
216 216 with io.open(pypath,'w', encoding='utf-8') as f:
217 217 current.write(nb, f, u'py')
218 218 except Exception as e:
219 219 raise web.HTTPError(400, u'Unexpected error while saving notebook as script: %s' % e)
220 220
221 221 if old_name != new_name:
222 222 old_path = self.get_path_by_name(old_name)
223 223 if os.path.isfile(old_path):
224 224 os.unlink(old_path)
225 225 if self.save_script:
226 226 old_pypath = os.path.splitext(old_path)[0] + '.py'
227 227 if os.path.isfile(old_pypath):
228 228 os.unlink(old_pypath)
229 229 self.mapping[notebook_id] = new_name
230 230 self.rev_mapping[new_name] = notebook_id
231 231
232 232 def delete_notebook(self, notebook_id):
233 233 """Delete notebook by notebook_id."""
234 234 path = self.find_path(notebook_id)
235 235 if not os.path.isfile(path):
236 236 raise web.HTTPError(404, u'Notebook does not exist: %s' % notebook_id)
237 237 os.unlink(path)
238 238 self.delete_notebook_id(notebook_id)
239 239
240 240 def increment_filename(self, basename):
241 241 """Return a non-used filename of the form basename<int>.
242 242
243 243 This searches through the filenames (basename0, basename1, ...)
244 244 until is find one that is not already being used. It is used to
245 245 create Untitled and Copy names that are unique.
246 246 """
247 247 i = 0
248 248 while True:
249 249 name = u'%s%i' % (basename,i)
250 250 path = self.get_path_by_name(name)
251 251 if not os.path.isfile(path):
252 252 break
253 253 else:
254 254 i = i+1
255 255 return path, name
256 256
257 257 def new_notebook(self):
258 258 """Create a new notebook and return its notebook_id."""
259 259 path, name = self.increment_filename('Untitled')
260 260 notebook_id = self.new_notebook_id(name)
261 261 metadata = current.new_metadata(name=name)
262 262 nb = current.new_notebook(metadata=metadata)
263 263 with open(path,'w') as f:
264 264 current.write(nb, f, u'json')
265 265 return notebook_id
266 266
267 267 def copy_notebook(self, notebook_id):
268 268 """Copy an existing notebook and return its notebook_id."""
269 269 last_mod, nb = self.get_notebook_object(notebook_id)
270 270 name = nb.metadata.name + '-Copy'
271 271 path, name = self.increment_filename(name)
272 272 nb.metadata.name = name
273 273 notebook_id = self.new_notebook_id(name)
274 274 self.save_notebook_object(notebook_id, nb)
275 275 return notebook_id
@@ -1,910 +1,910 b''
1 1 """The Qt MainWindow for the QtConsole
2 2
3 3 This is a tabbed pseudo-terminal of IPython sessions, with a menu bar for
4 4 common actions.
5 5
6 6 Authors:
7 7
8 8 * Evan Patterson
9 9 * Min RK
10 10 * Erik Tollerud
11 11 * Fernando Perez
12 12 * Bussonnier Matthias
13 13 * Thomas Kluyver
14 14
15 15 """
16 16
17 17 #-----------------------------------------------------------------------------
18 18 # Imports
19 19 #-----------------------------------------------------------------------------
20 20
21 21 # stdlib imports
22 22 import sys
23 23 import re
24 24 import webbrowser
25 25 from threading import Thread
26 26
27 27 # System library imports
28 28 from IPython.external.qt import QtGui,QtCore
29 29
30 30 def background(f):
31 31 """call a function in a simple thread, to prevent blocking"""
32 32 t = Thread(target=f)
33 33 t.start()
34 34 return t
35 35
36 36 #-----------------------------------------------------------------------------
37 37 # Classes
38 38 #-----------------------------------------------------------------------------
39 39
40 40 class MainWindow(QtGui.QMainWindow):
41 41
42 42 #---------------------------------------------------------------------------
43 43 # 'object' interface
44 44 #---------------------------------------------------------------------------
45 45
46 46 def __init__(self, app,
47 47 confirm_exit=True,
48 48 new_frontend_factory=None, slave_frontend_factory=None,
49 49 ):
50 50 """ Create a tabbed MainWindow for managing IPython FrontendWidgets
51 51
52 52 Parameters
53 53 ----------
54 54
55 55 app : reference to QApplication parent
56 56 confirm_exit : bool, optional
57 57 Whether we should prompt on close of tabs
58 58 new_frontend_factory : callable
59 59 A callable that returns a new IPythonWidget instance, attached to
60 60 its own running kernel.
61 61 slave_frontend_factory : callable
62 62 A callable that takes an existing IPythonWidget, and returns a new
63 63 IPythonWidget instance, attached to the same kernel.
64 64 """
65 65
66 66 super(MainWindow, self).__init__()
67 67 self._kernel_counter = 0
68 68 self._app = app
69 69 self.confirm_exit = confirm_exit
70 70 self.new_frontend_factory = new_frontend_factory
71 71 self.slave_frontend_factory = slave_frontend_factory
72 72
73 73 self.tab_widget = QtGui.QTabWidget(self)
74 74 self.tab_widget.setDocumentMode(True)
75 75 self.tab_widget.setTabsClosable(True)
76 76 self.tab_widget.tabCloseRequested[int].connect(self.close_tab)
77 77
78 78 self.setCentralWidget(self.tab_widget)
79 79 # hide tab bar at first, since we have no tabs:
80 80 self.tab_widget.tabBar().setVisible(False)
81 81 # prevent focus in tab bar
82 82 self.tab_widget.setFocusPolicy(QtCore.Qt.NoFocus)
83 83
84 84 def update_tab_bar_visibility(self):
85 85 """ update visibility of the tabBar depending of the number of tab
86 86
87 87 0 or 1 tab, tabBar hidden
88 88 2+ tabs, tabBar visible
89 89
90 90 send a self.close if number of tab ==0
91 91
92 92 need to be called explicitely, or be connected to tabInserted/tabRemoved
93 93 """
94 94 if self.tab_widget.count() <= 1:
95 95 self.tab_widget.tabBar().setVisible(False)
96 96 else:
97 97 self.tab_widget.tabBar().setVisible(True)
98 98 if self.tab_widget.count()==0 :
99 99 self.close()
100 100
101 101 @property
102 102 def next_kernel_id(self):
103 103 """constantly increasing counter for kernel IDs"""
104 104 c = self._kernel_counter
105 105 self._kernel_counter += 1
106 106 return c
107 107
108 108 @property
109 109 def active_frontend(self):
110 110 return self.tab_widget.currentWidget()
111 111
112 112 def create_tab_with_new_frontend(self):
113 113 """create a new frontend and attach it to a new tab"""
114 114 widget = self.new_frontend_factory()
115 115 self.add_tab_with_frontend(widget)
116 116
117 117 def create_tab_with_current_kernel(self):
118 118 """create a new frontend attached to the same kernel as the current tab"""
119 119 current_widget = self.tab_widget.currentWidget()
120 120 current_widget_index = self.tab_widget.indexOf(current_widget)
121 121 current_widget_name = self.tab_widget.tabText(current_widget_index)
122 122 widget = self.slave_frontend_factory(current_widget)
123 123 if 'slave' in current_widget_name:
124 124 # don't keep stacking slaves
125 125 name = current_widget_name
126 126 else:
127 127 name = '(%s) slave' % current_widget_name
128 128 self.add_tab_with_frontend(widget,name=name)
129 129
130 130 def close_tab(self,current_tab):
131 131 """ Called when you need to try to close a tab.
132 132
133 133 It takes the number of the tab to be closed as argument, or a referece
134 134 to the wiget insite this tab
135 135 """
136 136
137 137 # let's be sure "tab" and "closing widget are respectivey the index of the tab to close
138 138 # and a reference to the trontend to close
139 139 if type(current_tab) is not int :
140 140 current_tab = self.tab_widget.indexOf(current_tab)
141 141 closing_widget=self.tab_widget.widget(current_tab)
142 142
143 143
144 144 # when trying to be closed, widget might re-send a request to be closed again, but will
145 145 # be deleted when event will be processed. So need to check that widget still exist and
146 146 # skip if not. One example of this is when 'exit' is send in a slave tab. 'exit' will be
147 147 # re-send by this fonction on the master widget, which ask all slaves widget to exit
148 148 if closing_widget==None:
149 149 return
150 150
151 151 #get a list of all slave widgets on the same kernel.
152 152 slave_tabs = self.find_slave_widgets(closing_widget)
153 153
154 154 keepkernel = None #Use the prompt by default
155 155 if hasattr(closing_widget,'_keep_kernel_on_exit'): #set by exit magic
156 156 keepkernel = closing_widget._keep_kernel_on_exit
157 157 # If signal sent by exit magic (_keep_kernel_on_exit, exist and not None)
158 158 # we set local slave tabs._hidden to True to avoid prompting for kernel
159 159 # restart when they get the signal. and then "forward" the 'exit'
160 160 # to the main window
161 161 if keepkernel is not None:
162 162 for tab in slave_tabs:
163 163 tab._hidden = True
164 164 if closing_widget in slave_tabs:
165 165 try :
166 166 self.find_master_tab(closing_widget).execute('exit')
167 167 except AttributeError:
168 168 self.log.info("Master already closed or not local, closing only current tab")
169 169 self.tab_widget.removeTab(current_tab)
170 170 self.update_tab_bar_visibility()
171 171 return
172 172
173 173 kernel_manager = closing_widget.kernel_manager
174 174
175 175 if keepkernel is None and not closing_widget._confirm_exit:
176 176 # don't prompt, just terminate the kernel if we own it
177 177 # or leave it alone if we don't
178 178 keepkernel = closing_widget._existing
179 179 if keepkernel is None: #show prompt
180 180 if kernel_manager and kernel_manager.channels_running:
181 181 title = self.window().windowTitle()
182 182 cancel = QtGui.QMessageBox.Cancel
183 183 okay = QtGui.QMessageBox.Ok
184 184 if closing_widget._may_close:
185 185 msg = "You are closing the tab : "+'"'+self.tab_widget.tabText(current_tab)+'"'
186 186 info = "Would you like to quit the Kernel and close all attached Consoles as well?"
187 187 justthis = QtGui.QPushButton("&No, just this Tab", self)
188 188 justthis.setShortcut('N')
189 189 closeall = QtGui.QPushButton("&Yes, close all", self)
190 190 closeall.setShortcut('Y')
191 191 # allow ctrl-d ctrl-d exit, like in terminal
192 192 closeall.setShortcut('Ctrl+D')
193 193 box = QtGui.QMessageBox(QtGui.QMessageBox.Question,
194 194 title, msg)
195 195 box.setInformativeText(info)
196 196 box.addButton(cancel)
197 197 box.addButton(justthis, QtGui.QMessageBox.NoRole)
198 198 box.addButton(closeall, QtGui.QMessageBox.YesRole)
199 199 box.setDefaultButton(closeall)
200 200 box.setEscapeButton(cancel)
201 201 pixmap = QtGui.QPixmap(self._app.icon.pixmap(QtCore.QSize(64,64)))
202 202 box.setIconPixmap(pixmap)
203 203 reply = box.exec_()
204 204 if reply == 1: # close All
205 205 for slave in slave_tabs:
206 206 background(slave.kernel_manager.stop_channels)
207 207 self.tab_widget.removeTab(self.tab_widget.indexOf(slave))
208 208 closing_widget.execute("exit")
209 209 self.tab_widget.removeTab(current_tab)
210 210 background(kernel_manager.stop_channels)
211 211 elif reply == 0: # close Console
212 212 if not closing_widget._existing:
213 213 # Have kernel: don't quit, just close the tab
214 214 closing_widget.execute("exit True")
215 215 self.tab_widget.removeTab(current_tab)
216 216 background(kernel_manager.stop_channels)
217 217 else:
218 218 reply = QtGui.QMessageBox.question(self, title,
219 219 "Are you sure you want to close this Console?"+
220 220 "\nThe Kernel and other Consoles will remain active.",
221 221 okay|cancel,
222 222 defaultButton=okay
223 223 )
224 224 if reply == okay:
225 225 self.tab_widget.removeTab(current_tab)
226 226 elif keepkernel: #close console but leave kernel running (no prompt)
227 227 self.tab_widget.removeTab(current_tab)
228 228 background(kernel_manager.stop_channels)
229 229 else: #close console and kernel (no prompt)
230 230 self.tab_widget.removeTab(current_tab)
231 231 if kernel_manager and kernel_manager.channels_running:
232 232 for slave in slave_tabs:
233 233 background(slave.kernel_manager.stop_channels)
234 234 self.tab_widget.removeTab(self.tab_widget.indexOf(slave))
235 235 kernel_manager.shutdown_kernel()
236 236 background(kernel_manager.stop_channels)
237 237
238 238 self.update_tab_bar_visibility()
239 239
240 240 def add_tab_with_frontend(self,frontend,name=None):
241 241 """ insert a tab with a given frontend in the tab bar, and give it a name
242 242
243 243 """
244 244 if not name:
245 245 name = 'kernel %i' % self.next_kernel_id
246 246 self.tab_widget.addTab(frontend,name)
247 247 self.update_tab_bar_visibility()
248 248 self.make_frontend_visible(frontend)
249 249 frontend.exit_requested.connect(self.close_tab)
250 250
251 251 def next_tab(self):
252 252 self.tab_widget.setCurrentIndex((self.tab_widget.currentIndex()+1))
253 253
254 254 def prev_tab(self):
255 255 self.tab_widget.setCurrentIndex((self.tab_widget.currentIndex()-1))
256 256
257 257 def make_frontend_visible(self,frontend):
258 258 widget_index=self.tab_widget.indexOf(frontend)
259 259 if widget_index > 0 :
260 260 self.tab_widget.setCurrentIndex(widget_index)
261 261
262 262 def find_master_tab(self,tab,as_list=False):
263 263 """
264 264 Try to return the frontend that own the kernel attached to the given widget/tab.
265 265
266 266 Only find frontend owed by the current application. Selection
267 267 based on port of the kernel, might be inacurate if several kernel
268 268 on different ip use same port number.
269 269
270 270 This fonction does the conversion tabNumber/widget if needed.
271 271 Might return None if no master widget (non local kernel)
272 272 Will crash IPython if more than 1 masterWidget
273 273
274 274 When asList set to True, always return a list of widget(s) owning
275 275 the kernel. The list might be empty or containing several Widget.
276 276 """
277 277
278 278 #convert from/to int/richIpythonWidget if needed
279 279 if isinstance(tab, int):
280 280 tab = self.tab_widget.widget(tab)
281 281 km=tab.kernel_manager
282 282
283 283 #build list of all widgets
284 284 widget_list = [self.tab_widget.widget(i) for i in range(self.tab_widget.count())]
285 285
286 286 # widget that are candidate to be the owner of the kernel does have all the same port of the curent widget
287 287 # And should have a _may_close attribute
288 288 filtered_widget_list = [ widget for widget in widget_list if
289 289 widget.kernel_manager.connection_file == km.connection_file and
290 290 hasattr(widget,'_may_close') ]
291 291 # the master widget is the one that may close the kernel
292 292 master_widget= [ widget for widget in filtered_widget_list if widget._may_close]
293 293 if as_list:
294 294 return master_widget
295 295 assert(len(master_widget)<=1 )
296 296 if len(master_widget)==0:
297 297 return None
298 298
299 299 return master_widget[0]
300 300
301 301 def find_slave_widgets(self,tab):
302 302 """return all the frontends that do not own the kernel attached to the given widget/tab.
303 303
304 304 Only find frontends owned by the current application. Selection
305 305 based on connection file of the kernel.
306 306
307 307 This function does the conversion tabNumber/widget if needed.
308 308 """
309 309 #convert from/to int/richIpythonWidget if needed
310 310 if isinstance(tab, int):
311 311 tab = self.tab_widget.widget(tab)
312 312 km=tab.kernel_manager
313 313
314 314 #build list of all widgets
315 315 widget_list = [self.tab_widget.widget(i) for i in range(self.tab_widget.count())]
316 316
317 317 # widget that are candidate not to be the owner of the kernel does have all the same port of the curent widget
318 318 filtered_widget_list = ( widget for widget in widget_list if
319 319 widget.kernel_manager.connection_file == km.connection_file)
320 320 # Get a list of all widget owning the same kernel and removed it from
321 321 # the previous cadidate. (better using sets ?)
322 322 master_widget_list = self.find_master_tab(tab, as_list=True)
323 323 slave_list = [widget for widget in filtered_widget_list if widget not in master_widget_list]
324 324
325 325 return slave_list
326 326
327 327 # Populate the menu bar with common actions and shortcuts
328 328 def add_menu_action(self, menu, action, defer_shortcut=False):
329 329 """Add action to menu as well as self
330 330
331 331 So that when the menu bar is invisible, its actions are still available.
332 332
333 333 If defer_shortcut is True, set the shortcut context to widget-only,
334 334 where it will avoid conflict with shortcuts already bound to the
335 335 widgets themselves.
336 336 """
337 337 menu.addAction(action)
338 338 self.addAction(action)
339 339
340 340 if defer_shortcut:
341 341 action.setShortcutContext(QtCore.Qt.WidgetShortcut)
342 342
343 343 def init_menu_bar(self):
344 344 #create menu in the order they should appear in the menu bar
345 345 self.init_file_menu()
346 346 self.init_edit_menu()
347 347 self.init_view_menu()
348 348 self.init_kernel_menu()
349 349 self.init_magic_menu()
350 350 self.init_window_menu()
351 351 self.init_help_menu()
352 352
353 353 def init_file_menu(self):
354 354 self.file_menu = self.menuBar().addMenu("&File")
355 355
356 356 self.new_kernel_tab_act = QtGui.QAction("New Tab with &New kernel",
357 357 self,
358 358 shortcut="Ctrl+T",
359 359 triggered=self.create_tab_with_new_frontend)
360 360 self.add_menu_action(self.file_menu, self.new_kernel_tab_act)
361 361
362 362 self.slave_kernel_tab_act = QtGui.QAction("New Tab with Sa&me kernel",
363 363 self,
364 364 shortcut="Ctrl+Shift+T",
365 365 triggered=self.create_tab_with_current_kernel)
366 366 self.add_menu_action(self.file_menu, self.slave_kernel_tab_act)
367 367
368 368 self.file_menu.addSeparator()
369 369
370 370 self.close_action=QtGui.QAction("&Close Tab",
371 371 self,
372 372 shortcut=QtGui.QKeySequence.Close,
373 373 triggered=self.close_active_frontend
374 374 )
375 375 self.add_menu_action(self.file_menu, self.close_action)
376 376
377 377 self.export_action=QtGui.QAction("&Save to HTML/XHTML",
378 378 self,
379 379 shortcut=QtGui.QKeySequence.Save,
380 380 triggered=self.export_action_active_frontend
381 381 )
382 382 self.add_menu_action(self.file_menu, self.export_action, True)
383 383
384 384 self.file_menu.addSeparator()
385 385
386 386 printkey = QtGui.QKeySequence(QtGui.QKeySequence.Print)
387 387 if printkey.matches("Ctrl+P") and sys.platform != 'darwin':
388 388 # Only override the default if there is a collision.
389 389 # Qt ctrl = cmd on OSX, so the match gets a false positive on OSX.
390 390 printkey = "Ctrl+Shift+P"
391 391 self.print_action = QtGui.QAction("&Print",
392 392 self,
393 393 shortcut=printkey,
394 394 triggered=self.print_action_active_frontend)
395 395 self.add_menu_action(self.file_menu, self.print_action, True)
396 396
397 397 if sys.platform != 'darwin':
398 398 # OSX always has Quit in the Application menu, only add it
399 399 # to the File menu elsewhere.
400 400
401 401 self.file_menu.addSeparator()
402 402
403 403 self.quit_action = QtGui.QAction("&Quit",
404 404 self,
405 405 shortcut=QtGui.QKeySequence.Quit,
406 406 triggered=self.close,
407 407 )
408 408 self.add_menu_action(self.file_menu, self.quit_action)
409 409
410 410
411 411 def init_edit_menu(self):
412 412 self.edit_menu = self.menuBar().addMenu("&Edit")
413 413
414 414 self.undo_action = QtGui.QAction("&Undo",
415 415 self,
416 416 shortcut=QtGui.QKeySequence.Undo,
417 417 statusTip="Undo last action if possible",
418 418 triggered=self.undo_active_frontend
419 419 )
420 420 self.add_menu_action(self.edit_menu, self.undo_action)
421 421
422 422 self.redo_action = QtGui.QAction("&Redo",
423 423 self,
424 424 shortcut=QtGui.QKeySequence.Redo,
425 425 statusTip="Redo last action if possible",
426 426 triggered=self.redo_active_frontend)
427 427 self.add_menu_action(self.edit_menu, self.redo_action)
428 428
429 429 self.edit_menu.addSeparator()
430 430
431 431 self.cut_action = QtGui.QAction("&Cut",
432 432 self,
433 433 shortcut=QtGui.QKeySequence.Cut,
434 434 triggered=self.cut_active_frontend
435 435 )
436 436 self.add_menu_action(self.edit_menu, self.cut_action, True)
437 437
438 438 self.copy_action = QtGui.QAction("&Copy",
439 439 self,
440 440 shortcut=QtGui.QKeySequence.Copy,
441 441 triggered=self.copy_active_frontend
442 442 )
443 443 self.add_menu_action(self.edit_menu, self.copy_action, True)
444 444
445 445 self.copy_raw_action = QtGui.QAction("Copy (&Raw Text)",
446 446 self,
447 447 shortcut="Ctrl+Shift+C",
448 448 triggered=self.copy_raw_active_frontend
449 449 )
450 450 self.add_menu_action(self.edit_menu, self.copy_raw_action, True)
451 451
452 452 self.paste_action = QtGui.QAction("&Paste",
453 453 self,
454 454 shortcut=QtGui.QKeySequence.Paste,
455 455 triggered=self.paste_active_frontend
456 456 )
457 457 self.add_menu_action(self.edit_menu, self.paste_action, True)
458 458
459 459 self.edit_menu.addSeparator()
460 460
461 461 selectall = QtGui.QKeySequence(QtGui.QKeySequence.SelectAll)
462 462 if selectall.matches("Ctrl+A") and sys.platform != 'darwin':
463 463 # Only override the default if there is a collision.
464 464 # Qt ctrl = cmd on OSX, so the match gets a false positive on OSX.
465 465 selectall = "Ctrl+Shift+A"
466 466 self.select_all_action = QtGui.QAction("Select &All",
467 467 self,
468 468 shortcut=selectall,
469 469 triggered=self.select_all_active_frontend
470 470 )
471 471 self.add_menu_action(self.edit_menu, self.select_all_action, True)
472 472
473 473
474 474 def init_view_menu(self):
475 475 self.view_menu = self.menuBar().addMenu("&View")
476 476
477 477 if sys.platform != 'darwin':
478 478 # disable on OSX, where there is always a menu bar
479 479 self.toggle_menu_bar_act = QtGui.QAction("Toggle &Menu Bar",
480 480 self,
481 481 shortcut="Ctrl+Shift+M",
482 482 statusTip="Toggle visibility of menubar",
483 483 triggered=self.toggle_menu_bar)
484 484 self.add_menu_action(self.view_menu, self.toggle_menu_bar_act)
485 485
486 486 fs_key = "Ctrl+Meta+F" if sys.platform == 'darwin' else "F11"
487 487 self.full_screen_act = QtGui.QAction("&Full Screen",
488 488 self,
489 489 shortcut=fs_key,
490 490 statusTip="Toggle between Fullscreen and Normal Size",
491 491 triggered=self.toggleFullScreen)
492 492 self.add_menu_action(self.view_menu, self.full_screen_act)
493 493
494 494 self.view_menu.addSeparator()
495 495
496 496 self.increase_font_size = QtGui.QAction("Zoom &In",
497 497 self,
498 498 shortcut=QtGui.QKeySequence.ZoomIn,
499 499 triggered=self.increase_font_size_active_frontend
500 500 )
501 501 self.add_menu_action(self.view_menu, self.increase_font_size, True)
502 502
503 503 self.decrease_font_size = QtGui.QAction("Zoom &Out",
504 504 self,
505 505 shortcut=QtGui.QKeySequence.ZoomOut,
506 506 triggered=self.decrease_font_size_active_frontend
507 507 )
508 508 self.add_menu_action(self.view_menu, self.decrease_font_size, True)
509 509
510 510 self.reset_font_size = QtGui.QAction("Zoom &Reset",
511 511 self,
512 512 shortcut="Ctrl+0",
513 513 triggered=self.reset_font_size_active_frontend
514 514 )
515 515 self.add_menu_action(self.view_menu, self.reset_font_size, True)
516 516
517 517 self.view_menu.addSeparator()
518 518
519 519 self.clear_action = QtGui.QAction("&Clear Screen",
520 520 self,
521 521 shortcut='Ctrl+L',
522 522 statusTip="Clear the console",
523 523 triggered=self.clear_magic_active_frontend)
524 524 self.add_menu_action(self.view_menu, self.clear_action)
525 525
526 526 def init_kernel_menu(self):
527 527 self.kernel_menu = self.menuBar().addMenu("&Kernel")
528 528 # Qt on OSX maps Ctrl to Cmd, and Meta to Ctrl
529 529 # keep the signal shortcuts to ctrl, rather than
530 530 # platform-default like we do elsewhere.
531 531
532 532 ctrl = "Meta" if sys.platform == 'darwin' else "Ctrl"
533 533
534 534 self.interrupt_kernel_action = QtGui.QAction("Interrupt current Kernel",
535 535 self,
536 536 triggered=self.interrupt_kernel_active_frontend,
537 537 shortcut=ctrl+"+C",
538 538 )
539 539 self.add_menu_action(self.kernel_menu, self.interrupt_kernel_action)
540 540
541 541 self.restart_kernel_action = QtGui.QAction("Restart current Kernel",
542 542 self,
543 543 triggered=self.restart_kernel_active_frontend,
544 544 shortcut=ctrl+"+.",
545 545 )
546 546 self.add_menu_action(self.kernel_menu, self.restart_kernel_action)
547 547
548 548 self.kernel_menu.addSeparator()
549 549
550 550 def _make_dynamic_magic(self,magic):
551 551 """Return a function `fun` that will execute `magic` on active frontend.
552 552
553 553 Parameters
554 554 ----------
555 555 magic : string
556 556 string that will be executed as is when the returned function is called
557 557
558 558 Returns
559 559 -------
560 560 fun : function
561 561 function with no parameters, when called will execute `magic` on the
562 562 current active frontend at call time
563 563
564 564 See Also
565 565 --------
566 566 populate_all_magic_menu : generate the "All Magics..." menu
567 567
568 568 Notes
569 569 -----
570 570 `fun` execute `magic` an active frontend at the moment it is triggerd,
571 571 not the active frontend at the moment it has been created.
572 572
573 573 This function is mostly used to create the "All Magics..." Menu at run time.
574 574 """
575 575 # need to level nested function to be sure to past magic
576 576 # on active frontend **at run time**.
577 577 def inner_dynamic_magic():
578 578 self.active_frontend.execute(magic)
579 579 inner_dynamic_magic.__name__ = "dynamics_magic_s"
580 580 return inner_dynamic_magic
581 581
582 582 def populate_all_magic_menu(self, listofmagic=None):
583 583 """Clean "All Magics..." menu and repopulate it with `listofmagic`
584 584
585 585 Parameters
586 586 ----------
587 587 listofmagic : string,
588 588 repr() of a list of strings, send back by the kernel
589 589
590 590 Notes
591 591 -----
592 592 `listofmagic`is a repr() of list because it is fed with the result of
593 593 a 'user_expression'
594 594 """
595 595 alm_magic_menu = self.all_magic_menu
596 596 alm_magic_menu.clear()
597 597
598 598 # list of protected magic that don't like to be called without argument
599 599 # append '?' to the end to print the docstring when called from the menu
600 protected_magic = set(["more","less","load_ext","pycat","loadpy","save"])
600 protected_magic = set(["more","less","load_ext","pycat","loadpy","load","save"])
601 601 magics=re.findall('\w+', listofmagic)
602 602 for magic in magics:
603 603 if magic in protected_magic:
604 604 pmagic = '%s%s%s'%('%',magic,'?')
605 605 else:
606 606 pmagic = '%s%s'%('%',magic)
607 607 xaction = QtGui.QAction(pmagic,
608 608 self,
609 609 triggered=self._make_dynamic_magic(pmagic)
610 610 )
611 611 alm_magic_menu.addAction(xaction)
612 612
613 613 def update_all_magic_menu(self):
614 614 """ Update the list on magic in the "All Magics..." Menu
615 615
616 616 Request the kernel with the list of availlable magic and populate the
617 617 menu with the list received back
618 618
619 619 """
620 620 # first define a callback which will get the list of all magic and put it in the menu.
621 621 self.active_frontend._silent_exec_callback('get_ipython().lsmagic()', self.populate_all_magic_menu)
622 622
623 623 def init_magic_menu(self):
624 624 self.magic_menu = self.menuBar().addMenu("&Magic")
625 625 self.all_magic_menu = self.magic_menu.addMenu("&All Magics")
626 626
627 627 # This action should usually not appear as it will be cleared when menu
628 628 # is updated at first kernel response. Though, it is necessary when
629 629 # connecting through X-forwarding, as in this case, the menu is not
630 630 # auto updated, SO DO NOT DELETE.
631 631 self.pop = QtGui.QAction("&Update All Magic Menu ",
632 632 self, triggered=self.update_all_magic_menu)
633 633 self.add_menu_action(self.all_magic_menu, self.pop)
634 634 # we need to populate the 'Magic Menu' once the kernel has answer at
635 635 # least once let's do it immedialy, but it's assured to works
636 636 self.pop.trigger()
637 637
638 638 self.reset_action = QtGui.QAction("&Reset",
639 639 self,
640 640 statusTip="Clear all varible from workspace",
641 641 triggered=self.reset_magic_active_frontend)
642 642 self.add_menu_action(self.magic_menu, self.reset_action)
643 643
644 644 self.history_action = QtGui.QAction("&History",
645 645 self,
646 646 statusTip="show command history",
647 647 triggered=self.history_magic_active_frontend)
648 648 self.add_menu_action(self.magic_menu, self.history_action)
649 649
650 650 self.save_action = QtGui.QAction("E&xport History ",
651 651 self,
652 652 statusTip="Export History as Python File",
653 653 triggered=self.save_magic_active_frontend)
654 654 self.add_menu_action(self.magic_menu, self.save_action)
655 655
656 656 self.who_action = QtGui.QAction("&Who",
657 657 self,
658 658 statusTip="List interactive variable",
659 659 triggered=self.who_magic_active_frontend)
660 660 self.add_menu_action(self.magic_menu, self.who_action)
661 661
662 662 self.who_ls_action = QtGui.QAction("Wh&o ls",
663 663 self,
664 664 statusTip="Return a list of interactive variable",
665 665 triggered=self.who_ls_magic_active_frontend)
666 666 self.add_menu_action(self.magic_menu, self.who_ls_action)
667 667
668 668 self.whos_action = QtGui.QAction("Who&s",
669 669 self,
670 670 statusTip="List interactive variable with detail",
671 671 triggered=self.whos_magic_active_frontend)
672 672 self.add_menu_action(self.magic_menu, self.whos_action)
673 673
674 674 def init_window_menu(self):
675 675 self.window_menu = self.menuBar().addMenu("&Window")
676 676 if sys.platform == 'darwin':
677 677 # add min/maximize actions to OSX, which lacks default bindings.
678 678 self.minimizeAct = QtGui.QAction("Mini&mize",
679 679 self,
680 680 shortcut="Ctrl+m",
681 681 statusTip="Minimize the window/Restore Normal Size",
682 682 triggered=self.toggleMinimized)
683 683 # maximize is called 'Zoom' on OSX for some reason
684 684 self.maximizeAct = QtGui.QAction("&Zoom",
685 685 self,
686 686 shortcut="Ctrl+Shift+M",
687 687 statusTip="Maximize the window/Restore Normal Size",
688 688 triggered=self.toggleMaximized)
689 689
690 690 self.add_menu_action(self.window_menu, self.minimizeAct)
691 691 self.add_menu_action(self.window_menu, self.maximizeAct)
692 692 self.window_menu.addSeparator()
693 693
694 694 prev_key = "Ctrl+Shift+Left" if sys.platform == 'darwin' else "Ctrl+PgUp"
695 695 self.prev_tab_act = QtGui.QAction("Pre&vious Tab",
696 696 self,
697 697 shortcut=prev_key,
698 698 statusTip="Select previous tab",
699 699 triggered=self.prev_tab)
700 700 self.add_menu_action(self.window_menu, self.prev_tab_act)
701 701
702 702 next_key = "Ctrl+Shift+Right" if sys.platform == 'darwin' else "Ctrl+PgDown"
703 703 self.next_tab_act = QtGui.QAction("Ne&xt Tab",
704 704 self,
705 705 shortcut=next_key,
706 706 statusTip="Select next tab",
707 707 triggered=self.next_tab)
708 708 self.add_menu_action(self.window_menu, self.next_tab_act)
709 709
710 710 def init_help_menu(self):
711 711 # please keep the Help menu in Mac Os even if empty. It will
712 712 # automatically contain a search field to search inside menus and
713 713 # please keep it spelled in English, as long as Qt Doesn't support
714 714 # a QAction.MenuRole like HelpMenuRole otherwise it will loose
715 715 # this search field fonctionality
716 716
717 717 self.help_menu = self.menuBar().addMenu("&Help")
718 718
719 719
720 720 # Help Menu
721 721
722 722 self.intro_active_frontend_action = QtGui.QAction("&Intro to IPython",
723 723 self,
724 724 triggered=self.intro_active_frontend
725 725 )
726 726 self.add_menu_action(self.help_menu, self.intro_active_frontend_action)
727 727
728 728 self.quickref_active_frontend_action = QtGui.QAction("IPython &Cheat Sheet",
729 729 self,
730 730 triggered=self.quickref_active_frontend
731 731 )
732 732 self.add_menu_action(self.help_menu, self.quickref_active_frontend_action)
733 733
734 734 self.guiref_active_frontend_action = QtGui.QAction("&Qt Console",
735 735 self,
736 736 triggered=self.guiref_active_frontend
737 737 )
738 738 self.add_menu_action(self.help_menu, self.guiref_active_frontend_action)
739 739
740 740 self.onlineHelpAct = QtGui.QAction("Open Online &Help",
741 741 self,
742 742 triggered=self._open_online_help)
743 743 self.add_menu_action(self.help_menu, self.onlineHelpAct)
744 744
745 745 # minimize/maximize/fullscreen actions:
746 746
747 747 def toggle_menu_bar(self):
748 748 menu_bar = self.menuBar()
749 749 if menu_bar.isVisible():
750 750 menu_bar.setVisible(False)
751 751 else:
752 752 menu_bar.setVisible(True)
753 753
754 754 def toggleMinimized(self):
755 755 if not self.isMinimized():
756 756 self.showMinimized()
757 757 else:
758 758 self.showNormal()
759 759
760 760 def _open_online_help(self):
761 761 filename="http://ipython.org/ipython-doc/stable/index.html"
762 762 webbrowser.open(filename, new=1, autoraise=True)
763 763
764 764 def toggleMaximized(self):
765 765 if not self.isMaximized():
766 766 self.showMaximized()
767 767 else:
768 768 self.showNormal()
769 769
770 770 # Min/Max imizing while in full screen give a bug
771 771 # when going out of full screen, at least on OSX
772 772 def toggleFullScreen(self):
773 773 if not self.isFullScreen():
774 774 self.showFullScreen()
775 775 if sys.platform == 'darwin':
776 776 self.maximizeAct.setEnabled(False)
777 777 self.minimizeAct.setEnabled(False)
778 778 else:
779 779 self.showNormal()
780 780 if sys.platform == 'darwin':
781 781 self.maximizeAct.setEnabled(True)
782 782 self.minimizeAct.setEnabled(True)
783 783
784 784 def close_active_frontend(self):
785 785 self.close_tab(self.active_frontend)
786 786
787 787 def restart_kernel_active_frontend(self):
788 788 self.active_frontend.request_restart_kernel()
789 789
790 790 def interrupt_kernel_active_frontend(self):
791 791 self.active_frontend.request_interrupt_kernel()
792 792
793 793 def cut_active_frontend(self):
794 794 widget = self.active_frontend
795 795 if widget.can_cut():
796 796 widget.cut()
797 797
798 798 def copy_active_frontend(self):
799 799 widget = self.active_frontend
800 800 widget.copy()
801 801
802 802 def copy_raw_active_frontend(self):
803 803 self.active_frontend._copy_raw_action.trigger()
804 804
805 805 def paste_active_frontend(self):
806 806 widget = self.active_frontend
807 807 if widget.can_paste():
808 808 widget.paste()
809 809
810 810 def undo_active_frontend(self):
811 811 self.active_frontend.undo()
812 812
813 813 def redo_active_frontend(self):
814 814 self.active_frontend.redo()
815 815
816 816 def reset_magic_active_frontend(self):
817 817 self.active_frontend.execute("%reset")
818 818
819 819 def history_magic_active_frontend(self):
820 820 self.active_frontend.execute("%history")
821 821
822 822 def save_magic_active_frontend(self):
823 823 self.active_frontend.save_magic()
824 824
825 825 def clear_magic_active_frontend(self):
826 826 self.active_frontend.execute("%clear")
827 827
828 828 def who_magic_active_frontend(self):
829 829 self.active_frontend.execute("%who")
830 830
831 831 def who_ls_magic_active_frontend(self):
832 832 self.active_frontend.execute("%who_ls")
833 833
834 834 def whos_magic_active_frontend(self):
835 835 self.active_frontend.execute("%whos")
836 836
837 837 def print_action_active_frontend(self):
838 838 self.active_frontend.print_action.trigger()
839 839
840 840 def export_action_active_frontend(self):
841 841 self.active_frontend.export_action.trigger()
842 842
843 843 def select_all_active_frontend(self):
844 844 self.active_frontend.select_all_action.trigger()
845 845
846 846 def increase_font_size_active_frontend(self):
847 847 self.active_frontend.increase_font_size.trigger()
848 848
849 849 def decrease_font_size_active_frontend(self):
850 850 self.active_frontend.decrease_font_size.trigger()
851 851
852 852 def reset_font_size_active_frontend(self):
853 853 self.active_frontend.reset_font_size.trigger()
854 854
855 855 def guiref_active_frontend(self):
856 856 self.active_frontend.execute("%guiref")
857 857
858 858 def intro_active_frontend(self):
859 859 self.active_frontend.execute("?")
860 860
861 861 def quickref_active_frontend(self):
862 862 self.active_frontend.execute("%quickref")
863 863 #---------------------------------------------------------------------------
864 864 # QWidget interface
865 865 #---------------------------------------------------------------------------
866 866
867 867 def closeEvent(self, event):
868 868 """ Forward the close event to every tabs contained by the windows
869 869 """
870 870 if self.tab_widget.count() == 0:
871 871 # no tabs, just close
872 872 event.accept()
873 873 return
874 874 # Do Not loop on the widget count as it change while closing
875 875 title = self.window().windowTitle()
876 876 cancel = QtGui.QMessageBox.Cancel
877 877 okay = QtGui.QMessageBox.Ok
878 878
879 879 if self.confirm_exit:
880 880 if self.tab_widget.count() > 1:
881 881 msg = "Close all tabs, stop all kernels, and Quit?"
882 882 else:
883 883 msg = "Close console, stop kernel, and Quit?"
884 884 info = "Kernels not started here (e.g. notebooks) will be left alone."
885 885 closeall = QtGui.QPushButton("&Quit", self)
886 886 closeall.setShortcut('Q')
887 887 box = QtGui.QMessageBox(QtGui.QMessageBox.Question,
888 888 title, msg)
889 889 box.setInformativeText(info)
890 890 box.addButton(cancel)
891 891 box.addButton(closeall, QtGui.QMessageBox.YesRole)
892 892 box.setDefaultButton(closeall)
893 893 box.setEscapeButton(cancel)
894 894 pixmap = QtGui.QPixmap(self._app.icon.pixmap(QtCore.QSize(64,64)))
895 895 box.setIconPixmap(pixmap)
896 896 reply = box.exec_()
897 897 else:
898 898 reply = okay
899 899
900 900 if reply == cancel:
901 901 event.ignore()
902 902 return
903 903 if reply == okay:
904 904 while self.tab_widget.count() >= 1:
905 905 # prevent further confirmations:
906 906 widget = self.active_frontend
907 907 widget._confirm_exit = False
908 908 self.close_tab(widget)
909 909 event.accept()
910 910
@@ -1,1093 +1,1093 b''
1 1 {
2 2 "metadata": {
3 3 "name": "00_notebook_tour"
4 4 },
5 5 "nbformat": 3,
6 6 "worksheets": [
7 7 {
8 8 "cells": [
9 9 {
10 10 "cell_type": "markdown",
11 11 "source": [
12 12 "# A brief tour of the IPython notebook",
13 13 "",
14 14 "This document will give you a brief tour of the capabilities of the IPython notebook. ",
15 15 "You can view its contents by scrolling around, or execute each cell by typing `Shift-Enter`.",
16 16 "After you conclude this brief high-level tour, you should read the accompanying notebook ",
17 17 "titled `01_notebook_introduction`, which takes a more step-by-step approach to the features of the",
18 18 "system. ",
19 19 "",
20 20 "The rest of the notebooks in this directory illustrate various other aspects and ",
21 21 "capabilities of the IPython notebook; some of them may require additional libraries to be executed.",
22 22 "",
23 23 "**NOTE:** This notebook *must* be run from its own directory, so you must ``cd``",
24 24 "to this directory and then start the notebook, but do *not* use the ``--notebook-dir``",
25 25 "option to run it from another location.",
26 26 "",
27 27 "The first thing you need to know is that you are still controlling the same old IPython you're used to,",
28 28 "so things like shell aliases and magic commands still work:"
29 29 ]
30 30 },
31 31 {
32 32 "cell_type": "code",
33 33 "collapsed": false,
34 34 "input": [
35 35 "pwd"
36 36 ],
37 37 "language": "python",
38 38 "outputs": [
39 39 {
40 40 "output_type": "pyout",
41 41 "prompt_number": 1,
42 42 "text": [
43 43 "u'/home/fperez/ipython/ipython/docs/examples/notebooks'"
44 44 ]
45 45 }
46 46 ],
47 47 "prompt_number": 1
48 48 },
49 49 {
50 50 "cell_type": "code",
51 51 "collapsed": false,
52 52 "input": [
53 53 "ls"
54 54 ],
55 55 "language": "python",
56 56 "outputs": [
57 57 {
58 58 "output_type": "stream",
59 59 "stream": "stdout",
60 60 "text": [
61 61 "00_notebook_tour.ipynb python-logo.svg",
62 62 "01_notebook_introduction.ipynb sympy.ipynb",
63 63 "animation.m4v sympy_quantum_computing.ipynb",
64 64 "display_protocol.ipynb trapezoid_rule.ipynb",
65 65 "formatting.ipynb"
66 66 ]
67 67 }
68 68 ],
69 69 "prompt_number": 2
70 70 },
71 71 {
72 72 "cell_type": "code",
73 73 "collapsed": false,
74 74 "input": [
75 75 "message = 'The IPython notebook is great!'",
76 76 "# note: the echo command does not run on Windows, it's a unix command.",
77 77 "!echo $message"
78 78 ],
79 79 "language": "python",
80 80 "outputs": [
81 81 {
82 82 "output_type": "stream",
83 83 "stream": "stdout",
84 84 "text": [
85 85 "The IPython notebook is great!"
86 86 ]
87 87 }
88 88 ],
89 89 "prompt_number": 3
90 90 },
91 91 {
92 92 "cell_type": "markdown",
93 93 "source": [
94 94 "Plots with matplotlib: do *not* execute the next below if you do not have matplotlib installed or didn't start up ",
95 95 "this notebook with the `--pylab` option, as the code will not work."
96 96 ]
97 97 },
98 98 {
99 99 "cell_type": "code",
100 100 "collapsed": false,
101 101 "input": [
102 102 "x = linspace(0, 3*pi, 500)",
103 103 "plot(x, sin(x**2))",
104 104 "title('A simple chirp');"
105 105 ],
106 106 "language": "python",
107 107 "outputs": [
108 108 {
109 109 "output_type": "display_data",
110 110 "png": "iVBORw0KGgoAAAANSUhEUgAAAX0AAAECCAYAAAASDQdFAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztfXl0VtW5/vOFIAnzkIkhzJEQEAkCERUMSkGrYlutys+F\nS6FepLXSex1WvfVW6Kpee60XvV4XpX94FYe2FrRo1VJQY0SF4AQKsRKEEmQKCYSMkOH7/bHdycnJ\nGfZ4zvmS/ayVBUnOHr4v33n2c5733e+OxePxOAwMDAwMugWSwp6AgYGBgUFwMKRvYGBg0I1gSN/A\nwMCgG8GQvoGBgUE3giF9AwMDg24EQ/oGBgYG3QiG9A0SHi+88AIWLFigpe9bb70V//Ef/6G0z5Ur\nV2Lx4sWuv588eTKKi4uVjmlgQGFI3yB0FBYWYvDgwTh79qxQ+5tvvhmbNm1SPCuCWCyGWCymvE8v\nfPHFF5gzZ47SMQ0MKAzpG4SKAwcOoKSkBBkZGXj11VfDno4jVO9flOmvpaVF4UwMuiMM6RuEinXr\n1mHevHlYvHgxnn32Wc9rN27ciLlz52LgwIEYO3YsXnzxRQDAM888g9mzZ7ddl5SUhO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0QsP48eMxYcIEXHPNNUhN\nTcWiRYvw5ptvhj2tUFBSUoILL7wQ48ePx5AhQ/DDH/4QxcXFYU8rVMyYMQOlpaUAgNLSUsxgqIcS\nKumbPP52xONxLF26FJMnT8bPfvazsKcTGh5++GGUl5dj//79+OMf/4jLLrsM69atC3taoSInJwfb\nt29Ha2srXn/9dcybNy/sKYWC2bNn46OPPkJVVRXOnDmDN998E/Pnzw97WqGioKAATz/9NBoaGvD0\n008ziebQ7R2Tx0/w/vvv4/nnn8fbb7+N/Px85Ofnd4rUd0eY7B3gt7/9LVasWIFp06YhJSUFN910\nU9hTCgX9+/fHAw88gO9///u45JJLcP7552Pu3LlhTyswLFq0CBdddBG++uorZGdn4//+7/+wfPly\nHDx4EBMmTMA333yDO+64w7efWNwYpwYGBgbdBqErfQMDAwOD4GBI38DAwKAbwZC+gYGBQTeCIX0D\nAwODbgRD+gYGBgbdCIb0DQwMDLoR/j8U8QHdaUyIsAAAAABJRU5ErkJggg==\n"
111 111 }
112 112 ],
113 113 "prompt_number": 4
114 114 },
115 115 {
116 116 "cell_type": "markdown",
117 117 "source": [
118 118 "You can paste blocks of input with prompt markers, such as those from",
119 119 "[the official Python tutorial](http://docs.python.org/tutorial/interpreter.html#interactive-mode)"
120 120 ]
121 121 },
122 122 {
123 123 "cell_type": "code",
124 124 "collapsed": false,
125 125 "input": [
126 126 ">>> the_world_is_flat = 1",
127 127 ">>> if the_world_is_flat:",
128 128 "... print \"Be careful not to fall off!\""
129 129 ],
130 130 "language": "python",
131 131 "outputs": [
132 132 {
133 133 "output_type": "stream",
134 134 "stream": "stdout",
135 135 "text": [
136 136 "Be careful not to fall off!"
137 137 ]
138 138 }
139 139 ],
140 140 "prompt_number": 5
141 141 },
142 142 {
143 143 "cell_type": "markdown",
144 144 "source": [
145 145 "Errors are shown in informative ways:"
146 146 ]
147 147 },
148 148 {
149 149 "cell_type": "code",
150 150 "collapsed": false,
151 151 "input": [
152 152 "%run non_existent_file"
153 153 ],
154 154 "language": "python",
155 155 "outputs": [
156 156 {
157 157 "output_type": "stream",
158 158 "stream": "stderr",
159 159 "text": [
160 160 "ERROR: File `non_existent_file.py` not found."
161 161 ]
162 162 }
163 163 ],
164 164 "prompt_number": 6
165 165 },
166 166 {
167 167 "cell_type": "code",
168 168 "collapsed": false,
169 169 "input": [
170 170 "x = 1",
171 171 "y = 4",
172 172 "z = y/(1-x)"
173 173 ],
174 174 "language": "python",
175 175 "outputs": [
176 176 {
177 177 "ename": "ZeroDivisionError",
178 178 "evalue": "integer division or modulo by zero",
179 179 "output_type": "pyerr",
180 180 "traceback": [
181 181 "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
182 182 "\u001b[0;32m/home/fperez/ipython/ipython/docs/examples/notebooks/<ipython-input-7-dc39888fd1d2>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0mx\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0my\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m4\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0mz\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
183 183 "\u001b[0;31mZeroDivisionError\u001b[0m: integer division or modulo by zero"
184 184 ]
185 185 }
186 186 ],
187 187 "prompt_number": 7
188 188 },
189 189 {
190 190 "cell_type": "markdown",
191 191 "source": [
192 192 "When IPython needs to display additional information (such as providing details on an object via `x?`",
193 193 "it will automatically invoke a pager at the bottom of the screen:"
194 194 ]
195 195 },
196 196 {
197 197 "cell_type": "code",
198 198 "collapsed": true,
199 199 "input": [
200 200 "magic"
201 201 ],
202 202 "language": "python",
203 203 "outputs": [],
204 204 "prompt_number": 8
205 205 },
206 206 {
207 207 "cell_type": "markdown",
208 208 "source": [
209 209 "## Non-blocking output of kernel",
210 210 "",
211 211 "If you execute the next cell, you will see the output arriving as it is generated, not all at the end."
212 212 ]
213 213 },
214 214 {
215 215 "cell_type": "code",
216 216 "collapsed": false,
217 217 "input": [
218 218 "import time, sys",
219 219 "for i in range(8):",
220 220 " print i,",
221 221 " time.sleep(0.5)"
222 222 ],
223 223 "language": "python",
224 224 "outputs": [
225 225 {
226 226 "output_type": "stream",
227 227 "stream": "stdout",
228 228 "text": [
229 229 "0 "
230 230 ]
231 231 },
232 232 {
233 233 "output_type": "stream",
234 234 "stream": "stdout",
235 235 "text": [
236 236 "1 "
237 237 ]
238 238 },
239 239 {
240 240 "output_type": "stream",
241 241 "stream": "stdout",
242 242 "text": [
243 243 "2 "
244 244 ]
245 245 },
246 246 {
247 247 "output_type": "stream",
248 248 "stream": "stdout",
249 249 "text": [
250 250 "3 "
251 251 ]
252 252 },
253 253 {
254 254 "output_type": "stream",
255 255 "stream": "stdout",
256 256 "text": [
257 257 "4 "
258 258 ]
259 259 },
260 260 {
261 261 "output_type": "stream",
262 262 "stream": "stdout",
263 263 "text": [
264 264 "5 "
265 265 ]
266 266 },
267 267 {
268 268 "output_type": "stream",
269 269 "stream": "stdout",
270 270 "text": [
271 271 "6 "
272 272 ]
273 273 },
274 274 {
275 275 "output_type": "stream",
276 276 "stream": "stdout",
277 277 "text": [
278 278 "7"
279 279 ]
280 280 }
281 281 ],
282 282 "prompt_number": 9
283 283 },
284 284 {
285 285 "cell_type": "markdown",
286 286 "source": [
287 287 "## Clean crash and restart",
288 288 "",
289 289 "We call the low-level system libc.time routine with the wrong argument via",
290 290 "ctypes to segfault the Python interpreter:"
291 291 ]
292 292 },
293 293 {
294 294 "cell_type": "code",
295 295 "collapsed": true,
296 296 "input": [
297 297 "from ctypes import CDLL",
298 298 "# This will crash a linux system; equivalent calls can be made on Windows or Mac",
299 299 "libc = CDLL(\"libc.so.6\") ",
300 300 "libc.time(-1) # BOOM!!"
301 301 ],
302 302 "language": "python",
303 303 "outputs": [],
304 304 "prompt_number": "*"
305 305 },
306 306 {
307 307 "cell_type": "markdown",
308 308 "source": [
309 309 "## Markdown cells can contain formatted text and code",
310 310 "",
311 311 "You can *italicize*, **boldface**",
312 312 "",
313 313 "* build",
314 314 "* lists",
315 315 "",
316 316 "and embed code meant for illustration instead of execution in Python:",
317 317 "",
318 318 " def f(x):",
319 319 " \"\"\"a docstring\"\"\"",
320 320 " return x**2",
321 321 "",
322 322 "or other languages:",
323 323 "",
324 324 " if (i=0; i<n; i++) {",
325 325 " printf(\"hello %d\\n\", i);",
326 326 " x += 4;",
327 327 " }"
328 328 ]
329 329 },
330 330 {
331 331 "cell_type": "markdown",
332 332 "source": [
333 333 "Courtesy of MathJax, you can include mathematical expressions both inline: ",
334 334 "$e^{i\\pi} + 1 = 0$ and displayed:",
335 335 "",
336 336 "$$e^x=\\sum_{i=0}^\\infty \\frac{1}{i!}x^i$$"
337 337 ]
338 338 },
339 339 {
340 340 "cell_type": "markdown",
341 341 "source": [
342 342 "## Rich displays: include anyting a browser can show",
343 343 "",
344 344 "Note that we have an actual protocol for this, see the `display_protocol` notebook for further details.",
345 345 "",
346 346 "### Images"
347 347 ]
348 348 },
349 349 {
350 350 "cell_type": "code",
351 351 "collapsed": false,
352 352 "input": [
353 353 "from IPython.core.display import Image",
354 354 "Image(filename='../../source/_static/logo.png')"
355 355 ],
356 356 "language": "python",
357 357 "outputs": [
358 358 {
359 359 "output_type": "pyout",
360 360 "png": "iVBORw0KGgoAAAANSUhEUgAAAggAAABDCAYAAAD5/P3lAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAH3AAAB9wBYvxo6AAAABl0RVh0U29mdHdhcmU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/GFyI30YeDREru7ELlOq07TG3jONbbr\nT0Nu9KOQm+i/gFsDz3nTdv2fI2FbpdpfHnlpH4LcnHdAlIz5yLErqXgFnvOR7fo28lDYE7lu3kKO\nTdZ9K52xrhTl7knnUVB6SqVeTsr4apQU6lDEbG4hCsFbROsRBE1ebjrwnNB2/XGIGf5gRBkYhPyv\n7yDpjR9MtVkOnGK7/vWIgrFrVPcF4O8ZKbaXIuduWkH6KfL/JbkEsWClfWK2CDzHt10/jzhXjkGO\nyzNIZEiRD00ga3ocaLv+kUh2xo8hSuVURKmIUyiXVGYCWVzKQlJD7xrJNg85b9LX8RLgF6X6SpFU\n9Cpe28gaJgORqEEAbNffDLlvHIQoAndR8NEYilwjExD/nwuUiTQ0GAwGw7qC7fqjEUvKqsBzmhWd\nt05gu/5pyNoifw48J9N5PForxQeeNFMMBoPBYDD0DWL/llvK1In9jt4zCoLBYDAYDH2DePo5MwrJ\ndv0hFPwTnjBRDAaDwWAw9A3+hPgOHRPl25iK+FhsiuR4OARx0Lwf+J1REAwGg8Fg6AMEnvNklL78\nHMRRca/E5hVINNIVwI2B56z6/3ExLRI31pXNAAAAAElFTkSuQmCC\n",
361 361 "prompt_number": 1,
362 362 "text": [
363 363 "&lt;IPython.core.display.Image at 0x41d4690&gt;"
364 364 ]
365 365 }
366 366 ],
367 367 "prompt_number": 1
368 368 },
369 369 {
370 370 "cell_type": "markdown",
371 371 "source": [
372 372 "An image can also be displayed from raw data or a url"
373 373 ]
374 374 },
375 375 {
376 376 "cell_type": "code",
377 377 "collapsed": false,
378 378 "input": [
379 379 "Image('http://python.org/images/python-logo.gif')"
380 380 ],
381 381 "language": "python",
382 382 "outputs": [
383 383 {
384 384 "html": [
385 385 "<img src=\"http://python.org/images/python-logo.gif\" />"
386 386 ],
387 387 "output_type": "pyout",
388 388 "prompt_number": 2,
389 389 "text": [
390 390 "&lt;IPython.core.display.Image at 0x41d4550&gt;"
391 391 ]
392 392 }
393 393 ],
394 394 "prompt_number": 2
395 395 },
396 396 {
397 397 "cell_type": "markdown",
398 398 "source": [
399 399 "SVG images are also supported out of the box (since modern browsers do a good job of rendering them):"
400 400 ]
401 401 },
402 402 {
403 403 "cell_type": "code",
404 404 "collapsed": false,
405 405 "input": [
406 406 "from IPython.core.display import SVG",
407 407 "SVG(filename='python-logo.svg')"
408 408 ],
409 409 "language": "python",
410 410 "outputs": [
411 411 {
412 412 "output_type": "pyout",
413 413 "prompt_number": 3,
414 414 "svg": [
415 415 "<svg height=\"115.02pt\" id=\"svg2\" inkscape:version=\"0.43\" sodipodi:docbase=\"/home/sdeibel\" sodipodi:docname=\"logo-python-generic.svg\" sodipodi:version=\"0.32\" version=\"1.0\" width=\"388.84pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:cc=\"http://web.resource.org/cc/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:sodipodi=\"http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">",
416 416 " <metadata id=\"metadata2193\">",
417 417 " <rdf:RDF>",
418 418 " <cc:Work rdf:about=\"\">",
419 419 " <dc:format>image/svg+xml</dc:format>",
420 420 " <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>",
421 421 " </cc:Work>",
422 422 " </rdf:RDF>",
423 423 " </metadata>",
424 424 " <sodipodi:namedview bordercolor=\"#666666\" borderopacity=\"1.0\" id=\"base\" inkscape:current-layer=\"svg2\" inkscape:cx=\"243.02499\" inkscape:cy=\"71.887497\" inkscape:pageopacity=\"0.0\" inkscape:pageshadow=\"2\" inkscape:window-height=\"543\" inkscape:window-width=\"791\" inkscape:window-x=\"0\" inkscape:window-y=\"0\" inkscape:zoom=\"1.4340089\" pagecolor=\"#ffffff\"/>",
425 425 " <defs id=\"defs4\">",
426 426 " <linearGradient id=\"linearGradient2795\">",
427 427 " <stop id=\"stop2797\" offset=\"0\" style=\"stop-color:#b8b8b8;stop-opacity:0.49803922\"/>",
428 428 " <stop id=\"stop2799\" offset=\"1\" style=\"stop-color:#7f7f7f;stop-opacity:0\"/>",
429 429 " </linearGradient>",
430 430 " <linearGradient id=\"linearGradient2787\">",
431 431 " <stop id=\"stop2789\" offset=\"0\" style=\"stop-color:#7f7f7f;stop-opacity:0.5\"/>",
432 432 " <stop id=\"stop2791\" offset=\"1\" style=\"stop-color:#7f7f7f;stop-opacity:0\"/>",
433 433 " </linearGradient>",
434 434 " <linearGradient id=\"linearGradient3676\">",
435 435 " <stop id=\"stop3678\" offset=\"0\" style=\"stop-color:#b2b2b2;stop-opacity:0.5\"/>",
436 436 " <stop id=\"stop3680\" offset=\"1\" style=\"stop-color:#b3b3b3;stop-opacity:0\"/>",
437 437 " </linearGradient>",
438 438 " <linearGradient id=\"linearGradient3236\">",
439 439 " <stop id=\"stop3244\" offset=\"0\" style=\"stop-color:#f4f4f4;stop-opacity:1\"/>",
440 440 " <stop id=\"stop3240\" offset=\"1\" style=\"stop-color:#ffffff;stop-opacity:1\"/>",
441 441 " </linearGradient>",
442 442 " <linearGradient id=\"linearGradient4671\">",
443 443 " <stop id=\"stop4673\" offset=\"0\" style=\"stop-color:#ffd43b;stop-opacity:1\"/>",
444 444 " <stop id=\"stop4675\" offset=\"1\" style=\"stop-color:#ffe873;stop-opacity:1\"/>",
445 445 " </linearGradient>",
446 446 " <linearGradient id=\"linearGradient4689\">",
447 447 " <stop id=\"stop4691\" offset=\"0\" style=\"stop-color:#5a9fd4;stop-opacity:1\"/>",
448 448 " <stop id=\"stop4693\" offset=\"1\" style=\"stop-color:#306998;stop-opacity:1\"/>",
449 449 " </linearGradient>",
450 450 " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2987\" x1=\"224.23996\" x2=\"-65.308502\" xlink:href=\"#linearGradient4671\" y1=\"144.75717\" y2=\"144.75717\"/>",
451 451 " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2990\" x1=\"172.94208\" x2=\"26.670298\" xlink:href=\"#linearGradient4689\" y1=\"77.475983\" y2=\"76.313133\"/>",
452 452 " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2587\" x1=\"172.94208\" x2=\"26.670298\" xlink:href=\"#linearGradient4689\" y1=\"77.475983\" y2=\"76.313133\"/>",
453 453 " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2589\" x1=\"224.23996\" x2=\"-65.308502\" xlink:href=\"#linearGradient4671\" y1=\"144.75717\" y2=\"144.75717\"/>",
454 454 " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2248\" x1=\"172.94208\" x2=\"26.670298\" xlink:href=\"#linearGradient4689\" y1=\"77.475983\" y2=\"76.313133\"/>",
455 455 " <linearGradient gradientTransform=\"translate(100.2702,99.61116)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2250\" x1=\"224.23996\" x2=\"-65.308502\" xlink:href=\"#linearGradient4671\" y1=\"144.75717\" y2=\"144.75717\"/>",
456 456 " <linearGradient gradientTransform=\"matrix(0.562541,0,0,0.567972,-11.5974,-7.60954)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2255\" x1=\"224.23996\" x2=\"-65.308502\" xlink:href=\"#linearGradient4671\" y1=\"144.75717\" y2=\"144.75717\"/>",
457 457 " <linearGradient gradientTransform=\"matrix(0.562541,0,0,0.567972,-11.5974,-7.60954)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient2258\" x1=\"172.94208\" x2=\"26.670298\" xlink:href=\"#linearGradient4689\" y1=\"76.176224\" y2=\"76.313133\"/>",
458 458 " <radialGradient cx=\"61.518883\" cy=\"132.28575\" fx=\"61.518883\" fy=\"132.28575\" gradientTransform=\"matrix(1,0,0,0.177966,0,108.7434)\" gradientUnits=\"userSpaceOnUse\" id=\"radialGradient2801\" r=\"29.036913\" xlink:href=\"#linearGradient2795\"/>",
459 459 " <linearGradient gradientTransform=\"matrix(0.562541,0,0,0.567972,-9.399749,-5.305317)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient1475\" x1=\"150.96111\" x2=\"112.03144\" xlink:href=\"#linearGradient4671\" y1=\"192.35176\" y2=\"137.27299\"/>",
460 460 " <linearGradient gradientTransform=\"matrix(0.562541,0,0,0.567972,-9.399749,-5.305317)\" gradientUnits=\"userSpaceOnUse\" id=\"linearGradient1478\" x1=\"26.648937\" x2=\"135.66525\" xlink:href=\"#linearGradient4689\" y1=\"20.603781\" y2=\"114.39767\"/>",
461 461 " <radialGradient cx=\"61.518883\" cy=\"132.28575\" fx=\"61.518883\" fy=\"132.28575\" gradientTransform=\"matrix(2.382716e-8,-0.296405,1.43676,4.683673e-7,-128.544,150.5202)\" gradientUnits=\"userSpaceOnUse\" id=\"radialGradient1480\" r=\"29.036913\" xlink:href=\"#linearGradient2795\"/>",
462 462 " </defs>",
463 463 " <g id=\"g2303\">",
464 464 " <path d=\"M 184.61344,61.929363 C 184.61344,47.367213 180.46118,39.891193 172.15666,39.481813 C 168.85239,39.325863 165.62611,39.852203 162.48754,41.070593 C 159.98254,41.967323 158.2963,42.854313 157.40931,43.751043 L 157.40931,78.509163 C 162.72147,81.842673 167.43907,83.392453 171.55234,83.148783 C 180.25649,82.573703 184.61344,75.507063 184.61344,61.929363 z M 194.85763,62.533683 C 194.85763,69.931723 193.12265,76.072393 189.63319,80.955683 C 185.7441,86.482283 180.35396,89.328433 173.46277,89.484393 C 168.26757,89.650093 162.91642,88.022323 157.40931,84.610843 L 157.40931,116.20116 L 148.50047,113.02361 L 148.50047,42.903043 C 149.96253,41.109583 151.84372,39.569543 154.12454,38.263433 C 159.42696,35.173603 165.86978,33.584823 173.45302,33.506853 L 173.57973,33.633563 C 180.50991,33.545833 185.85132,36.391993 189.60395,42.162263 C 193.10315,47.454933 194.85763,54.238913 194.85763,62.533683 z \" id=\"path46\" style=\"fill:#646464;fill-opacity:1\"/>",
465 465 " <path d=\"M 249.30487,83.265743 C 249.30487,93.188283 248.31067,100.05998 246.32227,103.88084 C 244.32411,107.7017 240.52275,110.75254 234.90842,113.02361 C 230.35653,114.81707 225.43425,115.79178 220.15133,115.95748 L 218.67952,110.34316 C 224.05016,109.61213 227.83204,108.88109 230.02513,108.15006 C 234.34309,106.688 237.30621,104.44617 238.93397,101.44406 C 240.24008,98.997543 240.88339,94.328693 240.88339,87.418003 L 240.88339,85.098203 C 234.79146,87.866373 228.40711,89.240713 221.73036,89.240713 C 217.34417,89.240713 213.47457,87.866373 210.14107,85.098203 C 206.39818,82.086343 204.52674,78.265483 204.52674,73.635623 L 204.52674,36.557693 L 213.43558,33.506853 L 213.43558,70.828453 C 213.43558,74.815013 214.7222,77.885353 217.29543,80.039463 C 219.86866,82.193563 223.20217,83.226753 227.2862,83.148783 C 231.37023,83.061053 235.74667,81.482023 240.39603,78.392203 L 240.39603,34.851953 L 249.30487,34.851953 L 249.30487,83.265743 z \" id=\"path48\" style=\"fill:#646464;fill-opacity:1\"/>",
466 466 " <path d=\"M 284.08249,88.997033 C 283.02006,89.084753 282.04535,89.123743 281.14862,89.123743 C 276.10937,89.123743 272.18129,87.924853 269.37413,85.517323 C 266.57671,83.109793 265.17314,79.786033 265.17314,75.546053 L 265.17314,40.456523 L 259.07146,40.456523 L 259.07146,34.851953 L 265.17314,34.851953 L 265.17314,19.968143 L 274.07223,16.800333 L 274.07223,34.851953 L 284.08249,34.851953 L 284.08249,40.456523 L 274.07223,40.456523 L 274.07223,75.302373 C 274.07223,78.645623 274.96896,81.014163 276.76243,82.398253 C 278.30247,83.538663 280.74899,84.191723 284.08249,84.357423 L 284.08249,88.997033 z \" id=\"path50\" style=\"fill:#646464;fill-opacity:1\"/>",
467 467 " <path d=\"M 338.02288,88.266003 L 329.11404,88.266003 L 329.11404,53.878273 C 329.11404,50.379063 328.29528,47.367213 326.66753,44.852463 C 324.78634,42.006313 322.17411,40.583233 318.82112,40.583233 C 314.73708,40.583233 309.6296,42.737343 303.4987,47.045563 L 303.4987,88.266003 L 294.58985,88.266003 L 294.58985,6.0687929 L 303.4987,3.2616329 L 303.4987,40.700203 C 309.191,36.557693 315.40963,34.481563 322.16436,34.481563 C 326.88196,34.481563 330.70282,36.070333 333.62694,39.238143 C 336.56082,42.405943 338.02288,46.353513 338.02288,51.071103 L 338.02288,88.266003 L 338.02288,88.266003 z \" id=\"path52\" style=\"fill:#646464;fill-opacity:1\"/>",
468 468 " <path d=\"M 385.37424,60.525783 C 385.37424,54.930953 384.31182,50.310833 382.19669,46.655673 C 379.68195,42.201253 375.77337,39.852203 370.49044,39.608523 C 360.72386,40.173863 355.85032,47.172273 355.85032,60.584263 C 355.85032,66.734683 356.86401,71.871393 358.91089,75.994413 C 361.52312,81.248093 365.44145,83.840823 370.66589,83.753103 C 380.47146,83.675123 385.37424,75.935933 385.37424,60.525783 z M 395.13109,60.584263 C 395.13109,68.547643 393.09395,75.175663 389.02941,80.468333 C 384.5555,86.394563 378.37584,89.367423 370.49044,89.367423 C 362.67328,89.367423 356.58135,86.394563 352.18541,80.468333 C 348.19885,75.175663 346.21044,68.547643 346.21044,60.584263 C 346.21044,53.098503 348.36455,46.801883 352.67276,41.674913 C 357.22466,36.236033 363.20937,33.506853 370.6074,33.506853 C 378.00545,33.506853 384.02914,36.236033 388.66877,41.674913 C 392.97697,46.801883 395.13109,53.098503 395.13109,60.584263 z \" id=\"path54\" style=\"fill:#646464;fill-opacity:1\"/>",
469 469 " <path d=\"M 446.20583,88.266003 L 437.29699,88.266003 L 437.29699,51.928853 C 437.29699,47.942293 436.0981,44.832973 433.70032,42.591133 C 431.30253,40.359053 428.10549,39.277123 424.11893,39.364853 C 419.8887,39.442833 415.86314,40.826913 412.04229,43.507363 L 412.04229,88.266003 L 403.13345,88.266003 L 403.13345,42.405943 C 408.26042,38.672813 412.97801,36.236033 417.28621,35.095623 C 421.35076,34.033193 424.93769,33.506853 428.02752,33.506853 C 430.14264,33.506853 432.13104,33.711543 434.00248,34.120913 C 437.50169,34.929923 440.34783,36.430973 442.54093,38.633823 C 444.98744,41.070593 446.20583,43.994723 446.20583,47.415943 L 446.20583,88.266003 z \" id=\"path56\" style=\"fill:#646464;fill-opacity:1\"/>",
470 470 " <path d=\"M 60.510156,6.3979729 C 55.926503,6.4192712 51.549217,6.8101906 47.697656,7.4917229 C 36.35144,9.4962267 34.291407,13.691825 34.291406,21.429223 L 34.291406,31.647973 L 61.103906,31.647973 L 61.103906,35.054223 L 34.291406,35.054223 L 24.228906,35.054223 C 16.436447,35.054223 9.6131468,39.73794 7.4789058,48.647973 C 5.0170858,58.860939 4.9078907,65.233996 7.4789058,75.897973 C 9.3848341,83.835825 13.936449,89.491721 21.728906,89.491723 L 30.947656,89.491723 L 30.947656,77.241723 C 30.947656,68.391821 38.6048,60.585475 47.697656,60.585473 L 74.478906,60.585473 C 81.933857,60.585473 87.885159,54.447309 87.885156,46.960473 L 87.885156,21.429223 C 87.885156,14.162884 81.755176,8.7044455 74.478906,7.4917229 C 69.872919,6.7249976 65.093809,6.3766746 60.510156,6.3979729 z M 46.010156,14.616723 C 48.779703,14.616723 51.041406,16.915369 51.041406,19.741723 C 51.041404,22.558059 48.779703,24.835473 46.010156,24.835473 C 43.23068,24.835472 40.978906,22.558058 40.978906,19.741723 C 40.978905,16.91537 43.23068,14.616723 46.010156,14.616723 z \" id=\"path1948\" style=\"fill:url(#linearGradient1478);fill-opacity:1\"/>",
471 471 " <path d=\"M 91.228906,35.054223 L 91.228906,46.960473 C 91.228906,56.191228 83.403011,63.960472 74.478906,63.960473 L 47.697656,63.960473 C 40.361823,63.960473 34.291407,70.238956 34.291406,77.585473 L 34.291406,103.11672 C 34.291406,110.38306 40.609994,114.65704 47.697656,116.74172 C 56.184987,119.23733 64.323893,119.68835 74.478906,116.74172 C 81.229061,114.78733 87.885159,110.85411 87.885156,103.11672 L 87.885156,92.897973 L 61.103906,92.897973 L 61.103906,89.491723 L 87.885156,89.491723 L 101.29141,89.491723 C 109.08387,89.491723 111.98766,84.056315 114.69765,75.897973 C 117.49698,67.499087 117.37787,59.422197 114.69765,48.647973 C 112.77187,40.890532 109.09378,35.054223 101.29141,35.054223 L 91.228906,35.054223 z M 76.166406,99.710473 C 78.945884,99.710476 81.197656,101.98789 81.197656,104.80422 C 81.197654,107.63057 78.945881,109.92922 76.166406,109.92922 C 73.396856,109.92922 71.135156,107.63057 71.135156,104.80422 C 71.135158,101.98789 73.396853,99.710473 76.166406,99.710473 z \" id=\"path1950\" style=\"fill:url(#linearGradient1475);fill-opacity:1\"/>",
472 472 " <path d=\"M 463.5544,26.909383 L 465.11635,26.909383 L 465.11635,17.113143 L 468.81648,17.113143 L 468.81648,15.945483 L 459.85427,15.945483 L 459.85427,17.113143 L 463.5544,17.113143 L 463.5544,26.909383 M 470.20142,26.909383 L 471.53589,26.909383 L 471.53589,17.962353 L 474.4323,26.908259 L 475.91799,26.908259 L 478.93615,17.992683 L 478.93615,26.909383 L 480.39194,26.909383 L 480.39194,15.945483 L 478.46605,15.945483 L 475.16774,25.33834 L 472.35477,15.945483 L 470.20142,15.945483 L 470.20142,26.909383\" id=\"text3004\" style=\"font-size:15.16445827px;font-style:normal;font-weight:normal;line-height:125%;fill:#646464;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans\"/>",
473 473 " <path d=\"M 110.46717 132.28575 A 48.948284 8.6066771 0 1 1 12.570599,132.28575 A 48.948284 8.6066771 0 1 1 110.46717 132.28575 z\" id=\"path1894\" style=\"opacity:0.44382019;fill:url(#radialGradient1480);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" transform=\"matrix(0.73406,0,0,0.809524,16.24958,27.00935)\"/>",
474 474 " </g>",
475 475 "</svg>"
476 476 ],
477 477 "text": [
478 478 "&lt;IPython.core.display.SVG at 0x41d4910&gt;"
479 479 ]
480 480 }
481 481 ],
482 482 "prompt_number": 3
483 483 },
484 484 {
485 485 "cell_type": "markdown",
486 486 "source": [
487 487 "#### Embedded vs Non-embedded Images"
488 488 ]
489 489 },
490 490 {
491 491 "cell_type": "markdown",
492 492 "source": [
493 493 "As of IPython 0.13, images are embedded by default for compatibility with QtConsole, and the ability to still be displayed offline.",
494 494 "",
495 495 "Let's look at the differences:"
496 496 ]
497 497 },
498 498 {
499 499 "cell_type": "code",
500 500 "collapsed": false,
501 501 "input": [
502 502 "# by default Image data are embedded",
503 503 "Embed = Image( 'http://www.google.fr/images/srpr/logo3w.png')",
504 504 "",
505 505 "# if kwarg `url` is given, the embedding is assumed to be false",
506 506 "SoftLinked = Image(url='http://www.google.fr/images/srpr/logo3w.png')",
507 507 "",
508 508 "# In each case, embed can be specified explicitly with the `embed` kwarg",
509 509 "# ForceEmbed = Image(url='http://www.google.fr/images/srpr/logo3w.png', embed=True)"
510 510 ],
511 511 "language": "python",
512 512 "outputs": [],
513 513 "prompt_number": 6
514 514 },
515 515 {
516 516 "cell_type": "markdown",
517 517 "source": [
518 518 "Today's Google doodle, (at the time I created this notebook). This should also work in the Qtconsole.",
519 519 "Drawback is that the saved notebook will be larger, but the image will still be present offline."
520 520 ]
521 521 },
522 522 {
523 523 "cell_type": "code",
524 524 "collapsed": false,
525 525 "input": [
526 526 "Embed"
527 527 ],
528 528 "language": "python",
529 529 "outputs": [
530 530 {
531 531 "jpeg": "/9j/2wBDAAMCAgICAgMCAgMFAwMDBQUEAwMEBQYFBQUFBQYIBgcHBwcGCAgJCgoKCQgMDAwMDAwO\nDg4ODhAQEBAQEBAQEBD/2wBDAQMEBAYGBgwICAwSDgwOEhQQEBAQFBEQEBAQEBEREBAQEBAQERAQ\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AVeJw8hTKjXESae7Fh0xCnJTiRJQlzYlIJOEKJPyGg5+QPDx4ya+kYs6\ntNqOMGXKjxk9uuUuvIx+WgeFL8D3iwqLWJtLhwdwyDMq7SiP2gwXfTQOen/Rw8dJoDtVuKhQCrG5\nCXJchacD4iOgH89A6aL9GfdgG2t8SGI7ZyVNQaUtzv1IBdkI6fhoHdSvo1LMipUmpXzVJAcAS97N\nGixysA5xlYdOM/PQOWF9HL4fooSZsmtzSnqeZUUtJOBjswy3jQOWH4MvClSEJbkW0xIKPWbUpbh/\nEKfA/doHBTeBXhdoG0QLOoJKTkFcVqWrP3uBw6B002g8KKSoOUO2YMdaeiVQ6OlBH3FDI0C81W0I\nRsiUqXtHuhLCWx/zqToPsVWsOf0VHcHzdeZR/hKtAGTczh+zgxmh/wCZIWo/klsaA5d0uDBehs/M\nNuuH9606A+rq+v8ApKuEf+lGbH+Mr0AKJLV/T1aUv9ktN/4EDQH6Nwlf00iU9+3Kex+QUBoPf0Wo\nBOXIaXT8XSpz/GToNhqiUdj+hgsI+YaR/loNpDLLfRtCU/cAP4aD70BoDQGgNAaA0BoDQGgNAaA0\nBoDQGgNAaA0BoDQGgNAaA0BoDQGgNAaA0BoDQJlzU52rW/UKawAXZDLjbee24jp+/QYI9SrYYbbF\nIc3pSkKU480gFQHXsVHvoMntNzOe7BjNftyVr/wtjQHLulfd6GyPk064fzK0/wANAfV1fWcuVcI+\nTUZsf4yvQBokpwYfq0pfx2Ftv/AgHQH6OQ1f00iU98lynsfkFDQAtW3wdyoSHD8XCpw/8xOg2WqJ\nRmP6GCwj5hpH+Wg2kMstjDaEp+4Afw0H3oDQGgNAaA0BoDQGgNAaA0BoDQGgNAaA0BoDQGgNAaA0\nBoDQGgNAaA0H/9k=\n",
532 532 "output_type": "pyout",
533 533 "prompt_number": 7,
534 534 "text": [
535 535 "<IPython.core.display.Image at 0x107deaad0>"
536 536 ]
537 537 }
538 538 ],
539 539 "prompt_number": 7
540 540 },
541 541 {
542 542 "cell_type": "markdown",
543 543 "source": [
544 544 "Today's Google doodle, visible only with an active internet connexion, that should be different from the previous one. This will not work on Qtconsole.",
545 545 "Notebook saved with this kind of image will be lighter and always reflect the current version of the source, but the image won't display offline."
546 546 ]
547 547 },
548 548 {
549 549 "cell_type": "code",
550 550 "collapsed": false,
551 551 "input": [
552 552 "SoftLinked"
553 553 ],
554 554 "language": "python",
555 555 "outputs": [
556 556 {
557 557 "html": [
558 558 "<img src=\"http://www.google.fr/images/srpr/logo3w.png\" />"
559 559 ],
560 560 "output_type": "pyout",
561 561 "prompt_number": 5,
562 562 "text": [
563 563 "<IPython.core.display.Image at 0x107dea890>"
564 564 ]
565 565 }
566 566 ],
567 567 "prompt_number": 5
568 568 },
569 569 {
570 570 "cell_type": "markdown",
571 571 "source": [
572 572 "Of course, if you re-run this notebook, the two doodles will be the same again.",
573 573 "<!-- well actually I cheated a little, by setting Embed Url to http://www.google.com/logos/2012/doisneau12-hp.jpg then editing the ipynb myself and replacing it by the other url -->"
574 574 ]
575 575 },
576 576 {
577 577 "cell_type": "markdown",
578 578 "source": [
579 579 "### Video"
580 580 ]
581 581 },
582 582 {
583 583 "cell_type": "markdown",
584 584 "source": [
585 585 "And more exotic objects can also be displayed, as long as their representation supports ",
586 586 "the IPython display protocol.",
587 587 "",
588 588 "For example, videos hosted externally on YouTube are easy to load (and writing a similar wrapper for other",
589 589 "hosted content is trivial):"
590 590 ]
591 591 },
592 592 {
593 593 "cell_type": "code",
594 594 "collapsed": false,
595 595 "input": [
596 596 "from IPython.lib.display import YouTubeVideo",
597 597 "# a talk about IPython at Sage Days at U. Washington, Seattle.",
598 598 "# Video credit: William Stein.",
599 599 "YouTubeVideo('1j_HxD4iLn8')"
600 600 ],
601 601 "language": "python",
602 602 "outputs": [
603 603 {
604 604 "html": [
605 605 "",
606 606 " <iframe",
607 607 " width=\"400\"",
608 608 " height=\"300\"",
609 609 " src=\"http://www.youtube.com/embed/1j_HxD4iLn8\"",
610 610 " frameborder=\"0\"",
611 611 " allowfullscreen",
612 612 " ></iframe>",
613 613 " "
614 614 ],
615 615 "output_type": "pyout",
616 616 "prompt_number": 4,
617 617 "text": [
618 618 "&lt;IPython.lib.display.YouTubeVideo at 0x41d4310&gt;"
619 619 ]
620 620 }
621 621 ],
622 622 "prompt_number": 4
623 623 },
624 624 {
625 625 "cell_type": "markdown",
626 626 "source": [
627 627 "Using the nascent video capabilities of modern browsers, you may also be able to display local",
628 628 "videos. At the moment this doesn't work very well in all browsers, so it may or may not work for you;",
629 629 "we will continue testing this and looking for ways to make it more robust. ",
630 630 "",
631 631 "The following cell loads a local file called `animation.m4v`, encodes the raw video as base64 for http",
632 632 "transport, and uses the HTML5 video tag to load it. On Chrome 15 it works correctly, displaying a control",
633 633 "bar at the bottom with a play/pause button and a location slider."
634 634 ]
635 635 },
636 636 {
637 637 "cell_type": "code",
638 638 "collapsed": false,
639 639 "input": [
640 640 "from IPython.core.display import HTML",
641 641 "video = open(\"animation.m4v\", \"rb\").read()",
642 642 "video_encoded = video.encode(\"base64\")",
643 643 "video_tag = '<video controls alt=\"test\" src=\"data:video/x-m4v;base64,{0}\">'.format(video_encoded)",
644 644 "HTML(data=video_tag)"
645 645 ],
646 646 "language": "python",
647 647 "outputs": [
648 648 {
649 649 "html": [
650 650 "<video controls alt=\"test\" src=\"data:video/x-m4v;base64,AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAqiW1kYXQAAAKMBgX//4jcRem9",
651 651 "5tlIt5Ys2CDZI+7veDI2NCAtIGNvcmUgMTE4IC0gSC4yNjQvTVBFRy00IEFWQyBjb2RlYyAtIENv",
652 652 "cHlsZWZ0IDIwMDMtMjAxMSAtIGh0dHA6Ly93d3cudmlkZW9sYW4ub3JnL3gyNjQuaHRtbCAtIG9w",
653 653 "dGlvbnM6IGNhYmFjPTEgcmVmPTMgZGVibG9jaz0xOjA6MCBhbmFseXNlPTB4MzoweDExMyBtZT1o",
654 654 "ZXggc3VibWU9NyBwc3k9MSBwc3lfcmQ9MS4wMDowLjAwIG1peGVkX3JlZj0xIG1lX3JhbmdlPTE2",
655 655 "IGNocm9tYV9tZT0xIHRyZWxsaXM9MSA4eDhkY3Q9MSBjcW09MCBkZWFkem9uZT0yMSwxMSBmYXN0",
656 656 "X3Bza2lwPTEgY2hyb21hX3FwX29mZnNldD0tMiB0aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBu",
657 657 "cj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9p",
658 658 "bnRyYT0wIGJmcmFtZXM9MyBiX3B5cmFtaWQ9MiBiX2FkYXB0PTEgYl9iaWFzPTAgZGlyZWN0PTEg",
659 659 "d2VpZ2h0Yj0xIG9wZW5fZ29wPTAgd2VpZ2h0cD0yIGtleWludD0yNTAga2V5aW50X21pbj0yNSBz",
660 660 "Y2VuZWN1dD00MCBpbnRyYV9yZWZyZXNoPTAgcmNfbG9va2FoZWFkPTQwIHJjPWNyZiBtYnRyZWU9",
661 661 "MSBjcmY9MjMuMCBxY29tcD0wLjYwIHFwbWluPTAgcXBtYXg9NjkgcXBzdGVwPTQgaXBfcmF0aW89",
662 662 "MS40MCBhcT0xOjEuMDAAgAAACqVliIQAV/0TAAI/3gU2tIW7KawwaCmQGTGHKmuYAAADACBcshU+",
663 663 "yICkgAA14AHowiEeT6ei7v7h3Hu0i2fpUBLGBIkbCMP3Vfz+9BVGCDXnw9Uv5o3iN030tb7eq6rs",
664 664 "EEhHs2azbdTiE9Csz5Zm6SiUWRdmB43hbD5i6syATuODUJd7LM3d9cbFpc7zFlu5y3vUmNGd6urp",
665 665 "vKKT9iyleIyTuR1sVS431DhevGfkUllVeIznYUe2USoMW1tufETjyRdmGldN6eNlhAOsGAH4z+Hk",
666 666 "rwKecPPU7Q5T4gDAIxj9hW84jVExMTSTHxkPTq1I4OotgUxURCGTsw60k/ezPNmNg38j1bqaGmPc",
667 667 "ruDKEIBDsK5qEytFB90Q68s0h2wmlf2KXd5bleBefiK+/p47ZsyUO4IdlW25rRy+HLjt6wQXfYee",
668 668 "3IkiQOoOK+U7u/lxcl78zfxwIoEMjUUSKNZjkp8clnmecDDJ3Kz+viF7bPklk7N6QRyizAKPIIpn",
669 669 "NJUuMWQmqeL2Or6cr4D0/0tOym+4tficxmhuEONKUtO2pPn3hRjMllkd12tXp70fLTfxy0dwB70M",
670 670 "L9iLEcItHb7zVupHlP5RxdvecpREw+OsIPr9KWilIesNE19jgIbT+TkiRBjOoKvUuwcQnKg7fOTH",
671 671 "VoLvnKuAfea+oujEdm1Rwd2tEOnkF+ZC11WaNQsiNR/eJ9EnUXjXDYGfhB+Oe7qj8nYTT+eOXg1c",
672 672 "uJNgLXEs4vOheWEjQOqfIWMQc3DmTof5s0ksBmUQ3PQ+UHPxZSnmOEZB+j6xT3wbm7HGzDjWtSg1",
673 673 "SjTxd1EiJ8xA4SIxxR8WIKLg+TwFxJNS7Laxq7Uglu3AkXe82P1JCdJX5PsbFbxuDbuJgakzRcTw",
674 674 "MLLSKCiizS/eCW0uJed/lev9yb80kKlVET4S219cn/zhkpeDV83cHYOr+sJQKDRk/Wh2c7fsuxfx",
675 675 "aEH/6reSmvFDsAnXAyPXliJ3G4VG3OkEM5K5WyGGrBizZbTrdGsBnzj5VSGGOJdCKuRrUluw/8es",
676 676 "2vYRPs9BcTqAqvHk9M52SSIf+1T6L53EZP8VbtXB+G29CMW4xVCK/B/YDjaNmqMwJ61dapugjnWJ",
677 677 "fqeXlGGa3Ch3aA7gi30T8PucNRBjLK3lF67ZDDvkWXRQXd+VMnKWHkBbCkQ/F/fMuNpHO3C00Y2p",
678 678 "ljna1qImBhVMvPe0F7Qx7G/YyxLRzhyUU8e23HGzp0agtNJRbydbrPV+TqJMSifJMNcZIf8wkdnC",
679 679 "3/xdpcXnLf2Ye3Kbd0o7utciTG+q5h6WTEk+PaNbXLLA0YyZ2VnLTcyV1QTS76aNCbV9Q1/OQ7QU",
680 680 "81Gg0hPa9aSiscGary6jLVwDQaik4zLsi7jPqgPVdup7pwx7uJDqRCVcVi5QoZFp/GHdex5sJTF6",
681 681 "9A6sja69/NLkFIWNSIeRcuGahXpF+wZeYIrqJv975s1TKYKAvp1WtzgtgWNkcbzCtROqf8rPtlAI",
682 682 "xkX8GLcEo9zfExyfimeXQ64qfFxEy0IMy2Hsxau9fSMqUnIjntuVVjCQtBL+94gx1RZLndE6wROV",
683 683 "Tq/wHwHrQzo9QL9cpPqPFJjiZ/NGZIFuudS+wsBFe6Hu8Oitf5zToLqLdtU4Smwh4ne3JsiT9lOz",
684 684 "N+4PPw3VSx9l5FppVwdKUWELw1dYpCOppyVWlJ3YQ8H4FQQM8EcYMG9N3Bxu79y1J1ikuvuhMmLQ",
685 685 "lehLTbguhbix74hd1VIQC8EjHmOZSSWbssulYwPbr6FF49tifk6PymJvulR9/u+2585HkRfbxveG",
686 686 "eWCz0ix1pIVfaNpESKmtLy/0mcbMg9hYDz2werz9oe0lT2BiMV6uAin6RaQcT8Vk9MPctfwae+gk",
687 687 "vtnZA/sOBk8MbpylaHqc0KIVHhhLFMNnkOFiucjtGo/JWTa/F6g8wWeow5ZuIJUORaYHWqegZbTg",
688 688 "M9dCsYYsfZGjjVMuSlDIvpYvIvFFooGPC7Ye2Jfawmq4Ut7EL/nv/dyAd2HRc5msmUhzeu/XpX3r",
689 689 "VlzRmf9/Qan8Dbve3QfW1Ym0o5J/KAc3z1VBho7JBr5PgCL68RiD9jZHN0VvsT4gzsEjNlW3D91U",
690 690 "y4RduaodBFoNTzXwlfUYULBzdiTbH75l/UmVMC4TKeTWhNzw2UezaqeGd8at3WSY7W/VR3+hvZHD",
691 691 "pkIjgKuNNH0DsCRa/Kk56XQoHIyvvUH/eNekNvziReqS4qgLnXUT4BRGt2BOtCifI6+X/DGHUOmW",
692 692 "lX7TN5b4pw5U7jwfwshtbhGZM49T8JMk15Mzrc7tM6J11TYxb5R3mQhZ8TZumJ0bMJXPM69HFyih",
693 693 "r5dJSEJMycxJVUh6NTQALUOoRTHIOwE+FpWI6feTv1SiZ0YpYe5DbkYJJbN7zAHbAKw25XvqR2mA",
694 694 "jQmOlsfX/tK8DPjP/8h5/xgAF4EUbj1tOnQCBQL8jk9vHtfsXncsprww4Z+P/Z/UrKifuFyEpBWN",
695 695 "8kLpF7yywE2iYdDruV9+/qKR8rC9ozNKyqQNIwtxrzYkWpE5t8K7gG4JFnrHona/Rp8dOX6VW41+",
696 696 "jb5LB1LEtE8MwjLp3RCUOq/+6yLzaOEgBTqzvEjDeFpg/u9DMHMr4/2TOchfjg7dl+uQ6Gsx+4Ia",
697 697 "9W7vivG95027p25eKL0nHvx/OqmAQEZYJL/JO58lOj0zPdJxrQ5dZksjMISzVZNn7DsxqE3zgBBu",
698 698 "Nzk50R8lTK3U8P12QiOAQYSTeGlYlkvfeofrfO1AitEj02m9aUkxTFd1ZZJoLQT2d3zEU5PmE4lx",
699 699 "MVfL5ttNnIbqfcIU2RJKNWqdw77xfjfrNc/eNpRKPZ/6z50LzBprgjzBHRfKgSWWkDxHrX0aTbgw",
700 700 "QFwd51+PoUWH4DkQg26uGslF5Hn3hB58+fkeLTosTANOIBNAeFZtTc4PIaLHw759zae7scY55xcT",
701 701 "abzlilYIftst2RZ6ntsRC3zFxduCKvL6wLfYT+TiIWJn5P7sTwZwXuSzXY+9Q3xMZ5o4Xcpz6vD9",
702 702 "FtTjzS69iefEYt4pXiDrZUo4ePGiLeoIFIwYB/v6GXdmG5VLLk+eKbOc9AmsX2zmvqtcvDRGQbzu",
703 703 "gXbH/kTH/lkNPBTmqN3ZJODUEXVohPEJ6th0xna0EVleB73Q3eNvaVUvhlJbjs3D/T17FRCebN7A",
704 704 "OXvzzbLE/I5kNfEmJcv4dxtIeo2uQ/z9ohSpiZzbDj1u40nJRyJxUK60wEv0nA9f/NuJ6/PEyU0b",
705 705 "kK16z2KH12k3Lc4+1f5fawIzkK2qJRB4wnj8VHhUW9mbJhs9vgfFmU3xrXSShY67Ygb+gYNPxxtn",
706 706 "4K/9eTSwIA9fv/nR33lA2lZoXALRUTmOZIl3R0gAM5h6oX1y1thIyqViBK95VZc8Pvy7G3O90M9S",
707 707 "4zkpyFQ36jrMazvMveMA4d39fvoaC7p90quiJfjI4yrl+ECVkCJL5MxRSa+iVcIL7Xbl0jVaGhZI",
708 708 "cMYmcGOBbLzhJgloM1x1zFnnj3ggJRFAM8yNnXxhavk+mA18JC+y3lqGsp6vPReRxGlGHMou17L4",
709 709 "It070LzkoeCzarpv8Apw59smdS5KN9qVN1WgeL7OSN8BHg94ubCvS7DW6H3/PbtRB62jFLsBhUV5",
710 710 "YqCIbIN5VZ81AAACpUGaIWxFfwAru8x8uT3FuOjrAeSWXmAWqq9jCNGE+N5AOv//9//xjk4uBAcA",
711 711 "DN96c97AVGmzRtnWwPsgcCbLrVdQJgbKp4QSmPwQnVhv0hXyBjeFWWlcvx70urEN3FK6/lvk2tQe",
712 712 "ZgbtlbzXluvTfnSj/Ctz7vZ+O1FjhDzzdpL7uLzewzCIW5VWLAEKUVuS2J6wNk6MR7UblcEd4EtO",
713 713 "Y+R4/qJgfojCsfRvA0oC5dc41Vd0erZbSkrmPTjLCn815bxlchUJMS8gQD5hJNwoKHvNLNwn7XKu",
714 714 "TtYIhH2wVNZvDWgzCjlPeQajnrcMsb6bZYJvNJU8HuGHvm50r7VG8qifEwmuyegAZXojh5Ul5Vvj",
715 715 "DW7kSAZyw8a7I6mHY3FZHd+OA3V4JZMbNliI3Tj1L6+MKTmilVialmyZagRtEMeKRdtxUPd3vVEt",
716 716 "rOBVIVYWdgAGA7HmZiHQUQNxLkWxbLyWVlrh5EM0Do2NdbclHxxArz90d+MSVeUOIXQ/4V9quq8C",
717 717 "8qVflo1gPtPMkjO2/UrdOYqhY404ReObOu/fdp4hAEDq6jhy64vOeT7XUK/Onq0rXTldtA6kvgQa",
718 718 "Jg+mgYSR9hfXtMbOUSLgLj/RmBSO8aAMHuJJZqf1tCM5pZ9eYUsrHmy+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SQe4AcfVt7k+V6mOthBCYtr/LEU4ZHtl0mW987",
732 732 "6PK8mRFAaT8DJOUFVz1lPfzRApuPggkkyq+UMvyfKTUbCk7/DpfX8Y4s4QAAAg9BmmNJ4Q8mUwIr",
733 733 "/wAsWUPjZw3ksgRsxZ6n4fQjprPbkj2aUh30y0bZJnLmiXnWskvOGnCPwBnG9dEhatwX3hoxk7BN",
734 734 "yG+wQ4emZUpcVzcWl2T9nKQB1euucuZWHTg7TCtM/iHyfPO2vbmGsfzs70b/egIbywUH4y4BQSL1",
735 735 "nWc1SmpHm2zHMBcUjYLDZ5gL5vdfxn0V8FFw66G88c/LN4I5icUa7xf4fcSBKywU0ajbp1P+aJYj",
736 736 "BgWT6Ggu0MDLDNl54tfqd42lKosQtM1aif4WXAZFP5Ww3vrQ1rH9+utSYxqZd6N6gGtNbSNMcVia",
737 737 "Kn5LcnjsbBi3T3EmGqshEbcme8VHKwR3kSfBOAprrIsv6K8R+X6az+MD23rWka/2v64m1qM69D7X",
738 738 "a+Kcs/n0KLCJdTilyaGadopLeaAn3eYvWTeHcucMM1Fp1KgHD1tiFeO6HvobLkZlRximsA3/7Mio",
739 739 "hYklLIcJrZL22BH+6W9d6kZsYIsej9RM681nU6mWNjepBAfAfTbrGRrVB/h2DxC5B8YyRjgSIzQj",
740 740 "NYrse0rzChqbrsLl7mQ7W+1bsNKze5//9ZIa8rSsF+BXh/vgoRTDkPW/ws95B7VPCZEFChfX0icw",
741 741 "+tpcpN/q7NY87tUn4vESdSiMMlyhKklMjQu/G51J69ZRQLs2oUO6YfoJFqliy4qCFCrf8SZE9Fc6",
742 742 "DcCagAAAAodBmoRJ4Q8mUwIr/wArPWF/KOw78THwadfPqhJO0CnmR/M74/XYZLqVYKlNcEaYauf+",
743 743 "vrRUDJPmu75sMKy2Y+Bnslc/iAISSyWtw/h/3CF8fE5ZrbrwSNst+MSyCoNWP+8imtoX2eyojpdC",
744 744 "k8YP5K+cbK4SJPCkZXbYqSXYk7hO8AdSemBHgXKWiZ+UOr802aJo+98ZOIjX9hWL9bo31Gqx7cy4",
745 745 "ZG+W/ar/WGlzDa1xPWnPRsEdrIcZlEVGV/jGmbirkxw1lyUYoqj8Vv7Bxube9XPQlBkXOV6Lc1LT",
746 746 "2IzNq0V7WwVhF0kA6yxfAsFxc9krNEH8vGGntTWI608ovjatXc/CKKXw7AjJSftlTcLI0hIIGXbR",
747 747 "Ur0NCYNp7M4cVd/n73Rjetnixz4SAKpcz/P47UsijZG7T3SxzK2D79WS42aEalc12hQwCZ01LfmF",
748 748 "/H2mmGEvOzPBie1D0YT7Jh19vxa4Dd3SQ1FrDfmSUpvv4DjbYcZ2PrPpFpWtMjWqHBeoyMiZf6RP",
749 749 "3EfYR6z9jsVNIIHxM0bzzBQF8eeYkPgDySydxPXv9Izo+QUY94N8kWi16fI6eZSDc1G0Yo0L91jc",
750 750 "RQuDMGGS7B2zuf/0GbJyRhUO48UbMrqnILMrbQg1LF00Q3pH9nbGEK/RRQpRN3T/J/4IZQjwW2Ft",
751 751 "2ipWGztg1Jn9I4DmffKS60QC+JQcyakdVON6zDcKttIKlqeTcmAi4xzmo4QXa2dRKleS+fs3EtTd",
752 752 "BBtony2wK9T2Imj+NCziOSEL7Q7VuIU8kclUHrJJsSneFcxGRgIgGGUEQM8/pklwTOqab7mMmJeR",
753 753 "iaBrjJDEnDpkR4Vz3qXxgyn4/5x24FuTMNVPwQAAAhtBmqVJ4Q8mUwIr/wApcLwPT0/Xh9UdWqWX",
754 754 "Is8Wbj5K1hivmN6qIQnq+aolcegdlM/63MbHsdC6xYZC1e/Q8UjQCt9N/Ejqwms8DzeWv2qxskel",
755 755 "iZH0kt1QWkErWSEodq7V0ZNksctLkMGWayX33gBT368EehfIeGDolBZoqIbJfb4nqcfU+ev4OzVv",
756 756 "9zVqWyLck315GFmXxQKIM8pICQc8Q5es34LH1+DmnMnW8kQpVGrztQcDXhjCU3F0fOgoSsXSVWCj",
757 757 "c6XKqGbCwQDfJUxCfXfIT6YmQoPpVp1mpGy1wQypXus9z0bScDpyDu23hViYDntdj1O45ea0znKZ",
758 758 "kj1+tLHbBtqAGJ1WTcbGlF6Vya6hQhEsiiZUIC2fRxIj8/wEXCICIbr0gZ/m6gcOhE10tenvE7iy",
759 759 "+BKY81wLWrnzos3S6FWxYtmCRes+LLhNGOKWRuQo6SyePH2OZ90xZm8oA1MuTe3V59euVNxjAt0F",
760 760 "LkAc9TEiFhP/8CB+gA8mF+A8h1U01f4DVX55GzCH51jHI2xUS0L9GtsHoBxLPLK/NNel8zcnwG4X",
761 761 "+UusfcfEb5hh+ffnXteCE9vRGbs2n9wYW0xA3ZicklfadmWKUtMiHYBfkMSULWnkBQr4CXxjpYOs",
762 762 "6ygeEoA5+5B0B1SZObgZ42wWqddyyYE0NfwQAl75tfdJGqOa7OMHwBYNeatJaJK0zT2+bFaw2qWC",
763 763 "WwAAAitBmsZJ4Q8mUwIr/wAstkdsayRXchoFk703izqzduZ5WsyXriI9cfUdMUWvm0iGHwYIrUuj",
764 764 "vz3Yjou+JLwv9df2kt7MJo8u+3P5CjEKbwlz4vkE5AHTAbgXn3+Xc/MMJLgW5cm7iX3KiGNnBpbp",
765 765 "hhwJRlb3u91NRDr0d1IR2up/z7lKxE7XPAPFe0siPMYVlIqWNSn5KqLABPeuxxbOsvMEb27/nH1L",
766 766 "UVM8I2F95c1I3Lv1SpkhZXjs1JsmS9X7gsoTxkXyShGC2+zRJSGUbhCPo/q1XSFMHQyMWJ79FKPQ",
767 767 "SL/RpVsacN2bYwdKo4TFBw1SsKq/L1iOmqMI+4Gxnbbjojdk0ek0JIcDb4bHv1czxchF7FX1Ym8H",
768 768 "6IpPuE8CeNKjzQ1a1wqhEu+wl1N0x3Y37ZryCCKJRkxj0FT7bOoH3L38/yMUuh/v3aCmxY4eCkyk",
769 769 "b2p6ZrYMFE044anM/nMjmbErMibfRFuCz58Io1rBlF7JfkIz0R2/5vjUMVskcdbX2mm7DntncOsW",
770 770 "DIdg/XVmgsC9CzVzUyq4VsS/sk97lJggcddpWLNw/29egz8iLyzWHOAXCvl2fTIPkviYAOQXfVhZ",
771 771 "UQdxsyJUNFMTiALrZCmoQLMp2LmDbfbW8JQriDeR3fVz6P1sjT8C2yEDvzkCn7sh0aTBK+sx7BKH",
772 772 "1nb4320+caQepQj4TCJtCeNXjdrVcNEnjvwlcRJwFT1pT+Y7HREbHnT71XYNh4EAAAGEQZrnSeEP",
773 773 "JlMCK/8AKIjxcI58rm/ML255fOJW1zbznFna7lfgMQrka7OTPPsvVAV4EJXye/Uxiu9dlftmRypJ",
774 774 "qfDot3xwDe8lX/qAVf6pBkSlUsaLyBYtww/SUSa1bGl1JvrJCN7FXCCXbLd5R4PoYlPiDIm/DQH2",
775 775 "puO0StIWmrR77Isc/J1pRvdu5+mQa/n0SEHUeM2KkoRzCznfD9zaaRO7BDtvC9SYIT0uYZxrwTjx",
776 776 "Q7N7UERTrYG0P+vRLAhxkfohFIYl3HXyjPOvnlbUFP2oiiy6nkUFuaIyQcJawJv3GU8k4ObcKsC1",
777 777 "cNDXjSpsyQRrxLFaCCjke4mikyt7vs0iN0bnrNWv9HXruG9zOFEOer1ggIFTsT1Eos5CXRkgja5H",
778 778 "N4QUM6MhWpc5du/HgBIH8ANFcoo2kJpqcadw9r/0qk25X91MQSDJQiH8Hny2dQhqR+LFWEawiW75",
779 779 "3SJhn0ngZcv/mPj3mwcHv1SL9ErBqAjm4JGiDetPKYtFwANYY11OyQAAAVdBmwhJ4Q8mUwIr/wAr",
780 780 "Ox5HV2505jRePGgMxptW4PGIHEszV1xGZS+flSkF+aq30AaqO7u6XK9jJsuWXTfYCRQTn1bZfFQ2",
781 781 "2DbO5DXAxK/TUmbQleCflFzeS6/czxkL4PJ8AwOs2U+oehekgCZC8gZyHHaQSaKbNJ46gTjNsLy8",
782 782 "4ACQ5uNt11TPuCPqPTuh+schdw9S+/lU/6m+EyaqGZ49wDFPiBFBYXglQQBjyP9k/rqq0xL7SiLj",
783 783 "pe4riYg8SFUuUtOzPdWHyvxnI7Ug/0VLPGAAhgMISUnqe01d5QFf36yHpwMAHexjAZFIGQHAFaut",
784 784 "uMuEw6HzUZVzNdeHYxvEYOGkTo007bLwbuf/nxzrywGOxlRTYJLRdYI0mk0SdN3+LeTv1RIJwv21",
785 785 "+e9rT5iFOTCgzeQoekEWXLYz0X8YLq5bVCtijP7/T7w1Ck71j0aqfrEn6wtIAAABNUGbKUnhDyZT",
786 786 "Aiv/ACcySi7VBgOid6qZNXvhh/JsllHkMLLq0yNbQTqv/Wk2EBoSKICZwFwAD0WRzhvvReCGirep",
787 787 "1Fe4bxjm49/UR+OYrXRmHR18T0C83AUVeBk7KvDZmb/eHzuzEN4yfXucr/NWFJl+USVMY4r4UQ9C",
788 788 "ayrfEY9v6AQ6mzAdLy2UMfFxrRJ99g/Rfl8qx+m4jIZNjlrTaThzJ/3OpVmAliDfxVyg8+CVIlI3",
789 789 "1IykiwQrXcebgajG+av8XU1SfyAG5ibvwbtdSAxkGBcJWL387V+uTdY56w3KN2vBtoQpVKD2zb3y",
790 790 "azIcATZ02upwIytNcM/rpaLCdMb1myWcikE25agzLhDhOS+4zwjYz2DnW6VY0gFBAPsphhsUMnau",
791 791 "VVdUVHzCTSdvzEve/H8q4AAAAVdBm0pJ4Q8mUwIr/wAo+x5XKuiN1am7SkJKSMonFZDPU3f5XFcD",
792 792 "QSs0FLVq2idfsKwuIkt1mxIq8NgMHpzofTnDHqs/WedvAmhBgL0N5azdQa5MNKG2rJ4IAvGQY/uF",
793 793 "m3jKQAKzvhSS01gO1oIfizF817z9IShS4QK2WT0PeFPELqLSpED8eNOpVTR96vmwpk/WBKRVJdTQ",
794 794 "JzjiCQ5pgEwjtvk7KqoS0+lwXSbvIrXkYm8DignEts3DLNoLHrPjXlQmbIop76JZSyJEtB+91GrL",
795 795 "wo6Km5GeebyA2E6qGL3xSkpppej/ruoFprSKrH60UMbrq/SK7eCo+1QFoySPQmqDFsMGiQFqvtld",
796 796 "5BXDYdVI4yRaoyN7Y7wi83HRC6eVazuHU9OtIY3xJJApBWq1aJOsYwc38aTC3ee863Aa/4n9Lk4D",
797 797 "AtyFYHNZjB5m2e2vk8G2Gny9YFlBAAABQEGba0nhDyZTAiv/ACoZSZQfHxhfQxEqOBQrP+L3Dmgv",
798 798 "HSJQtB1iVkcLTxm+vagLHBLG91OGnopwrr7gT/loDypIhoRxjcwAAOeg/jN4WBbXzCJtnWGGllUC",
799 799 "SdtUZQzKOSp9iM4yX18C6jrY4Sq6R9PUV/lEGNveJR4gw4FMve7110XdEPL1O2VTdHvdqeANyaq0",
800 800 "nLdEmtXnrzvdrFlBaUvmaR4EdlkqGkvkZKWJej8Vq+msbKa7JdbxjwZtRufiyGfD/NVqMgSrYRzw",
801 801 "9z/a8Zwbr+9+19CxlWD5bCuAEfPmjY6kZJE2L/CQI6+tnCBTXOmWZtZMBoCLGOf7G2uAC3+kFlbo",
802 802 "h9as5WCkO6+iqXq29dyhKnsHInorRYsPlgxIXyU1Om/Kyhj1DJV0Am9WJK3Dln0zNUH0q6ZTOnZc",
803 803 "FD36AAABYkGbjEnhDyZTAiv/ACcwdIOLRFfoGK2ZkKsvgMwG0m0qsY0vMLPSzefc+ebp/aztyF7M",
804 804 "lsBz/fBeNtxFBcsKgR4pf65GvdfOMHah0ltZ918sMDmXUEZMeRHy/xpnWpTLeGz6uTs/7MATPmU5",
805 805 "BgHbT/DkD8QeaZnFAzidyFCXDz2l/jaKhEdgqipbB2pH0+fQ039r05z9axxEWGmaLQjg6x9+po1o",
806 806 "24yhkVO7m03YwWmPyCgy8cOwrvRyJkXJpRN4m8ZBS1zwY80HeN/VyMQQJSMwsTo7R1XMerSFuyx0",
807 807 "nz+8qOuhiqykc2ohCCsXia/+kIKbJ5Vs+cbWtvkqBKIDSfU7FhAd3GjcY/xar0EVmi6wWFTugAog",
808 808 "R3I7mTrQDdlTAqYgqO7Gn5NMXQVHu2i1zhFSdo9GjMbeGnbkJwsFbQ2XkoKRIDpuW7AewC9AEBt0",
809 809 "Ox/Ah6dGXfXO1jl8pEApj2RFmgAAAPlBm61J4Q8mUwIr/wAlR+eW/VZ7bSrmwwMA62G05DZ7p/5F",
810 810 "UugsSsQdonUq6abtbU5hjFr+I1lPgoiV5c3CkTQZS+K5zivdo+Ti2P4K90xXANp8dSMAu85uJIOC",
811 811 "Qn2TXbEnNDifLB+3V84ht5tj4lvTaZx317BcliV8D5v2zZQW8RO1mUbuJEBItst8E7hfE+ZXj7tf",
812 812 "DxNZPTvtpFyUv0fH1cTg1pr2VLy0d0zQLiA58dg+GkRvR1/hs2LyifBgHcj6eTWz0vsypVn9iPXR",
813 813 "H/unJ6i8cfFL69NO24tQ9QQB+nDFhoP2cRhkAvhHwn56n5PppBD/oxni2f8AAAE9QZvOSeEPJlMC",
814 814 "K/8AJjAXVGf+Kj2XNJnFeKC/gr7dJDTC2ngpd4WeAHlg04GuJKnn9hAmiECxxo9qM1IYMRiB85t6",
815 815 "gALnlm9sRqGmioyzAm18RJndc9Ah8RlpGzr+44a6ntRaPx0cIwNIWAA8buL2JP00dmfjNqEiAlCa",
816 816 "8OdV8FQxjp1vDXsGcAGF3Qbd62KEpkimeI3wH2nuXpbDHm8/ZKOR49s5ifUCkxCoJpfp43aC0lTz",
817 817 "h2NXpcfVw6h0QnK8G60R4ZAxOxaJB7c0nn8ixXSU2JVY24EtGMF53nxJnHfzUheewUfBOGYSxeo8",
818 818 "oK7oUCqX4rztzDwoc2QywNqQUJUkFrqIN+sb5ecYvX24Zujn+ZzTW6UDAF3R6WdNyJyRAremgC8s",
819 819 "pSflTqygQNGfHyGkfIEEJJaFo/pBCBkAAAEWQZvvSeEPJlMCK/8AKI41fuekXG59Knbw4Y6YJrit",
820 820 "sh9VtQgc3QKvVmxrzzo7f4aXn8N74eyP4b2lV1Z2Q+rohxps7EHTkOY9jLdqxI3MXe7je4g2qepz",
821 821 "71+hY+jYdX+9LO0kA0Zg3NfyAlIRX7k6c/YHAZNtNaGZgTBMqiPgmEjiJH9Luk7shbgr+srfwiYw",
822 822 "BX9rdS3fQNNFwcT8orQC+F60LAY9+GbFo2Sw3Ld4Tw9jq9yJtrY8RtHAdzytyek/mv2+j2TbTvAQ",
823 823 "KbbCYtdC8E/KtR4V5ZTSScr5Wb63vmbw7UpddEXYvl55pARyyvMxWNSh3Li4GF8Jk5JBi5B5ASQw",
824 824 "xCMYpX5hkAMc+d8tl2bT+IEvUTsAAAElQZoQSeEPJlMCK/8AJIAzFZs00JJ0yfm8CZiew4xWdArL",
825 825 "klEvBVXo/+ukPLu3XP9HFOfsme3T6BJEKmPPgZw/Lxnraq6Sl2kLVW19YU1qmqgfv+80LkZaWU5g",
826 826 "RAH4hqyo3bFYcbuY2SC3IW5Wm69gtYyAXOdbAYSEHA16fvCeRQjHEsxKVndJdrRAlrGHsKgUBQ3U",
827 827 "p/ZXIy1vkdFOfKSjpuZnswkuqr8NZI5tJ/dnBSErBTNWPaNwWV7nNomC0EYVGo+geGBhLXzaLw0U",
828 828 "AOCYGjiPc3803BDw1GLoLIXjrIFJxwRfBNIAXYZAglu30oYzhpAfRWSprkeULMWYJTlWvbUQ5CNe",
829 829 "wSZssuDWIRAc3w8AcFaywwn+YSGhtR8VI1OGjYkfBbcAAAD8QZoxSeEPJlMCK/8AJdokjCUETRw/",
830 830 "nciVPtaZQSBP/VxAQSITASEzlJBl9Na1r0DJhLOz279+KQLtl/xHZ8vAKc528mTMTqtWs4sFbeVg",
831 831 "HWyBpHcHEtgTzjIqEinp/MPuUXF5poo8YLSSMFn9Ozx2FbU5/Kh9A39oN9NHQflVxV1NA6yT/84H",
832 832 "HyfMtfdSMS8KTvAEE2lDs14VQayNs5ctjXboQT7xMBf5OLj6thhPvgaDrFB2o/PV9ouK147lruWT",
833 833 "P2mkoA9oDIMYW1pcBx4yyV/t9GOPZ3aXneMUb2fFmUCX43BjXfUDMaa4GO2/Ankj3UEQwDxA7ZlN",
834 834 "UQK2AAAA4UGaUknhDyZTAiv/ACJHv33I08bkhybYiJ/JiiheW5zMPBu4n5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0hhbmRsZXIAAAACIG1pbmYAAAAUdm1oZAAAAAEAAAAA",
848 848 "AAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAeBzdGJsAAAAtHN0c2QA",
849 849 "AAAAAAAAAQAAAKRhdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAY4BhgBIAAAASAAAAAAAAAAB",
850 850 "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAAMmF2Y0MBZAAV/+EAGWdkABWs",
851 851 "2UGQz6mhAAADAAEAAAMAMg8WLZYBAAZo6+PLIsAAAAAcdXVpZGtoQPJfJE/FujmlG88DI/MAAAAA",
852 852 "AAAAGHN0dHMAAAAAAAAAAQAAABQAAAABAAAAFHN0c3MAAAAAAAAAAQAAAAEAAAAYY3R0cwAAAAAA",
853 853 "AAABAAAAFAAAAAIAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAEAAAABAAAAZHN0c3oAAAAAAAAAAAAA",
854 854 "ABQAAA05AAACqQAAAl8AAAITAAACiwAAAh8AAAIvAAABiAAAAVsAAAE5AAABWwAAAUQAAAFmAAAA",
855 855 "/QAAAUEAAAEaAAABKQAAAQAAAADlAAAAzQAAAGBzdGNvAAAAAAAAABQAAAAsAAANZQAAEA4AABJt",
856 856 "AAAUgAAAFwsAABkqAAAbWQAAHOEAAB48AAAfdQAAINAAACIUAAAjegAAJHcAACW4AAAm0gAAJ/sA",
857 857 "ACj7AAAp4AAAAGF1ZHRhAAAAWW1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAA",
858 858 "AAAAAAAALGlsc3QAAAAkqXRvbwAAABxkYXRhAAAAAQAAAABMYXZmNTIuMTExLjA=",
859 859 "\">"
860 860 ],
861 861 "output_type": "pyout",
862 862 "prompt_number": 5,
863 863 "text": [
864 864 "&lt;IPython.core.display.HTML at 0x423a550&gt;"
865 865 ]
866 866 }
867 867 ],
868 868 "prompt_number": 5
869 869 },
870 870 {
871 871 "cell_type": "markdown",
872 872 "source": [
873 873 "## Local Files",
874 874 "",
875 875 "The above examples embed images and video from the notebook filesystem in the output",
876 876 "areas of code cells. It is also possible to request these files directly in markdown cells",
877 877 "if they reside in the notebook directory via relative urls prefixed with `files/`:",
878 878 "",
879 879 " files/[subdirectory/]<filename>",
880 880 "",
881 881 "",
882 882 "For example, in the example notebook folder, we have the Python logo, addressed as:",
883 883 "",
884 884 " <img src=\"files/python-logo.svg\" />",
885 885 "",
886 886 "<img src=\"/files/python-logo.svg\" />",
887 887 "",
888 888 "and a video with the HTML5 video tag:",
889 889 "",
890 890 " <video controls src=\"files/animation.m4v\" />",
891 891 "",
892 892 "<video controls src=\"/files/animation.m4v\" />",
893 893 "",
894 894 "These do not embed the data into the notebook file,",
895 895 "and require that the files exist when you are viewing the notebook.",
896 896 "",
897 897 "### Security of local files",
898 898 "",
899 899 "Note that this means that the IPython notebook server also acts as a generic file server",
900 900 "for files inside the same tree as your notebooks. Access is not granted outside the",
901 901 "notebook folder so you have strict control over what files are visible, but for this",
902 902 "reason it is highly recommended that you do not run the notebook server with a notebook",
903 903 "directory at a high level in your filesystem (e.g. your home directory).",
904 904 "",
905 905 "When you run the notebook in a password-protected manner, local file access is restricted",
906 906 "to authenticated users unless read-only views are active."
907 907 ]
908 908 },
909 909 {
910 910 "cell_type": "markdown",
911 911 "source": [
912 912 "### External sites",
913 913 "",
914 914 "You can even embed an entire page from another site in an iframe; for example this is today's Wikipedia",
915 915 "page for mobile users:"
916 916 ]
917 917 },
918 918 {
919 919 "cell_type": "code",
920 920 "collapsed": false,
921 921 "input": [
922 922 "HTML('<iframe src=http://en.mobile.wikipedia.org/?useformat=mobile width=700 height=350>')"
923 923 ],
924 924 "language": "python",
925 925 "outputs": [
926 926 {
927 927 "html": [
928 928 "<iframe src=http://en.mobile.wikipedia.org/?useformat=mobile width=700 height=350>"
929 929 ],
930 930 "output_type": "pyout",
931 931 "prompt_number": 6,
932 932 "text": [
933 933 "&lt;IPython.core.display.HTML at 0x41d4710&gt;"
934 934 ]
935 935 }
936 936 ],
937 937 "prompt_number": 6
938 938 },
939 939 {
940 940 "cell_type": "markdown",
941 941 "source": [
942 942 "### Mathematics",
943 943 "",
944 944 "And we also support the display of mathematical expressions typeset in LaTeX, which is rendered",
945 945 "in the browser thanks to the [MathJax library](http://mathjax.org). ",
946 946 "",
947 947 "Note that this is *different* from the above examples. Above we were typing mathematical expressions",
948 948 "in Markdown cells (along with normal text) and letting the browser render them; now we are displaying",
949 949 "the output of a Python computation as a LaTeX expression wrapped by the `Math()` object so the browser",
950 950 "renders it. The `Math` object will add the needed LaTeX delimiters (`$$`) if they are not provided:"
951 951 ]
952 952 },
953 953 {
954 954 "cell_type": "code",
955 955 "collapsed": false,
956 956 "input": [
957 957 "from IPython.core.display import Math",
958 958 "Math(r'F(k) = \\int_{-\\infty}^{\\infty} f(x) e^{2\\pi i k} dx')"
959 959 ],
960 960 "language": "python",
961 961 "outputs": [
962 962 {
963 963 "latex": [
964 964 "$$F(k) = \\int_{-\\infty}^{\\infty} f(x) e^{2\\pi i k} dx$$"
965 965 ],
966 966 "output_type": "pyout",
967 967 "prompt_number": 1,
968 968 "text": [
969 969 "<IPython.core.display.Math object at 0x10ad35e90>"
970 970 ]
971 971 }
972 972 ],
973 973 "prompt_number": 1
974 974 },
975 975 {
976 976 "cell_type": "markdown",
977 977 "source": [
978 978 "With the `Latex` class, you have to include the delimiters yourself. This allows you to use other LaTeX modes such as `eqnarray`:"
979 979 ]
980 980 },
981 981 {
982 982 "cell_type": "code",
983 983 "collapsed": false,
984 984 "input": [
985 985 "from IPython.core.display import Latex",
986 986 "Latex(r\"\"\"\\begin{eqnarray}",
987 987 "\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\",
988 988 "\\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\",
989 989 "\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\",
990 990 "\\nabla \\cdot \\vec{\\mathbf{B}} & = 0 ",
991 991 "\\end{eqnarray}\"\"\")"
992 992 ],
993 993 "language": "python",
994 994 "outputs": [
995 995 {
996 996 "latex": [
997 997 "\\begin{eqnarray}",
998 998 "\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\ \\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\",
999 999 "\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\",
1000 1000 "\\nabla \\cdot \\vec{\\mathbf{B}} & = 0 ",
1001 1001 "\\end{eqnarray}"
1002 1002 ],
1003 1003 "output_type": "pyout",
1004 1004 "prompt_number": 5,
1005 1005 "text": [
1006 1006 "<IPython.core.display.Latex object at 0x109a38790>"
1007 1007 ]
1008 1008 }
1009 1009 ],
1010 1010 "prompt_number": 5
1011 1011 },
1012 1012 {
1013 1013 "cell_type": "markdown",
1014 1014 "source": [
1015 1015 "# Loading external codes",
1016 1016 "* Drag and drop a ``.py`` in the dashboard",
1017 "* Use ``%loadpy`` with any local or remote url: [the Matplotlib Gallery!](http://matplotlib.sourceforge.net/gallery.html)",
1017 "* Use ``%load`` with any local or remote url: [the Matplotlib Gallery!](http://matplotlib.sourceforge.net/gallery.html)",
1018 1018 "",
1019 1019 "In this notebook we've kept the output saved so you can see the result, but you should run the next",
1020 1020 "cell yourself (with an active internet connection)."
1021 1021 ]
1022 1022 },
1023 1023 {
1024 1024 "cell_type": "code",
1025 1025 "collapsed": true,
1026 1026 "input": [
1027 "%loadpy http://matplotlib.sourceforge.net/mpl_examples/pylab_examples/integral_demo.py"
1027 "%load http://matplotlib.sourceforge.net/mpl_examples/pylab_examples/integral_demo.py"
1028 1028 ],
1029 1029 "language": "python",
1030 1030 "outputs": [],
1031 1031 "prompt_number": 8
1032 1032 },
1033 1033 {
1034 1034 "cell_type": "code",
1035 1035 "collapsed": false,
1036 1036 "input": [
1037 1037 "#!/usr/bin/env python",
1038 1038 "",
1039 1039 "# implement the example graphs/integral from pyx",
1040 1040 "from pylab import *",
1041 1041 "from matplotlib.patches import Polygon",
1042 1042 "",
1043 1043 "def func(x):",
1044 1044 " return (x-3)*(x-5)*(x-7)+85",
1045 1045 "",
1046 1046 "ax = subplot(111)",
1047 1047 "",
1048 1048 "a, b = 2, 9 # integral area",
1049 1049 "x = arange(0, 10, 0.01)",
1050 1050 "y = func(x)",
1051 1051 "plot(x, y, linewidth=1)",
1052 1052 "",
1053 1053 "# make the shaded region",
1054 1054 "ix = arange(a, b, 0.01)",
1055 1055 "iy = func(ix)",
1056 1056 "verts = [(a,0)] + zip(ix,iy) + [(b,0)]",
1057 1057 "poly = Polygon(verts, facecolor='0.8', edgecolor='k')",
1058 1058 "ax.add_patch(poly)",
1059 1059 "",
1060 1060 "text(0.5 * (a + b), 30,",
1061 1061 " r\"$\\int_a^b f(x)\\mathrm{d}x$\", horizontalalignment='center',",
1062 1062 " fontsize=20)",
1063 1063 "",
1064 1064 "axis([0,10, 0, 180])",
1065 1065 "figtext(0.9, 0.05, 'x')",
1066 1066 "figtext(0.1, 0.9, 'y')",
1067 1067 "ax.set_xticks((a,b))",
1068 1068 "ax.set_xticklabels(('a','b'))",
1069 1069 "ax.set_yticks([])",
1070 1070 "show()"
1071 1071 ],
1072 1072 "language": "python",
1073 1073 "outputs": [
1074 1074 {
1075 1075 "output_type": "display_data",
1076 1076 "png": "iVBORw0KGgoAAAANSUhEUgAAAV0AAADzCAYAAAAl6cWdAAAABHNCSVQICAgIfAhkiAA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bkGBI3S/+86ZVxURqTq73V6vA9ip\nne6CBdCnD3Ts6Myriog0HE7rdEtLHTfQPvzQWVcUEamei4feuEWn+8UXEB4O/fs764oiIg2PU0LX\nbodXX4WEBKjHv2Bq5fTp00aXICKVsFgsfFfPbyo5JXTXrYMzZ+Duu51xtfpJoStiDm4RurNnOw4p\n9/R0xtVERGqmPs/lXlTrG2l79sDmzfDpp84op35at24d+/btY+LEiUaXIiIVsNlsRpdQKYu9gs3K\nZvitISI7IbFgAAABr0lEQVRSH5UXrRV2umY4PEJExEzq7BHsIiKi0BURqVMK3UrEx8fTo0cPbrrp\nJj7//HOjyxGRMmRkZBAbG2t0GVXi8kewm90HH3xAaGgoubm5DBo0iPj4eKNLEhETU6dbiX/961/c\nfPPN9O/fn/T0dLZv3250SSJSBpvNxqhRo+jYsSPTpk2jqKjI6JLKpNCtQHp6OvPnz2fJkiXs2LGD\ntm3bcvbsWaPLEpEy7Nmzh7vuuott27axfft2li9fbnRJZVLoViAzM5Pw8HDCwsL4/vvvSU5ONrok\nESlHSEgI8fHx+Pr6Mnz4cL7++mujSyqT5nQrcOONNxIdHU3Hjh3p3LkzQ4YMMbokETE5hW4lPvjg\nA6NLEJEqyMnJ4YsvvuD222/nk08+Yfjw4UaXVCZNL4iI6VksFjp06EBiYiJxcXF07tyZO++80+iy\nylTh2QsiIuJc6nRFROqQQldEpA4pdEVE6pBCV0TEyTZv3kzXrl0pKiri/PnzdO7cmd27dwO6kSYi\n4hIvvPAChYWFFBQU0Lp1ayZNmgQodEVEXMJqtXLDDTfg5+fHhg0bLj2J5/8B9qXioKa743wAAAAA\nSUVORK5CYII=\n"
1077 1077 }
1078 1078 ],
1079 1079 "prompt_number": 9
1080 1080 },
1081 1081 {
1082 1082 "cell_type": "code",
1083 1083 "collapsed": true,
1084 1084 "input": [
1085 1085 ""
1086 1086 ],
1087 1087 "language": "python",
1088 1088 "outputs": []
1089 1089 }
1090 1090 ]
1091 1091 }
1092 1092 ]
1093 1093 }
@@ -1,31 +1,31 b''
1 1 """
2 2 Run this script in the qtconsole with one of:
3 3
4 %loadpy hb_gil.py
4 %load hb_gil.py
5 5
6 6 or
7 7 %run hb_gil.py
8 8
9 9 Holding the GIL for too long could disrupt the heartbeat.
10 10
11 11 See Issue #1260: https://github.com/ipython/ipython/issues/1260
12 12
13 13 """
14 14
15 15 import sys
16 16 import time
17 17
18 18 from cython import inline
19 19
20 20 def gilsleep(t):
21 21 """gil-holding sleep with cython.inline"""
22 22 code = '\n'.join([
23 23 'from posix cimport unistd',
24 24 'unistd.sleep(t)',
25 25 ])
26 26 while True:
27 27 inline(code, quiet=True, t=t)
28 28 print(time.time())
29 29 sys.stdout.flush() # this is important
30 30
31 31 gilsleep(5)
@@ -1,609 +1,609 b''
1 1 .. _qtconsole:
2 2
3 3 =========================
4 4 A Qt Console for IPython
5 5 =========================
6 6
7 7 We now have a version of IPython, using the new two-process :ref:`ZeroMQ Kernel
8 8 <ipythonzmq>`, running in a PyQt_ GUI. This is a very lightweight widget that
9 9 largely feels like a terminal, but provides a number of enhancements only
10 10 possible in a GUI, such as inline figures, proper multiline editing with syntax
11 11 highlighting, graphical calltips, and much more.
12 12
13 13 .. figure:: ../_static/qtconsole.png
14 14 :width: 400px
15 15 :alt: IPython Qt console with embedded plots
16 16 :align: center
17 17 :target: ../_static/qtconsole.png
18 18
19 19 The Qt console for IPython, using inline matplotlib plots.
20 20
21 21 To get acquainted with the Qt console, type `%guiref` to see a quick
22 22 introduction of its main features.
23 23
24 24 The Qt frontend has hand-coded emacs-style bindings for text navigation. This
25 25 is not yet configurable.
26 26
27 27 .. tip::
28 28
29 29 Since the Qt console tries hard to behave like a terminal, by default it
30 30 immediately executes single lines of input that are complete. If you want
31 31 to force multiline input, hit :kbd:`Ctrl-Enter` at the end of the first line
32 32 instead of :kbd:`Enter`, and it will open a new line for input. At any
33 33 point in a multiline block, you can force its execution (without having to
34 34 go to the bottom) with :kbd:`Shift-Enter`.
35 35
36 ``%loadpy``
37 ===========
36 ``%load``
37 =========
38 38
39 The new ``%loadpy`` magic takes any python script (must end in '.py'), and
40 pastes its contents as your next input, so you can edit it before
41 executing. The script may be on your machine, but you can also specify a url,
42 and it will download the script from the web. This is particularly useful for
43 playing with examples from documentation, such as matplotlib.
39 The new ``%load`` magic (previously ``%loadpy``) takes any script, and pastes
40 its contents as your next input, so you can edit it before executing. The
41 script may be on your machine, but you can also specify an history range, or a
42 url, and it will download the script from the web. This is particularly useful
43 for playing with examples from documentation, such as matplotlib.
44 44
45 45 .. sourcecode:: ipython
46 46
47 In [6]: %loadpy http://matplotlib.sourceforge.net/plot_directive/mpl_examples/mplot3d/contour3d_demo.py
47 In [6]: %load http://matplotlib.sourceforge.net/plot_directive/mpl_examples/mplot3d/contour3d_demo.py
48 48
49 49 In [7]: from mpl_toolkits.mplot3d import axes3d
50 50 ...: import matplotlib.pyplot as plt
51 51 ...:
52 52 ...: fig = plt.figure()
53 53 ...: ax = fig.add_subplot(111, projection='3d')
54 54 ...: X, Y, Z = axes3d.get_test_data(0.05)
55 55 ...: cset = ax.contour(X, Y, Z)
56 56 ...: ax.clabel(cset, fontsize=9, inline=1)
57 57 ...:
58 58 ...: plt.show()
59 59
60 60 Pylab
61 61 =====
62 62
63 63 One of the most exciting features of the new console is embedded matplotlib
64 64 figures. You can use any standard matplotlib GUI backend
65 65 to draw the figures, and since there is now a two-process model, there is no
66 66 longer a conflict between user input and the drawing eventloop.
67 67
68 68 .. image:: figs/besselj.png
69 69 :width: 519px
70 70
71 71 .. display:
72 72
73 73 :func:`display`
74 74 ***************
75 75
76 76 An additional function, :func:`display`, will be added to the global namespace
77 77 if you specify the ``--pylab`` option at the command line. The IPython display
78 78 system provides a mechanism for specifying PNG or SVG (and more)
79 79 representations of objects for GUI frontends. By default, IPython registers
80 80 convenient PNG and SVG renderers for matplotlib figures, so you can embed them
81 81 in your document by calling :func:`display` on one or more of them. This is
82 82 especially useful for saving_ your work.
83 83
84 84 .. sourcecode:: ipython
85 85
86 86 In [5]: plot(range(5)) # plots in the matplotlib window
87 87
88 88 In [6]: display(gcf()) # embeds the current figure in the qtconsole
89 89
90 90 In [7]: display(*getfigs()) # embeds all active figures in the qtconsole
91 91
92 92 If you have a reference to a matplotlib figure object, you can always display
93 93 that specific figure:
94 94
95 95 .. sourcecode:: ipython
96 96
97 97 In [1]: f = figure()
98 98
99 99 In [2]: plot(rand(100))
100 100 Out[2]: [<matplotlib.lines.Line2D at 0x7fc6ac03dd90>]
101 101
102 102 In [3]: display(f)
103 103
104 104 # Plot is shown here
105 105
106 106 In [4]: title('A title')
107 107 Out[4]: <matplotlib.text.Text at 0x7fc6ac023450>
108 108
109 109 In [5]: display(f)
110 110
111 111 # Updated plot with title is shown here.
112 112
113 113 .. _inline:
114 114
115 115 ``--pylab=inline``
116 116 ******************
117 117
118 118 If you want to have all of your figures embedded in your session, instead of
119 119 calling :func:`display`, you can specify ``--pylab=inline`` when you start the
120 120 console, and each time you make a plot, it will show up in your document, as if
121 121 you had called :func:`display(fig)`.
122 122
123 123 The inline backend can use either SVG or PNG figures (PNG being the default).
124 124 To switch between them, set the ``InlineBackend.figure_format`` configurable
125 125 in a config file, or via the ``%config`` magic:
126 126
127 127 .. sourcecode:: ipython
128 128
129 129 In [10]: %config InlineBackend.figure_format = 'svg'
130 130
131 131 .. note::
132 132
133 133 Changing the inline figure format also affects calls to :func:`display` above,
134 134 even if you are not using the inline backend for all figures.
135 135
136 136 By default, IPython closes all figures at the completion of each execution. This means you
137 137 don't have to manually close figures, which is less convenient when figures aren't attached
138 138 to windows with an obvious close button. It also means that the first matplotlib call in
139 139 each cell will always create a new figure:
140 140
141 141 .. sourcecode:: ipython
142 142
143 143 In [11]: plot(range(100))
144 144 <single-line plot>
145 145
146 146 In [12]: plot([1,3,2])
147 147 <another single-line plot>
148 148
149 149
150 150 However, it does prevent the list of active figures surviving from one input cell to the
151 151 next, so if you want to continue working with a figure, you must hold on to a reference to
152 152 it:
153 153
154 154 .. sourcecode:: ipython
155 155
156 156 In [11]: fig = gcf()
157 157 ....: fig.plot(rand(100))
158 158 <plot>
159 159 In [12]: fig.title('Random Title')
160 160 <redraw plot with title>
161 161
162 162 This behavior is controlled by the :attr:`InlineBackend.close_figures` configurable, and
163 163 if you set it to False, via %config or config file, then IPython will *not* close figures,
164 164 and tools like :func:`gcf`, :func:`gca`, :func:`getfigs` will behave the same as they
165 165 do with other backends. You will, however, have to manually close figures:
166 166
167 167 .. sourcecode:: ipython
168 168
169 169 # close all active figures:
170 170 In [13]: [ fig.close() for fig in getfigs() ]
171 171
172 172
173 173
174 174 .. _saving:
175 175
176 176 Saving and Printing
177 177 ===================
178 178
179 179 IPythonQt has the ability to save your current session, as either HTML or
180 180 XHTML. If you have been using :func:`display` or inline_ pylab, your figures
181 181 will be PNG in HTML, or inlined as SVG in XHTML. PNG images have the option to
182 182 be either in an external folder, as in many browsers' "Webpage, Complete"
183 183 option, or inlined as well, for a larger, but more portable file.
184 184
185 185 .. note::
186 186
187 187 Export to SVG+XHTML requires that you are using SVG figures, which is *not*
188 188 the default. To switch the inline figure format to use SVG during an active
189 189 session, do:
190 190
191 191 .. sourcecode:: ipython
192 192
193 193 In [10]: %config InlineBackend.figure_format = 'svg'
194 194
195 195 Or, you can add the same line (c.Inline... instead of %config Inline...) to
196 196 your config files.
197 197
198 198 This will only affect figures plotted after making this call
199 199
200 200
201 201 The widget also exposes the ability to print directly, via the default print
202 202 shortcut or context menu.
203 203
204 204
205 205 .. Note::
206 206
207 207 Saving is only available to richtext Qt widgets, which are used by default,
208 208 but if you pass the ``--plain`` flag, saving will not be available to you.
209 209
210 210
211 211 See these examples of :download:`png/html<figs/jn.html>` and
212 212 :download:`svg/xhtml <figs/jn.xhtml>` output. Note that syntax highlighting
213 213 does not survive export. This is a known issue, and is being investigated.
214 214
215 215
216 216 Colors and Highlighting
217 217 =======================
218 218
219 219 Terminal IPython has always had some coloring, but never syntax
220 220 highlighting. There are a few simple color choices, specified by the ``colors``
221 221 flag or ``%colors`` magic:
222 222
223 223 * LightBG for light backgrounds
224 224 * Linux for dark backgrounds
225 225 * NoColor for a simple colorless terminal
226 226
227 227 The Qt widget has full support for the ``colors`` flag used in the terminal shell.
228 228
229 229 The Qt widget, however, has full syntax highlighting as you type, handled by
230 230 the `pygments`_ library. The ``style`` argument exposes access to any style by
231 231 name that can be found by pygments, and there are several already
232 232 installed. The ``colors`` argument, if unspecified, will be guessed based on
233 233 the chosen style. Similarly, there are default styles associated with each
234 234 ``colors`` option.
235 235
236 236
237 237 Screenshot of ``ipython qtconsole --colors=linux``, which uses the 'monokai'
238 238 theme by default:
239 239
240 240 .. image:: figs/colors_dark.png
241 241 :width: 627px
242 242
243 243 .. Note::
244 244
245 245 Calling ``ipython qtconsole -h`` will show all the style names that
246 246 pygments can find on your system.
247 247
248 248 You can also pass the filename of a custom CSS stylesheet, if you want to do
249 249 your own coloring, via the ``stylesheet`` argument. The default LightBG
250 250 stylesheet:
251 251
252 252 .. sourcecode:: css
253 253
254 254 QPlainTextEdit, QTextEdit { background-color: white;
255 255 color: black ;
256 256 selection-background-color: #ccc}
257 257 .error { color: red; }
258 258 .in-prompt { color: navy; }
259 259 .in-prompt-number { font-weight: bold; }
260 260 .out-prompt { color: darkred; }
261 261 .out-prompt-number { font-weight: bold; }
262 262
263 263 Fonts
264 264 =====
265 265
266 266 The QtConsole has configurable via the ConsoleWidget. To change these, set the
267 267 ``font_family`` or ``font_size`` traits of the ConsoleWidget. For instance, to
268 268 use 9pt Anonymous Pro::
269 269
270 270 $> ipython qtconsole --ConsoleWidget.font_family="Anonymous Pro" --ConsoleWidget.font_size=9
271 271
272 272 Process Management
273 273 ==================
274 274
275 275 With the two-process ZMQ model, the frontend does not block input during
276 276 execution. This means that actions can be taken by the frontend while the
277 277 Kernel is executing, or even after it crashes. The most basic such command is
278 278 via 'Ctrl-.', which restarts the kernel. This can be done in the middle of a
279 279 blocking execution. The frontend can also know, via a heartbeat mechanism, that
280 280 the kernel has died. This means that the frontend can safely restart the
281 281 kernel.
282 282
283 283 .. _multiple_consoles:
284 284
285 285 Multiple Consoles
286 286 *****************
287 287
288 288 Since the Kernel listens on the network, multiple frontends can connect to it.
289 289 These do not have to all be qt frontends - any IPython frontend can connect and
290 290 run code. When you start ipython qtconsole, there will be an output line,
291 291 like::
292 292
293 293 [IPKernelApp] To connect another client to this kernel, use:
294 294 [IPKernelApp] --existing kernel-12345.json
295 295
296 296 Other frontends can connect to your kernel, and share in the execution. This is
297 297 great for collaboration. The ``--existing`` flag means connect to a kernel
298 298 that already exists. Starting other consoles
299 299 with that flag will not try to start their own kernel, but rather connect to
300 300 yours. :file:`kernel-12345.json` is a small JSON file with the ip, port, and
301 301 authentication information necessary to connect to your kernel. By default, this file
302 302 will be in your default profile's security directory. If it is somewhere else,
303 303 the output line will print the full path of the connection file, rather than
304 304 just its filename.
305 305
306 306 If you need to find the connection info to send, and don't know where your connection file
307 307 lives, there are a couple of ways to get it. If you are already running an IPython console
308 308 connected to the kernel, you can use the ``%connect_info`` magic to display the information
309 309 necessary to connect another frontend to the kernel.
310 310
311 311 .. sourcecode:: ipython
312 312
313 313 In [2]: %connect_info
314 314 {
315 315 "stdin_port":50255,
316 316 "ip":"127.0.0.1",
317 317 "hb_port":50256,
318 318 "key":"70be6f0f-1564-4218-8cda-31be40a4d6aa",
319 319 "shell_port":50253,
320 320 "iopub_port":50254
321 321 }
322 322
323 323 Paste the above JSON into a file, and connect with:
324 324 $> ipython <app> --existing <file>
325 325 or, if you are local, you can connect with just:
326 326 $> ipython <app> --existing kernel-12345.json
327 327 or even just:
328 328 $> ipython <app> --existing
329 329 if this is the most recent IPython session you have started.
330 330
331 331 Otherwise, you can find a connection file by name (and optionally profile) with
332 332 :func:`IPython.lib.kernel.find_connection_file`:
333 333
334 334 .. sourcecode:: bash
335 335
336 336 $> python -c "from IPython.lib.kernel import find_connection_file;\
337 337 print find_connection_file('kernel-12345.json')"
338 338 /home/you/.ipython/profile_default/security/kernel-12345.json
339 339
340 340 And if you are using a particular IPython profile:
341 341
342 342 .. sourcecode:: bash
343 343
344 344 $> python -c "from IPython.lib.kernel import find_connection_file;\
345 345 print find_connection_file('kernel-12345.json', profile='foo')"
346 346 /home/you/.ipython/profile_foo/security/kernel-12345.json
347 347
348 348 You can even launch a standalone kernel, and connect and disconnect Qt Consoles
349 349 from various machines. This lets you keep the same running IPython session
350 350 on your work machine (with matplotlib plots and everything), logging in from home,
351 351 cafΓ©s, etc.::
352 352
353 353 $> ipython kernel
354 354 [IPKernelApp] To connect another client to this kernel, use:
355 355 [IPKernelApp] --existing kernel-12345.json
356 356
357 357 This is actually exactly the same as the subprocess launched by the qtconsole, so
358 358 all the information about connecting to a standalone kernel is identical to that
359 359 of connecting to the kernel attached to a running console.
360 360
361 361 .. _kernel_security:
362 362
363 363 Security
364 364 --------
365 365
366 366 .. warning::
367 367
368 368 Since the ZMQ code currently has no encryption, listening on an
369 369 external-facing IP is dangerous. You are giving any computer that can see
370 370 you on the network the ability to connect to your kernel, and view your traffic.
371 371 Read the rest of this section before listening on external ports
372 372 or running an IPython kernel on a shared machine.
373 373
374 374 By default (for security reasons), the kernel only listens on localhost, so you
375 375 can only connect multiple frontends to the kernel from your local machine. You
376 376 can specify to listen on an external interface by specifying the ``ip``
377 377 argument::
378 378
379 379 $> ipython qtconsole --ip=192.168.1.123
380 380
381 381 If you specify the ip as 0.0.0.0 or '*', that means all interfaces, so any
382 382 computer that can see yours on the network can connect to the kernel.
383 383
384 384 Messages are not encrypted, so users with access to the ports your kernel is using will be
385 385 able to see any output of the kernel. They will **NOT** be able to issue shell commands as
386 386 you due to message signatures, which are enabled by default as of IPython 0.12.
387 387
388 388 .. warning::
389 389
390 390 If you disable message signatures, then any user with access to the ports your
391 391 kernel is listening on can issue arbitrary code as you. **DO NOT** disable message
392 392 signatures unless you have a lot of trust in your environment.
393 393
394 394 The one security feature IPython does provide is protection from unauthorized execution.
395 395 IPython's messaging system will sign messages with HMAC digests using a shared-key. The key
396 396 is never sent over the network, it is only used to generate a unique hash for each message,
397 397 based on its content. When IPython receives a message, it will check that the digest
398 398 matches, and discard the message. You can use any file that only you have access to to
399 399 generate this key, but the default is just to generate a new UUID. You can generate a random
400 400 private key with::
401 401
402 402 # generate 1024b of random data, and store in a file only you can read:
403 403 # (assumes IPYTHONDIR is defined, otherwise use your IPython directory)
404 404 $> python -c "import os; print os.urandom(128).encode('base64')" > $IPYTHONDIR/sessionkey
405 405 $> chmod 600 $IPYTHONDIR/sessionkey
406 406
407 407 The *contents* of this file will be stored in the JSON connection file, so that file
408 408 contains everything you need to connect to and use a kernel.
409 409
410 410 To use this generated key, simply specify the ``Session.keyfile`` configurable
411 411 in :file:`ipython_config.py` or at the command-line, as in::
412 412
413 413 # instruct IPython to sign messages with that key, instead of a new UUID
414 414 $> ipython qtconsole --Session.keyfile=$IPYTHONDIR/sessionkey
415 415
416 416 .. _ssh_tunnels:
417 417
418 418 SSH Tunnels
419 419 -----------
420 420
421 421 Sometimes you want to connect to machines across the internet, or just across
422 422 a LAN that either doesn't permit open ports or you don't trust the other
423 423 machines on the network. To do this, you can use SSH tunnels. SSH tunnels
424 424 are a way to securely forward ports on your local machine to ports on another
425 425 machine, to which you have SSH access.
426 426
427 427 In simple cases, IPython's tools can forward ports over ssh by simply adding the
428 428 ``--ssh=remote`` argument to the usual ``--existing...`` set of flags for connecting
429 429 to a running kernel, after copying the JSON connection file (or its contents) to
430 430 the second computer.
431 431
432 432 .. warning::
433 433
434 434 Using SSH tunnels does *not* increase localhost security. In fact, when
435 435 tunneling from one machine to another *both* machines have open
436 436 ports on localhost available for connections to the kernel.
437 437
438 438 There are two primary models for using SSH tunnels with IPython. The first
439 439 is to have the Kernel listen only on localhost, and connect to it from
440 440 another machine on the same LAN.
441 441
442 442 First, let's start a kernel on machine **worker**, listening only
443 443 on loopback::
444 444
445 445 user@worker $> ipython kernel
446 446 [IPKernelApp] To connect another client to this kernel, use:
447 447 [IPKernelApp] --existing kernel-12345.json
448 448
449 449 In this case, the IP that you would connect
450 450 to would still be 127.0.0.1, but you want to specify the additional ``--ssh`` argument
451 451 with the hostname of the kernel (in this example, it's 'worker')::
452 452
453 453 user@client $> ipython qtconsole --ssh=worker --existing /path/to/kernel-12345.json
454 454
455 455 Which will write a new connection file with the forwarded ports, so you can reuse them::
456 456
457 457 [IPythonQtConsoleApp] To connect another client via this tunnel, use:
458 458 [IPythonQtConsoleApp] --existing kernel-12345-ssh.json
459 459
460 460 Note again that this opens ports on the *client* machine that point to your kernel.
461 461
462 462 .. note::
463 463
464 464 the ssh argument is simply passed to openssh, so it can be fully specified ``user@host:port``
465 465 but it will also respect your aliases, etc. in :file:`.ssh/config` if you have any.
466 466
467 467 The second pattern is for connecting to a machine behind a firewall across the internet
468 468 (or otherwise wide network). This time, we have a machine **login** that you have ssh access
469 469 to, which can see **kernel**, but **client** is on another network. The important difference
470 470 now is that **client** can see **login**, but *not* **worker**. So we need to forward ports from
471 471 client to worker *via* login. This means that the kernel must be started listening
472 472 on external interfaces, so that its ports are visible to `login`::
473 473
474 474 user@worker $> ipython kernel --ip=0.0.0.0
475 475 [IPKernelApp] To connect another client to this kernel, use:
476 476 [IPKernelApp] --existing kernel-12345.json
477 477
478 478 Which we can connect to from the client with::
479 479
480 480 user@client $> ipython qtconsole --ssh=login --ip=192.168.1.123 --existing /path/to/kernel-12345.json
481 481
482 482 .. note::
483 483
484 484 The IP here is the address of worker as seen from *login*, and need only be specified if
485 485 the kernel used the ambiguous 0.0.0.0 (all interfaces) address. If it had used
486 486 192.168.1.123 to start with, it would not be needed.
487 487
488 488
489 489 Manual SSH tunnels
490 490 ------------------
491 491
492 492 It's possible that IPython's ssh helper functions won't work for you, for various
493 493 reasons. You can still connect to remote machines, as long as you set up the tunnels
494 494 yourself. The basic format of forwarding a local port to a remote one is::
495 495
496 496 [client] $> ssh <server> <localport>:<remoteip>:<remoteport> -f -N
497 497
498 498 This will forward local connections to **localport** on client to **remoteip:remoteport**
499 499 *via* **server**. Note that remoteip is interpreted relative to *server*, not the client.
500 500 So if you have direct ssh access to the machine to which you want to forward connections,
501 501 then the server *is* the remote machine, and remoteip should be server's IP as seen from the
502 502 server itself, i.e. 127.0.0.1. Thus, to forward local port 12345 to remote port 54321 on
503 503 a machine you can see, do::
504 504
505 505 [client] $> ssh machine 12345:127.0.0.1:54321 -f -N
506 506
507 507 But if your target is actually on a LAN at 192.168.1.123, behind another machine called **login**,
508 508 then you would do::
509 509
510 510 [client] $> ssh login 12345:192.168.1.16:54321 -f -N
511 511
512 512 The ``-f -N`` on the end are flags that tell ssh to run in the background,
513 513 and don't actually run any commands beyond creating the tunnel.
514 514
515 515 .. seealso::
516 516
517 517 A short discussion of ssh tunnels: http://www.revsys.com/writings/quicktips/ssh-tunnel.html
518 518
519 519
520 520
521 521 Stopping Kernels and Consoles
522 522 *****************************
523 523
524 524 Since there can be many consoles per kernel, the shutdown mechanism and dialog
525 525 are probably more complicated than you are used to. Since you don't always want
526 526 to shutdown a kernel when you close a window, you are given the option to just
527 527 close the console window or also close the Kernel and *all other windows*. Note
528 528 that this only refers to all other *local* windows, as remote Consoles are not
529 529 allowed to shutdown the kernel, and shutdowns do not close Remote consoles (to
530 530 allow for saving, etc.).
531 531
532 532 Rules:
533 533
534 534 * Restarting the kernel automatically clears all *local* Consoles, and prompts remote
535 535 Consoles about the reset.
536 536 * Shutdown closes all *local* Consoles, and notifies remotes that
537 537 the Kernel has been shutdown.
538 538 * Remote Consoles may not restart or shutdown the kernel.
539 539
540 540 Qt and the QtConsole
541 541 ====================
542 542
543 543 An important part of working with the QtConsole when you are writing your own
544 544 Qt code is to remember that user code (in the kernel) is *not* in the same
545 545 process as the frontend. This means that there is not necessarily any Qt code
546 546 running in the kernel, and under most normal circumstances there isn't. If,
547 547 however, you specify ``--pylab=qt`` at the command-line, then there *will* be a
548 548 :class:`QCoreApplication` instance running in the kernel process along with
549 549 user-code. To get a reference to this application, do:
550 550
551 551 .. sourcecode:: python
552 552
553 553 from PyQt4 import QtCore
554 554 app = QtCore.QCoreApplication.instance()
555 555 # app will be None if there is no such instance
556 556
557 557 A common problem listed in the PyQt4 Gotchas_ is the fact that Python's garbage
558 558 collection will destroy Qt objects (Windows, etc.) once there is no longer a
559 559 Python reference to them, so you have to hold on to them. For instance, in:
560 560
561 561 .. sourcecode:: python
562 562
563 563 def make_window():
564 564 win = QtGui.QMainWindow()
565 565
566 566 def make_and_return_window():
567 567 win = QtGui.QMainWindow()
568 568 return win
569 569
570 570 :func:`make_window` will never draw a window, because garbage collection will
571 571 destroy it before it is drawn, whereas :func:`make_and_return_window` lets the
572 572 caller decide when the window object should be destroyed. If, as a developer,
573 573 you know that you always want your objects to last as long as the process, you
574 574 can attach them to the QApplication instance itself:
575 575
576 576 .. sourcecode:: python
577 577
578 578 # do this just once:
579 579 app = QtCore.QCoreApplication.instance()
580 580 app.references = set()
581 581 # then when you create Windows, add them to the set
582 582 def make_window():
583 583 win = QtGui.QMainWindow()
584 584 app.references.add(win)
585 585
586 586 Now the QApplication itself holds a reference to ``win``, so it will never be
587 587 garbage collected until the application itself is destroyed.
588 588
589 589 .. _Gotchas: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/gotchas.html#garbage-collection
590 590
591 591 Regressions
592 592 ===========
593 593
594 594 There are some features, where the qt console lags behind the Terminal
595 595 frontend:
596 596
597 597 * !cmd input: Due to our use of pexpect, we cannot pass input to subprocesses
598 598 launched using the '!' escape, so you should never call a command that
599 599 requires interactive input. For such cases, use the terminal IPython. This
600 600 will not be fixed, as abandoning pexpect would significantly degrade the
601 601 console experience.
602 602
603 603 * Use of ``\b`` and ``\r`` characters in the console: these are control
604 604 characters that allow the cursor to move backwards on a line, and are used to
605 605 display things like in-place progress bars in a terminal. We currently do
606 606 not support this, but it is being tracked as issue :ghissue:`629`.
607 607
608 608 .. _PyQt: http://www.riverbankcomputing.co.uk/software/pyqt/download
609 609 .. _pygments: http://pygments.org/
General Comments 0
You need to be logged in to leave comments. Login now