spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.21k stars 1.59k forks source link

How to change the colors of console? #16607

Open ok97465 opened 2 years ago

ok97465 commented 2 years ago

What steps will reproduce the problem?

Hello. I want the colors of the console. (Prompt, Error message, ...) How can I change the colors?

console

Spyder version: 5.2.0.dev0(#3cdcfc13e)

Mandatory:

atomicwrites >=1.2.0 : 1.4.0 (OK) chardet >=2.0.0 : 4.0.0 (OK) cloudpickle >=0.5.0 : 2.0.0 (OK) cookiecutter >=1.6.0 : 1.7.2 (OK) diff_match_patch >=20181111 : 20200713 (OK) intervaltree >=3.0.2 : 3.1.0 (OK) IPython >=7.6.0 : 7.27.0 (OK) jedi >=0.17.2;<0.19.0 : 0.17.2 (OK) jellyfish >=0.7 : None (OK) jsonschema >=3.2.0 : 3.2.0 (OK) keyring >=17.0.0 : 23.1.0 (OK) nbconvert >=4.0 : 6.1.0 (OK) numpydoc >=0.6.0 : 1.1.0 (OK) parso >=0.7.0;<0.9.0 : 0.7.0 (OK) pexpect >=4.4.0 : 4.8.0 (OK) pickleshare >=0.4 : 0.7.5 (OK) psutil >=5.3 : 5.8.0 (OK) pygments >=2.0 : 2.10.0 (OK) pylint >=2.5.0 : 2.9.6 (OK) pyls_spyder >=0.4.0 : 0.4.0 (OK) pylsp >=1.2.2;<1.3.0 : 1.3.0.dev0 (OK) pylsp_black >=1.0.0 : None (OK) qdarkstyle =3.0.2 : 3.0.2 (OK) qstylizer >=0.1.10 : 0.1.10 (OK) qtawesome >=1.0.2 : 1.0.2 (OK) qtconsole >=5.1.0 : 5.1.1 (OK) qtpy >=1.5.0 : 1.10.0 (OK) rtree >=0.9.7 : 0.9.7 (OK) setuptools >=49.6.0 : 58.0.4 (OK) sphinx >=0.6.6 : 4.2.0 (OK) spyder_kernels >=2.1.1;<2.2.0 : 2.2.0.dev0 (OK) textdistance >=4.2.0 : 4.2.1 (OK) three_merge >=0.1.1 : 0.1.1 (OK) watchdog >=0.10.3 : 2.1.3 (OK) xdg >=0.26 : 0.27 (OK) zmq >=17 : 22.2.1 (OK)

Optional:

cython >=0.21 : 0.29.24 (OK) matplotlib >=2.0.0 : 3.4.2 (OK) numpy >=1.7 : 1.21.2 (OK) pandas >=1.1.1 : 1.3.3 (OK) scipy >=0.17.0 : 1.7.1 (OK) sympy >=0.7.3 : 1.8 (OK)

steff456 commented 2 years ago

Hi @ok97465,

The colors of the console are linked to Spyder's theme, you can change it on Preferences > Appearance > Syntax Highlighting theme. You can either choose one from the list of themes, or change any color by clicking in Edit selected scheme or even create a new one.

Hope this helps! Please let me know if there's anything else you need help with

ok97465 commented 2 years ago

In the figure below, "In [3]:" is the color of #00FF00 and "NameError"is the color of #FF0000.

console

I've been trying to find an option to change these colors, but I'm failed. Could you please explain in more detail? Thank you.

ccordoba12 commented 2 years ago

Hey @ok97465, those colors are hard-coded in IPython and we can't adjust them in Spyder at the moment. However, that will change when IPython 8 is released in a couple of months because then third-party apps could decide what colors to use instead.

green-slowmoe commented 2 years ago

so now that IPython 8 is here, how should one go about homogenizing its colors with the rest of spyder?

je-santos commented 1 year ago

On dark mode it's hard to read the folder names when typingls. It's a very dark blue :(

shiganai commented 1 year ago

Hi, I'm facing the same issue. Spyder is a good environment to debug with iPython, so it will be great if we can customize the color scheme

Ellnz commented 1 year ago

I'm also finding it impossible to view the dark blue columns in the console when printing data.