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
Annotate HTML alignment broken in JupyterLab #4064
Comments
That is likely an issue in JupyterLab itself; and diverging CSS with classic notebook; do you know with which version of JupyterLab. cc @jasongrout |
I have JupyterLab version 0.35.5 and Numba git master (but probably the same as the last release, you should see this issue with Numba 0.43.1 as well). |
you may want to try with Jupyterlab 1.0-alpha, using |
I tried In Jupyter notebook the output looks fine. If someone has time to try and reproduce and pinpoint the issue, here's the code snippet to copy & paste to reproduce the issue:
|
(perhaps the striping should be with |
@jasongrout - Thanks for having a look! What does it mean? Will something be changed to fix this on the JupyterLab side, or is a fix in the I see there's CSS with a comment "override JupyterLab style" here: numba/numba/pretty_annotate.py Lines 100 to 117 in 4214708
|
Good question. It's not clear to me which should change to make the annotation table css have higher precedence. I mean, in general we'd like to not cause users work, but custom css relies heavily on the dom and css structure, and that's not something we preserved from the classic notebook (and never really was a public api for users). It's probably easiest to make the change in numba, as in there are far fewer moving parts that are all interconnected. It's not very clear if we change jlab to have less specific css for those tables how those changes will ripple through the jlab styling. |
If you wanted to make sure your styling took precedence, you could hardcode |
@cdeil hi! It has been over a year since the last activity on this ticket and I was wondering if this issue is perhaps resolved by now? Or perhaps you managed to discover a workaround? |
While trying out Numba
Annotate
(and after fixing #4063) I noticed that the alignment is broken in JupyterLab. It is right-aligned, but should be left-aligned. (I didn't try in Jupyter notebook)See screenshot below.
@Carreau - Do you know what's wrong?
Another usability issue is that executing the cell with the example multiple times makes the HTML output grow and grow, showing the same annotated output multiple times. This looks like a bug, no? When re-executing a
def
statement withnumba.jit
decorator, a newnumba.targets.registry.CPUDispatcher
object should be created, and nothing should accumulate, no?The text was updated successfully, but these errors were encountered: