Reputation: 55
I am using spyder python 2.7 and i changed the syntax coloring in Spyder black theme, but i really want my python programme to look in full black, so WITHOUT the white windows.
Can someone provide me a good explanation about how to change this?
Python example of how i want it to be
Upvotes: 2
Views: 12238
Reputation: 817
Spyder 4 is out now. Dark mode is included ✌
Have a look at the changes: https://github.com/spyder-ide/spyder/blob/master/CHANGELOG.md
Upvotes: 1
Reputation: 167
The complete dark theme is available from Spyder 4.0.0 beta https://github.com/spyder-ide/spyder/releases
How I did it :
1) In Anaconda prompt,
conda update qt pyqt
conda install -c spyder-ide spyder=4.0.0b2
2) And if you haven't done it before, go to
Tools > Preferences > Syntax Coloring
Upvotes: 4
Reputation: 89
If you can't wait for Spyder 4 - this is what does it for Spyder 3.3.2 in Windows, using Anaconda3.
pip install qdarkstyle
and exit the promptimport qdarkstyle
to the top of that fileqapplication
function definition with below code (only two added lines)Open Spyder and enjoy your dark theme
def qapplication(translate=True, test_time=3):
"""
Return QApplication instance
Creates it if it doesn't already exist
test_time: Time to maintain open the application when testing. It's given
in seconds
"""
if running_in_mac_app():
SpyderApplication = MacApplication
else:
SpyderApplication = QApplication
app = SpyderApplication.instance()
if app is None:
# Set Application name for Gnome 3
# https://groups.google.com/forum/#!topic/pyside/24qxvwfrRDs
app = SpyderApplication(['Spyder'])
# Set application name for KDE (See issue 2207)
app.setApplicationName('Spyder')
app.setStyleSheet(qdarkstyle.load_stylesheet_pyqt5())
if translate:
install_translator(app)
test_ci = os.environ.get('TEST_CI_WIDGETS', None)
if test_ci is not None:
timer_shutdown = QTimer(app)
timer_shutdown.timeout.connect(app.quit)
timer_shutdown.start(test_time*1000)
return app
Upvotes: 3
Reputation: 34156
(Spyder maintainer here) This functionality will be available in Spyder 4, to be released later in 2019. For now there's nothing you can do to get what you want with Spyder's current version, sorry.
Upvotes: 1