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

Method set_colors

IPython/core/debugger.py:361–370  ·  view source on GitHub ↗

Shorthand access to the color table scheme selector method.

(self, scheme)

Source from the content-addressed store, hash-verified

359
360 #
361 def set_colors(self, scheme):
362 """Shorthand access to the color table scheme selector method."""
363 warnings.warn(
364 "set_colors is deprecated since IPython 9.0, use set_theme_name instead",
365 DeprecationWarning,
366 stacklevel=2,
367 )
368 assert scheme == scheme.lower()
369 self._theme_name = scheme.lower()
370 self.parser.theme_name = scheme.lower()
371
372 def set_trace(self, frame=None, **kwargs):
373 if frame is None:

Callers

nothing calls this directly

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected