mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Add pygments_lexer key to kernelspec
This commit is contained in:
parent
95355e6ff2
commit
ddbe427dfa
@ -208,9 +208,9 @@ define([
|
|||||||
|
|
||||||
this.events.on('spec_changed.Kernel', function(event, data) {
|
this.events.on('spec_changed.Kernel', function(event, data) {
|
||||||
that.set_kernelspec_metadata(data);
|
that.set_kernelspec_metadata(data);
|
||||||
if (data.codemirror_mode) {
|
// Mode 'null' should be plain, unhighlighted text.
|
||||||
that.set_codemirror_mode(data.codemirror_mode);
|
cm_mode = data.codemirror_mode || data.language || 'null'
|
||||||
}
|
that.set_codemirror_mode(cm_mode);
|
||||||
});
|
});
|
||||||
|
|
||||||
var collapse_time = function (time) {
|
var collapse_time = function (time) {
|
||||||
|
Loading…
Reference in New Issue
Block a user