-
Notifications
You must be signed in to change notification settings - Fork 5k
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 not centered properly in cell #5629
Comments
Sigh, yep, I'm seeing the same thing. Thank you for bringing this to our attention @m2-farzan. Looks like this comment was telling: #5616 (comment) I've built with @akdor1154 - could you please build with 5.53.2 and ensure the IJulia issue for #5615 is resolved? |
I observed that the problem is probably related to codemirror/codemirror5@632f30b so I looked up at Now I'm wondering why it didn't automatically get updated. I suspected that maybe it's just my cache, so I cleared |
Thanks for the update. I'm not a front-end dev - so have no idea. I'm sure others will know. So based on that, it sounds like |
I'd say let's try the new 5.56.0 that has that fix. This is a good reason to have snapshot testing in general 😄 |
I think the issue is that something has gone wrong packaging the codemirror bower package - lib/codemirror.css in the components/codemirror repo is out of date in the relevant tags. See components/codemirror#3 . If this is fixed then by my understanding 5.55.0 should be fine in theory (as the issue comes from mismatch of CM css+js). OTOH I'm always supportive of keeping deps up to date so .56 is fine too. Let's see how codemirror tackles releasing a fix for this. Codemirror advice is "use npm" btw, not sure if Notebook could consider doing that. |
JupyterLab 2.2.x is using |
@akdor1154 - does your IJulia issue referenced in #5615 occur on Jupyter Lab? Since they're using codemirror 5.32.2, that could be a solution here as well. |
Nevermind @akdor1154 - backtracking a bit more, I found this #5469 (comment). This implies we need >= 5.55 but we'll need to resolve the scrollbar issue - that is not evident in Jlab (as @blink1073 has confirmed). I'll have to defer to someone with frontend dev experience here - sorry. Once this issue is resolved, I'll cut |
I got components/codemirror to publish fixed releases, Jupyter should be able to depend on |
Wow - thank you! Okay - that seems reasonable. Is there any timeframe for |
Not as far as I'm aware, it's up to Codemirror upstream I guess. |
After 8ca68cc, the code in cells is not centered properly.
before 8ca68cc:
after 8ca68cc:
Repro steps:
I have observed this in Chromium & Firefox.
Edit:
Things get worse when writing multi-line code.
The text was updated successfully, but these errors were encountered: