mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +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) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user