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
Code cell missing highlight on load #3636
Comments
I haven't seen either of those effects, can you be more specific about reproducing the bad behavior? I can't think of any focus-related changes in the past several weeks. |
Hmm, let me play with it a bit and see what I can come up with. |
Can you share the notebook (and browser info)? I can't seem to reproduce it here. |
I leave for my trip in a few minutes, so I probably won't get to this until On Tue, Jul 16, 2013 at 12:04 PM, Min RK notifications@github.com wrote:
Brian E. Granger |
It seems to be browser dependent. I do not have that bug with firefox (v22), but have it with chromium: Super simple notebook: |
Doesn't seem to affect Chrome 30 or Firefox 22 on OS X. |
does not affect Chrome 28.0.1500.72 m on Windows |
And suddenly I have it on chrome 29, whereas I've tried many time to reproduce it ... :-( |
And a call to refresh manually on faulty CM does not fix the problem. It might be due to |
This also never triggers when my web-inspector is open and I reload. I have close the web-inspector (race condition somewhere?) |
ensures IPython mode gets defined at startup, which can sometimes fail because the Python mode was loaded dynamically. closes ipython#3636
ensures IPython mode gets defined at startup, which can sometimes fail because the Python mode was loaded dynamically. closes ipython#3636
Sometimes on load, cells can lack highlighting.
Update: Keeping old description about refresh below
The
CodeMirror
object has arefresh
method that must be called in certain cases. This method must be called at very particular points or the CM editor starts to misbehave. Getting this right was one of the most difficult parts of making the notebook work. In the last week or so there have been changes in master (I wasn't running master until last night) that are causingrefresh
related problems:The text was updated successfully, but these errors were encountered: