Commit d6ed4f73 authored by Romain Casati's avatar Romain Casati
Browse files

Using the new 0.20.0 kernel API.

parent b9dcc9ca
......@@ -2,7 +2,7 @@
* Basthon part of the notebook GUI.
*/
define([
'basthon-kernel/basthon',
'basthon-kernel/basthon_python',
'basthon-kernel/basthon_goodies',
'components/pako/dist/pako',
'components/js-base64/base64',
......@@ -178,14 +178,14 @@ function(Basthon, BasthonGoodies, pako, Base64, dialog) {
* Load auxiliary files submited via URL (aux= parameter) (async).
*/
that.loadURLAux = function () {
return that._loadFromURL('aux', Basthon.putFile);
return that._loadFromURL('aux', Basthon.putFile.bind(Basthon));
};
/**
* Load modules submited via URL (module= parameter) (async).
*/
that.loadURLModules = function () {
return that._loadFromURL('module', Basthon.putModule);
return that._loadFromURL('module', Basthon.putModule.bind(Basthon));
};
/**
......
......@@ -2416,7 +2416,7 @@ define([
var do_kernel_action = options.kernel_action || restart_and_resolve;
/* [Basthon] */
// added to support kernel restar
// added to support kernel restart
do_kernel_action = function () {
Basthon.restart();
resolve_promise();
......
define(["basthon-kernel/basthon"], function(Basthon) {
define(["basthon-kernel/basthon_python"], function(Basthon) {
"use strict";
let CLOSED = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment