Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can change the color of the traceback highlight in IPython Windows Powershell by following these steps:

  1. Open IPython Windows Powershell.

  2. Type %colors and press enter. This will display a list of available color schemes.

  3. Note the name of the color scheme you want to modify.

  4. Type %config and press enter.

  5. Type InteractiveShell.colors followed by a dot (.) and the name of the color scheme you want to modify (e.g. xterm).

  6. This will display a list of color settings for that scheme. Find the setting for highlight_color.

  7. To modify the color, you can either use the RGB values or use the name of the color. For example, to set the highlight color to dark blue, you can enter InteractiveShell.colors.xterm.highlight_color = 'navy'.

  8. Press enter to apply the changes.

  9. Type %colors again to confirm that the color was changed.

Note: You can experiment with different colors and settings until you find a combination that works for you.