2021年3月25日星期四

Jupyter Notebooks in VS Code running in WSL2 don't follow VS Code color theme

I know this may seem petty, but I'm struggling to fix an issue when I open a .ipynb in vscode running wsl2 as the remote. The issue is that the color/formatting doesn't seem to follow the VS Code theme.

Here is a screen shot as an example:

jupyter notebook with a dark color scheme

VS Code is running Solarized Dark as the color theme, but the ipynb is following a completely different dark theme. While it may seem like a silly thing (because otherwise the jupyter notebook is working as expected) the differences in themes make the code hard to read at times, and is a little jarring. It makes me rather work in a normal notebook, and that is the problem, because I'd really like to contain my work inside the IDE if possible.

Below you will see the only setting I could find related to this. When checked, the notebook "ignores" the VS code theme and turns white. When uncheck, it is dark as in the screen shot above.

setting checked to not ignore the vs code theme

You can see I'm running connected to a WSL2 remote backend. When I run in a normal windows setting, the .ipynb renders as expected, following the VSCode theme. The problem seems to persist exclusively when working in a WSL2 remote.

enter image description here

Is there any fix for this? I've not found anything yet despite quite a bit of searching.

https://stackoverflow.com/questions/66809581/jupyter-notebooks-in-vs-code-running-in-wsl2-dont-follow-vs-code-color-theme March 26, 2021 at 08:52AM

没有评论:

发表评论