7

I'm using VS Code with the Jupyter's Python Interactive window so that I can run individual cells and get the output, figures etc. in the Python Interactive window.

However, some of the colors are unreadable on darker themes, for example see the blue and red words in the example below.

Changing the theme does not change the colors in the Python Interactive window.

enter image description here

KMFR
  • 895
  • 1
  • 15
  • 24

3 Answers3

0

Not a complete answer to your question unfortunately, but I have found the built in dark themes remain legible in the python interactive window. You may find that you have to restart vs code for the theme change to occur. This is a screen shot while using the included dark+ theme.

enter image description here

Mickael Maison
  • 25,067
  • 7
  • 71
  • 68
daveg
  • 535
  • 2
  • 10
  • Weird, this looks different from mine with the default Dark+ theme, which looks like this: https://i.imgur.com/nC7wVGS.png (the blue text is impossible to read, red color for strings doesn't make sense and so on...) – KMFR Feb 13 '19 at 14:07
  • Restarting VSCode and reloading the window made the "import" parts a bit more readable, but the errors are still unreadable (the blue and red parts): https://i.imgur.com/NPNSvhB.png – KMFR Feb 13 '19 at 14:13
  • Yes, it seems the cell output text is not great - I think the appearance settings might need to be exposed in the extension. One similar workflow you might be interested in as a workaround is the VSnotebooks extension. – daveg Feb 13 '19 at 16:44
0

There's a helpful thread on customizing Jupyter colors on this VS Code Python github issue: https://github.com/Microsoft/vscode-python/issues/3773.

Given a recent download of the python extension, you can go to settings > user settings, then search for 'data science', and adjust things there. My issue was error cells of the interactive window not matching the default dark theme.

Before: enter image description here

I applied this solution (https://github.com/Microsoft/vscode-python/issues/3773#issuecomment-478073314), and now:

enter image description here

I'm using VS Code 1.33.0, with Python extension v 2019.3.6352 on OS X.

arvi1000
  • 9,393
  • 2
  • 42
  • 52
0

Change the theme to vs-code dark theme/default-themes and change back to your custom theme.

Notebook will retain the vs codes defaults themes.

Only a workaround to get a pretty theme in notebook. Cant change to custom theme.

That would make this.

Notebook Theme before switching the theme.

to this

Notebook Theme after switching theme to default vscode dark mode then to custom theme

If you are wondering, My Vs Code theme is Bluloco Dark theme

Akber Iqbal
  • 14,487
  • 12
  • 48
  • 70
Srinadh
  • 386
  • 4
  • 11