1
//----------------------------------------------------------------------------
2
// Copyright (C) 2008-2011 The IPython Development Team
4
// Distributed under the terms of the BSD License. The full license is in
5
// the file COPYING, distributed as part of this software.
6
//----------------------------------------------------------------------------
8
//============================================================================
10
//============================================================================
13
$(document).ready(function () {
15
IPython.init_mathjax();
17
IPython.read_only = $('body').data('readOnly') === 'True';
18
$('div#main_app').addClass('border-box-sizing ui-widget');
19
$('div#notebook_panel').addClass('border-box-sizing ui-widget');
21
IPython.page = new IPython.Page();
22
IPython.markdown_converter = new Markdown.Converter();
23
IPython.login_widget = new IPython.LoginWidget('span#login_widget');
24
IPython.notebook = new IPython.Notebook('div#notebook');
25
IPython.page.show_site();
27
IPython.notebook.load_notebook($('body').data('notebookId'));