##// END OF EJS Templates
Merge pull request #4064 from Carreau/default_mode...
Min RK -
r12386:a3e52144 merge
parent child Browse files
Show More
@@ -323,8 +323,13 b' var IPython = (function (IPython) {'
323 323 }
324 324 }
325 325 }
326 // fallback on default (python)
327 var default_mode = this.default_mode || 'text/plain';
326 // fallback on default
327 var default_mode
328 try {
329 default_mode = this._options.cm_config.mode;
330 } catch(e) {
331 default_mode = 'text/plain';
332 }
328 333 this.code_mirror.setOption('mode', default_mode);
329 334 };
330 335
@@ -65,7 +65,6 b' var IPython = (function (IPython) {'
65 65 this.code_mirror = null;
66 66 this.input_prompt_number = null;
67 67 this.collapsed = false;
68 this.default_mode = 'ipython';
69 68 this.cell_type = "code";
70 69
71 70
General Comments 0
You need to be logged in to leave comments. Login now