-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store codemirror config in only one location #89
Conversation
Closes (once backported) #EntropyOrg/p5-Devel-IPerl#40 and jupyter#88
fix highlighting of non-python kernels.
fix highlighting of non-python kernels. mock the cm_config property also when set, unlike in non backported version of this PR
// backward compat. | ||
Object.defineProperty(this, 'cm_config', { | ||
get: function() { | ||
console.warn("warning you are accessing a deprecated field") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does console.warn() say which file & line the warning came from? If not, this message should be more specific.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It depends on the browser. But usually you get the file and line-number on the left side of the developper console.
I got half way through converting the cell classes to the new config system, but didn't manage to finish. I must get back to that at some point, but this looks like a reasonable compromise for the moment. |
Store codemirror config in only one location
fix highlighting of non-python kernels. mock the cm_config property also when set, unlike in non backported version of this PR
Closes (once backported) EntropyOrg/p5-Devel-IPerl#40
and #88