Skip to content
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

Merged
merged 2 commits into from
May 14, 2015

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented May 13, 2015

Closes (once backported) EntropyOrg/p5-Devel-IPerl#40
and #88

Carreau added a commit to Carreau/ipython that referenced this pull request May 13, 2015
fix highlighting of non-python kernels.
Carreau added a commit to Carreau/ipython that referenced this pull request May 13, 2015
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")
Copy link
Member

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.

Copy link
Member Author

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.

@takluyver
Copy link
Member

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.

@minrk minrk added this to the 4.0 milestone May 14, 2015
minrk added a commit that referenced this pull request May 14, 2015
Store codemirror config in only one location
@minrk minrk merged commit fb8b83e into jupyter:master May 14, 2015
Carreau added a commit to Carreau/ipython that referenced this pull request May 24, 2015
fix highlighting of non-python kernels.

mock the cm_config property also when set, unlike in non backported
version of this PR
minrk added a commit to ipython/ipython that referenced this pull request May 24, 2015
@Carreau Carreau deleted the one-config-to-rule-them-all branch April 14, 2016 13:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants