From 57ec09e18fa1e68b4b02d0ce57738b4161f14b4f 2014-01-16 10:55:57 From: Jonathan Frederic Date: 2014-01-16 10:55:57 Subject: [PATCH] Fixed widget.js and notebook.js so IPython.notebook.widget_manager is created. --- diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index e1cc2b1..1342014 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