Change all Jupyter notebook background colors in PyCharm to white
Asked Answered
C

4

11

I've somehow changed the appearance of my PyCharm environment and now because my screen is not very bright I don't see a thing when it's sunny day.

It looks like this now: enter image description here

So, I thought that changing theme from Darcula will help: enter image description here

But the result is even worse: enter image description here

I know that it's impossible to change output color from black but I think all other could be feasible. Could you give me steps to revert to default apperance? Normal white notebook would be best. Thanks.

Caviar answered 22/5, 2018 at 7:56 Comment(1)
#35209538 could helpLagena
M
7

In PyCharm 2019.1 to change the background color of the selected cell of a Jupyter notebook I did PyCharm > Preferences > Editor > Color Scheme > Jupyter > Selected Cell and unticked Background

PyCharm settings change Jupyter Selected Cell background color

Munt answered 13/9, 2019 at 11:21 Comment(2)
In newer versions of PyCharm (e.g., 2022.2) the cell background color setting is found in Notebooks settings, not Jupyter. That is: PyCharm > Preferences > Editor > Color Scheme > Notebooks > Code cell background.Morley
@AttilatheFun Same to you, did you manage to find the background color for the current line (line under caret) in a Jupyter notebook? I don't think it is configurable as of 2023.3.2.Bootless
D
16

This isn't answering the OP's question but may be useful for others who, like me, found this page when searching how to change plot background colours from black to white.

PyCharm > Preferences > Languages & Frameworks > Jupyter > (untick) Invert image outputs for dark themes

Note: changing your matplotlib rcParams won't help you here.

With 'Invert image outputs for dark themes' ticked

Without 'Invert image outputs for dark themes' ticked

Drescher answered 14/3, 2023 at 13:41 Comment(0)
M
7

In PyCharm 2019.1 to change the background color of the selected cell of a Jupyter notebook I did PyCharm > Preferences > Editor > Color Scheme > Jupyter > Selected Cell and unticked Background

PyCharm settings change Jupyter Selected Cell background color

Munt answered 13/9, 2019 at 11:21 Comment(2)
In newer versions of PyCharm (e.g., 2022.2) the cell background color setting is found in Notebooks settings, not Jupyter. That is: PyCharm > Preferences > Editor > Color Scheme > Notebooks > Code cell background.Morley
@AttilatheFun Same to you, did you manage to find the background color for the current line (line under caret) in a Jupyter notebook? I don't think it is configurable as of 2023.3.2.Bootless
B
3

For PyCharm 2019.1 on macOS HighSierra 10.13.6, I observed, that changing the theme of appearance to "Light" helps out. I remember, this used to be named "Default" in older versions of PyCharm. (Thereto, just as you described, go to Preferences -> Appearance & Behaviour -> Appearance, and select the appropriate theme in the drop-down menu.) However, the changes did only apply to jupyter notebook after closing and reopening the project.

In short: Restart or Reopening the Project after applying the changes should help.

Bessie answered 25/5, 2019 at 10:32 Comment(2)
Restart for Windows10 also may be helpfulNonattendance
Always restart Windows.Tamanaha
R
3

For changing Jupyter cell background color in PyCharm 2022.1.3, you can use:

Settings In left navigation menu: Editor > Color Scheme > Notebooks Color Scheme setting: Code cell background

See this example image: PyCharm 2022.1.3 Jupyter cell background color setting in Color Schema

It makes a lot of sense, but it took me a long time to find this option as there are simply so many miniscule settings. A strategy that worked for me in the end was creating a temporary color scheme by duplicating an existing one, and than search for "background" in the settings menu, and start changing all potentially relevant values.

It made it more problematic that I believed that the PyCharm project needed to be restarted in order to apply the color scheme settings as others mentioned for previous versions, but this appeared not to be an issue for me in the end. As soon as I clicked 'Apply', it adjusted the color scheme settings also in my Jupyter notebook.

Rudd answered 9/7, 2022 at 12:24 Comment(1)
Did you manage to find the background color for the current line (line under caret) in a Jupyter notebook? I don't think it is configurable as of 2023.3.2.Bootless

© 2022 - 2024 — McMap. All rights reserved.