##// END OF EJS Templates
move clear_on_kernel_restart back inside reset()...
move clear_on_kernel_restart back inside reset() I originally made a new method (reset_on_restart) to accommodate this new functionality, but it turns out I ended up needing to replicate almost everything that reset() already does inside this new method. In particular, reset_on_restart did not work properly when restarting a kernel that was in debug mode. Everything should now work, and we don't have another method to deal with.

File last commit:

r6193:f60f6df8
r6824:a9c55d5f
Show More
printnotebookmain.js
30 lines | 1.1 KiB | application/javascript | JavascriptLexer
//----------------------------------------------------------------------------
// 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 () {
IPython.init_mathjax();
IPython.read_only = $('body').data('readOnly') === 'True';
$('div#main_app').addClass('border-box-sizing ui-widget');
$('div#notebook_panel').addClass('border-box-sizing ui-widget');
IPython.page = new IPython.Page();
IPython.markdown_converter = new Markdown.Converter();
IPython.login_widget = new IPython.LoginWidget('span#login_widget');
IPython.notebook = new IPython.Notebook('div#notebook');
IPython.page.show_site();
IPython.notebook.load_notebook($('body').data('notebookId'));
});