Add pygments_lexer key to kernelspec

This commit is contained in:
Thomas Kluyver 2014-10-16 15:28:02 -07:00
parent 95355e6ff2
commit ddbe427dfa

View File

@ -208,9 +208,9 @@ define([
this.events.on('spec_changed.Kernel', function(event, data) {
that.set_kernelspec_metadata(data);
if (data.codemirror_mode) {
that.set_codemirror_mode(data.codemirror_mode);
}
// Mode 'null' should be plain, unhighlighted text.
cm_mode = data.codemirror_mode || data.language || 'null'
that.set_codemirror_mode(cm_mode);
});
var collapse_time = function (time) {