Show More
@@ -323,8 +323,13 b' var IPython = (function (IPython) {' | |||||
323 | } |
|
323 | } | |
324 | } |
|
324 | } | |
325 | } |
|
325 | } | |
326 |
// fallback on default |
|
326 | // fallback on default | |
327 | var default_mode = this.default_mode || 'text/plain'; |
|
327 | var default_mode | |
|
328 | try { | |||
|
329 | default_mode = this._options.cm_config.mode; | |||
|
330 | } catch(e) { | |||
|
331 | default_mode = 'text/plain'; | |||
|
332 | } | |||
328 | this.code_mirror.setOption('mode', default_mode); |
|
333 | this.code_mirror.setOption('mode', default_mode); | |
329 | }; |
|
334 | }; | |
330 |
|
335 |
@@ -65,7 +65,6 b' var IPython = (function (IPython) {' | |||||
65 | this.code_mirror = null; |
|
65 | this.code_mirror = null; | |
66 | this.input_prompt_number = null; |
|
66 | this.input_prompt_number = null; | |
67 | this.collapsed = false; |
|
67 | this.collapsed = false; | |
68 | this.default_mode = 'ipython'; |
|
|||
69 | this.cell_type = "code"; |
|
68 | this.cell_type = "code"; | |
70 |
|
69 | |||
71 |
|
70 |
General Comments 0
You need to be logged in to leave comments.
Login now