From a576a0c8a1cb5e06aeefacc70c28d6eccc3d93a9 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Thu, 10 Oct 2013 16:45:21 +0000 Subject: [PATCH] Fixed widget.js and notebook.js so IPython.notebook.widget_manager is created. --- IPython/html/static/notebook/js/notebook.js | 20 +++++++------------- IPython/html/static/notebook/js/widget.js | 5 +++-- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index e1cc2b1c6..13420142b 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -1288,25 +1288,19 @@ var IPython = (function (IPython) { * * @method start_session */ - Notebook.prototype.start_session = function () { - this.session = new IPython.Session(this.notebook_name, this.notebook_path, this); - this.session.start($.proxy(this._session_started, this)); - }; - - - /** - * Once a session is started, link the code cells to the kernel - * - */ - Notebook.prototype._session_started = function(){ - this.kernel = this.session.kernel; + Notebook.prototype.start_kernel = function () { + var base_url = $('body').data('baseKernelUrl') + "kernels"; + this.kernel = new IPython.Kernel(base_url); + this.kernel.start({notebook: this.notebook_id}); + // Now that the kernel has been created, tell the CodeCells about it. var ncells = this.ncells(); for (var i=0; i