##// END OF EJS Templates
allow kernel_name to be specified in url parameter
Min RK -
Show More
@@ -2275,9 +2275,13 define([
2275 // Create the session after the notebook is completely loaded to prevent
2275 // Create the session after the notebook is completely loaded to prevent
2276 // code execution upon loading, which is a security risk.
2276 // code execution upon loading, which is a security risk.
2277 if (this.session === null) {
2277 if (this.session === null) {
2278 var kernelspec = this.metadata.kernelspec || {};
2278 var kernel_name;
2279 var kernel_name = kernelspec.name;
2279 if (this.metadata.kernelspec) {
2280
2280 var kernelspec = this.metadata.kernelspec || {};
2281 kernel_name = kernelspec.name;
2282 } else {
2283 kernel_name = utils.get_url_param('kernel_name');
2284 }
2281 this.start_session(kernel_name);
2285 this.start_session(kernel_name);
2282 }
2286 }
2283 // load our checkpoint list
2287 // load our checkpoint list
General Comments 0
You need to be logged in to leave comments. Login now