-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Change background color of output cell in JupyterLab #14163
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
@paoloalba when trying to reproduce, vanilla JupyterLab doesn't have all the required packages. Could you please run Full disclosure: we can only help with JupyterLab-related issues so if this problem due to changes in pygments implementation or in interplay of pygments with some extensions, we might not be able to help |
@paoloalba What are you seeing and what are you expecting, specifically? Can you tell us the styles that you're expecting to see and what's actually getting applied? I'm not sure whether this is a bug in JupyterLab. |
here the outputs: InvalidVersionSpec: Invalid version '(>=': unable to convert to expression tree: ['('] $PATH: sys.path: sys.executable: sys.version: platform.platform(): which -a jupyter: pip list: conda list: |
I would expect the background of the output cell to turn in color. Pygments is correctly assigning the property to the background, at least as I would expect. My assumption is that the output-cell is a mixture of several classes and attributes, that eventually overwrite the possibility of assigning any background to my At this point the problem is totally unrelated from the specific package employed (pygments), since I tried to patch manually the styles of several html elements myself (debugging through the dev-tools of the browser). The question that you should be able to answer to help me, is simply to which element do I need to assign the background-color, in order to have an uniform dark background in my output cell (and only a specific single output cell, I am not talking about a global property of a theme) |
@JasonWeill here the given html string with the styles: |
@JasonWeill the |
Description
I am using pygments to highlight some syntax in a jupyter notebook
Reproduce
Here a minimal code to reproduce the issue:
the style I use is just a copy from the official pygments repo (https://github.com/pygments/pygments/blob/master/pygments/styles/gh_dark.py) in order to have better control on the elements.
Expected behavior
The output of the display is correct running the code in a classical jupyter notebook:
but it fails within jupyter lab:
Comments
I tried to patch the css style myself, but I was unable to find the correct css-class to apply the background to.
Context
The text was updated successfully, but these errors were encountered: