Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make tqdm bar dark in VSCode Jupyter notebook

I am using Jupyter notebooks in Visual Studio Code with dark mode enabled. I visualize progress bars with tqdm, but it does not show up dark. See the image: enter image description here

According to this issue on GitHub, this is not a problem with the Jupyter, ipywidget or tqdm itself, and it is related only to VSCode.

Is there any workaround to fix this?

like image 542
Sadra Naddaf Avatar asked Sep 12 '25 11:09

Sadra Naddaf


1 Answers

This answer worked for me. Run the code below in a cell.

%%html
<style>
.cell-output-ipywidget-background {
    background-color: transparent !important;
}
:root {
    --jp-widgets-color: var(--vscode-editor-foreground);
    --jp-widgets-font-size: var(--vscode-editor-font-size);
}  
</style>
like image 85
mentoc3000 Avatar answered Sep 14 '25 00:09

mentoc3000