Shorthand access to the color table scheme selector method.
(self, name: str)
| 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.""" |
nothing calls this directly
no test coverage detected