##// END OF EJS Templates
adresses Min comments
Matthias Bussonnier -
Show More
@@ -81,8 +81,7 define([
81 .attr('href',css_url);
81 .attr('href',css_url);
82 },
82 },
83 error:function(){
83 error:function(){
84 console.warn(new_mode_url+' does not provide custom URL, you might see a 404 error that should not prevent '+
84 console.info("No custom kernel.css at URL:", css_url)
85 ' the Jupyter notebook from working :' ,css_url );
86 }
85 }
87 });
86 });
88
87
@@ -109,19 +108,22 define([
109 if(new_mode && new_mode.onload){
108 if(new_mode && new_mode.onload){
110 new_mode.onload();
109 new_mode.onload();
111 } else {
110 } else {
112 console.warn("The current kernel defined a kernel.js file but does not contain"+
111 console.warn("The current kernel defined a kernel.js file but does not contain "+
113 "any asynchronous module definition. This is undefined behavior"+
112 "any asynchronous module definition. This is undefined behavior "+
114 "which is not recommended");
113 "which is not recommended");
115 }
114 }
116 },
115 },
117 function(err){
116 function(err){
118 // if new mode does not have custom.js
117 // if new mode does not have custom.js
119 console.warn('Any above 404 on '+new_mode_url+'.js is normal');
118 console.info("No custom kernel.css at URL:", new_mode_url)
120 }
119 }
121 );
120 );
122 };
121 };
123
122
124 KernelSelector.prototype.lock_switch = function() {
123 KernelSelector.prototype.lock_switch = function() {
124 // should set a flag and display warning+reload if user want to
125 // re-change kernel. As UI discussion never finish
126 // making that a separate PR.
125 console.warn('switching kernel is not guaranteed to work !');
127 console.warn('switching kernel is not guaranteed to work !');
126 };
128 };
127
129
General Comments 0
You need to be logged in to leave comments. Login now