This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/python/yap_kernel/kernel.js
Vitor Santos Costa 1cafba0529 meta & kernel
2018-02-01 01:44:34 +00:00

19 lines
400 B
JavaScript

define([
"/kernelspecs/yap_kernel/prolog.js"],function(CodeMirror){
var onload = function(){
console.log("I am being loaded");
var cell = Jupyter.notebook.get_selected_cell();
var cm = cell.config;
var patch = {
CodeCell:{
cm_config:{mode: "prolog"} // only change here.
}
};
config.update(patch);
return {onload:onload};
}
}
);