MCPcopy Index your code
hub / github.com/ipython/ipython / set_colors

Method set_colors

IPython/core/tbtools.py:505–514  ·  view source on GitHub ↗

Shorthand access to the color table scheme selector method.

(self, name: str)

Source from the content-addressed store, hash-verified

503 self.pdb.set_theme_name(name)
504
505 def set_colors(self, name: str) -> None:
506 """Shorthand access to the color table scheme selector method."""
507
508 # todo emit deprecation
509 warnings.warn(
510 "set_colors is deprecated since IPython 9.0, use set_theme_name instead",
511 DeprecationWarning,
512 stacklevel=2,
513 )
514 self.set_theme_name(name)
515
516 def color_toggle(self) -> None:
517 """Toggle between the currently active color scheme and nocolor."""

Callers

nothing calls this directly

Calls 2

set_theme_nameMethod · 0.95
warnMethod · 0.80

Tested by

no test coverage detected