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

ipywidgets do not respect color theme #212

Closed
robtovey opened this issue Sep 5, 2024 · 1 comment
Closed

ipywidgets do not respect color theme #212

robtovey opened this issue Sep 5, 2024 · 1 comment

Comments

@robtovey
Copy link

robtovey commented Sep 5, 2024

Duplicating tqdm/tqdm#1457 because I think the issue lies in the vscode extensions rather than tqdm or ipywidgets.

Whenever I create a tqdm progress bar in a vscode notebook, it renders in "light mode" rather than matching the current theme. Having a play, it looks like this is also true for the underlying ipywidget.IntProgress object. For example:
image
image

This is on a fresh python environment with:

  • ipywidgets=8.1.5,
  • notebook=7.2.2,
  • tqdm=4.66.5,

and vscode Jupyter=v2024.7.0 batch of extensions, of which I'm guessing the important one is notebook renderer=v1.0.19.
My settings json has the line "workbench.preferredDarkColorTheme": "Default Dark Modern"
The setting "jupyter.themeMatplotlibPlots": true/false has no effect.

Hopefully there is enough here for you to triage exactly which library/extension is at fault, I apologise if this is the wrong place for posting!

For context, there are also stack overflow questions for this as well:

There is some suggestion that vscode "can't theme ipywidgets", but I'm pretty sure JupyterLab manages it.

Thanks for your help

@DonJayamanne
Copy link
Contributor

Duplicate of microsoft/vscode-jupyter#7161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants