Skip to content

How do we customize the color scheme for ipdb? #185

@AdrienLemaire

Description

@AdrienLemaire

Related: #50, #144, #57, #1

By searching around, I understand (probably incorrectly) that ipdb should use ipython's color scheme by default. And that ipython use pygments styles.

So I tried the following:

  • ipython profile create
  • pygmentize -L style
  • vim profile_default/ipython_config
    c.TerminalInteractiveShell.highlighting_style = 'tomorrownight'

Within the same virtualenv, I get colors within ipython, but not within ipdb:

image

image

The prompt seems to be another matter, and I haven't figured out how to change its color yet.

Therefore, I have 2 related questions:

  • Why doesn't ipdb pick up the ipython pygment style? Else how can I override the ipdb shell colors?
  • How can I modify the ipdb prompt color?

Thanks for your help in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions