printnotebookmain.js
30 lines
| 1.1 KiB
| application/javascript
|
JavascriptLexer
Brian Granger
|
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 () { | ||||
Aron Ahmadia
|
r8565 | IPython.mathjaxutils.init(); | ||
Brian Granger
|
r6193 | |||
IPython.read_only = $('body').data('readOnly') === 'True'; | ||||
Bussonnier Matthias
|
r9277 | $('#ipython-main-app').addClass('border-box-sizing'); | ||
$('div#notebook_panel').addClass('border-box-sizing'); | ||||
Brian Granger
|
r5875 | |||
Brian Granger
|
r6193 | IPython.page = new IPython.Page(); | ||
IPython.markdown_converter = new Markdown.Converter(); | ||||
Brian Granger
|
r5875 | IPython.login_widget = new IPython.LoginWidget('span#login_widget'); | ||
IPython.notebook = new IPython.Notebook('div#notebook'); | ||||
Brian Granger
|
r6193 | IPython.page.show_site(); | ||
Brian Granger
|
r5875 | |||
Brian Granger
|
r6047 | IPython.notebook.load_notebook($('body').data('notebookId')); | ||
Brian Granger
|
r5875 | |||
}); | ||||