[python] How to change the Spyder editor background to dark?

I've just updated Spyder to version 3.1 and I'm having trouble changing the colour scheme to dark. I've been able to change the Python and iPython console's to dark but the option to change the editor to dark is not where I would expect it to be. Could anybody tell me how to change the colour scheme of the Spyder 3.1 editor to dark?

This question is related to python themes spyder

The answer is


@D.Wolf -- if Preferences doesn't appear in the drop-down under Tools, there is also an icon in the toolbar that is a direct path to tools -> Preferences, and the Syntax Coloring is on the left-hand side. See the wrench? Just click that.


Yes, that's the intuitive answer. Nothing in Spyder is intuitive. Go to Preferences/Editor and select the scheme you want. Then go to Preferences/Syntax Coloring and adjust the colors if you want to. tcebob


Tools->Preferences->Syntax coloring->Scheme changed to "Spyder Dark"

For Spyder 2.3 which is still installed via apt-get on linux, you change the theme via

Tools > Preferences > Editor > Syntax Color 

The

Tools > Preferences > Syntax Coloring

only shows options for adjusting the different themes, but not actually applying a different theme. Spyder 3.x uses the second option via Syntax Color.


If you are using MacBook Pro (OS X) follow the following steps:

python > Preference > Syntax coloring

enter image description here

enter image description here


For Spyder 3: In case you don't find Preferences under Tools > Preferences, thats probably because Preferences is pinned onto your tool bar by default Preferences in Tool Bar


I think some of the people answering this question don’t actually try to do what they recommend, because there is something wrong with way the Mac OS version handles the windows.

When you choose the new color scheme and click OK, the preferences window looks like it closed, but it is still there behind the main spyder window. You need to switch windows with command ~ or move the main spyder window to expose the preferences window. Then you need to click Apply to get the new color scheme.


I've seen some people recommending installing aditional software but in my opinion the best way is by using the built-in skins, you can find them at:

Tools > Preferences > Syntax Coloring


1.Click Tools
2.Click Preferences
3.Select Syntax Coloring


In Spyder 4.1, you can change background color from: Tools > Preferences > Appearance > Syntax highlighting scheme


I tried the option: Tools > Preferences > Syntax coloring > dark spyder is not working.

You should rather use the path: Tools > Preferences > Syntax coloring > spyder then begin modifications as you want your editor to appear


At First click on preferences(Ctrl+Shift+alt+p) then click the option of syntax coloring and change the scheme to "Monokai".Now apply it and you will get the dark scheme.


In Spyder 2.3.8 on Ubuntu, I found several settings to do this - each one for a different part of the window... Seems that you can't make all areas dark though.

Editor

Inspector

Console

History

IPython

And the final result looks like this:

Final


I like matching the editor dark scheme to IPython dark scheme. As for IPython, go to

Tools > Preferences > IPython cosole > display tab

and check Dark background.

Restart the kernel. Then look at the colors you get, say, when you import. My spyder2 (python 2.7) uses Anaconda's ipython 5.3.0 and import is pink, the best matching scheme for the editor is Monokai, you choose this in

Tools > Preferences > Syntax coloring

My spyder3, when choosing dark IPython (2.4.1) background prints colors a bit different than Monokai, but if you go to

Tools > Preferences > Syntax coloring  

you go to Monokai tab and tweak the colors a bit. I had to change builtin from lilac to cyan


I want to add that you can change the theme of Spyder 3 to a dark on Linux by using:

Qtmodern


Install Qtmodern with pip3

pip3 install --user qtmodern

Open the file:

python-site-packages/spyder/app/mainwindow.py

Import modern style

Find:

# Qt imports

Add:

import qtmodern.styles
import qtmodern.windows

Theme the app

Find method:

def run_spyder(

Add:

#wrapper for custom theme
qtmodern.styles.dark(app)

Theme the window

Find:

main.show()

Replace it with:

##wrapper for dark window theme
mw = qtmodern.windows.ModernWindow(main)
mw.show()

hey there go to GITHUB link here(https://github.com/joonro/Spyder-Color-Themes) do as the page says u can get the stunning tomorrow night theme


On mine it's Tools --> Preferences --> Editor and "Syntax Color Scheme" dropdown is at the very bottom of the list.


Examples related to python

programming a servo thru a barometer Is there a way to view two blocks of code from the same file simultaneously in Sublime Text? python variable NameError Why my regexp for hyphenated words doesn't work? Comparing a variable with a string python not working when redirecting from bash script is it possible to add colors to python output? Get Public URL for File - Google Cloud Storage - App Engine (Python) Real time face detection OpenCV, Python xlrd.biffh.XLRDError: Excel xlsx file; not supported Could not load dynamic library 'cudart64_101.dll' on tensorflow CPU-only installation

Examples related to themes

Change the Theme in Jupyter Notebook? How to change the Spyder editor background to dark? How to edit default dark theme for Visual Studio Code? Why do Sublime Text 3 Themes not affect the sidebar? How do you set the title color for the new Toolbar? How to set editor theme in IntelliJ Idea How to change background color in the Notepad++ text editor? How to change app default theme to a different app theme? Apply a theme to an activity in Android? MySQL Workbench Dark Theme

Examples related to spyder

Anaconda Navigator won't launch (windows 10) How to start Spyder IDE on Windows How to change python version in anaconda spyder Python Pandas - Missing required dependencies ['numpy'] 1 how to update spyder on anaconda How to change the Spyder editor background to dark? Shortcut key for commenting out lines of Python code in Spyder ImportError: No module named 'google' %matplotlib line magic causes SyntaxError in Python script How to run Spyder in virtual environment?