Ask Your Question
2

What is the method to alter the color of the traceback highlight in IPython Windows Powershell?

asked 2022-08-06 11:00:00 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-07-02 20:00:00 +0000

devzero gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-08-06 11:00:00 +0000

Seen: 11 times

Last updated: Jul 02 '21