MCPcopy Create free account
hub / github.com/ipython/ipython / set_colors

Method set_colors

IPython/core/ultratb.py:554–563  ·  view source on GitHub ↗

Shorthand access to the color table scheme selector method.

(self, *args, **kw)

Source from the content-addressed store, hash-verified

552 return message
553
554 def set_colors(self, *args, **kw):
555 """Shorthand access to the color table scheme selector method."""
556
557 # Set own color table
558 self.color_scheme_table.set_active_scheme(*args, **kw)
559 # for convenience, set Colors to the active scheme
560 self.Colors = self.color_scheme_table.active_colors
561 # Also set colors of debugger
562 if hasattr(self, 'pdb') and self.pdb is not None:
563 self.pdb.set_colors(*args, **kw)
564
565 def color_toggle(self):
566 """Toggle between the currently active color scheme and NoColor."""

Callers 1

__init__Method · 0.95

Calls 1

set_active_schemeMethod · 0.45

Tested by

no test coverage detected