How can you leave color them of spyder as dark, but display jupyter notebooks with white background instead of black?

91 views
Skip to first unread message

Jonah Gollub

unread,
Aug 10, 2020, 8:48:57 PM8/10/20
to spyder
I like being able to view jupyter notebook in Spyder, but I have a Jupyter notebook that looks bad with the dark theme. Is there a way to display notebooks with the white color scheme as in jupyter notebooks, but leave the rest of Spyder with the Dark them.

Thanks in advance for the help,

Thanks,

Jonah

Jitse Niesen

unread,
Aug 12, 2020, 4:15:11 AM8/12/20
to spyder
I also have notebooks like that. I want to implement a configuration option, which allows people to do this. Hopefully this will be included in the next version. In the meantime, if you are happy to edit the source, it is quite a easy change. Find the file spyder_notebook/utils/servermanager.py . Line 124 should read:

         self.dark_theme = dark_theme

Change this to

         self.dark_theme = False

Your notebooks will now always be displayed with a white background. 

Jitse

jgo...@gmail.com

unread,
Aug 15, 2020, 6:44:28 PM8/15/20
to spyder
Actually, it seems to work if I edited the above file and then switch the theme back to 'Dark' for the current spyder session. However, if I restart Spyder it defaults back to the "Dark' color theme for the notebook? 

jgo...@gmail.com

unread,
Aug 15, 2020, 6:44:28 PM8/15/20
to spyder
Thanks! That does the trick. 

On Wednesday, August 12, 2020 at 4:15:11 AM UTC-4 Jitse Niesen wrote:
Reply all
Reply to author
Forward
0 new messages