##// END OF EJS Templates
Backport PR #2773: Fixed minor typo causing AttributeError to be thrown....
Backport PR #2773: Fixed minor typo causing AttributeError to be thrown. I'm not sure how I caused the error to be thrown and couldn't reproduce it with the same call again, nevertheless I think the fix is correct. ```python In [21]: rc.shutdown(hub=True) Traceback (most recent call last): File "<ipython-input-21-977a05a15f31>", line 1, in <module> rc.shutdown(hub=True) File "<string>", line 2, in shutdown File "c:\dev\code\ipython\IPython\parallel\client\client.py", line 69, in spin_first self.spin() File "c:\dev\code\ipython\IPython\parallel\client\client.py", line 1005, in spin self._flush_notifications() File "c:\dev\code\ipython\IPython\parallel\client\client.py", line 800, in _flush_notifications raise Exception("Unhandled message type: %s"%msg.msg_type) AttributeError: 'dict' object has no attribute 'msg_type' ```

File last commit:

r6193:f60f6df8
r9855:7ad908bf
Show More
printnotebookmain.js
30 lines | 1.1 KiB | application/javascript | JavascriptLexer
Brian Granger
Created new print view for notebook printing.
r5875 //----------------------------------------------------------------------------
// Copyright (C) 2008-2011 The IPython Development Team
//
// Distributed under the terms of the BSD License. The full license is in
// the file COPYING, distributed as part of this software.
//----------------------------------------------------------------------------
//============================================================================
// On document ready
//============================================================================
$(document).ready(function () {
Brian Granger
Major refactoring of notebook....
r6193 IPython.init_mathjax();
IPython.read_only = $('body').data('readOnly') === 'True';
$('div#main_app').addClass('border-box-sizing ui-widget');
Brian Granger
Created new print view for notebook printing.
r5875 $('div#notebook_panel').addClass('border-box-sizing ui-widget');
Brian Granger
Major refactoring of notebook....
r6193 IPython.page = new IPython.Page();
IPython.markdown_converter = new Markdown.Converter();
Brian Granger
Created new print view for notebook printing.
r5875 IPython.login_widget = new IPython.LoginWidget('span#login_widget');
IPython.notebook = new IPython.Notebook('div#notebook');
Brian Granger
Major refactoring of notebook....
r6193 IPython.page.show_site();
Brian Granger
Created new print view for notebook printing.
r5875
Brian Granger
Major refactoring of saving, notification....
r6047 IPython.notebook.load_notebook($('body').data('notebookId'));
Brian Granger
Created new print view for notebook printing.
r5875
});