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

Method add_scheme

IPython/utils/coloransi.py:158–162  ·  view source on GitHub ↗

Add a new color scheme to the table.

(self,new_scheme)

Source from the content-addressed store, hash-verified

156 return ColorSchemeTable(self.values(),self.active_scheme_name)
157
158 def add_scheme(self,new_scheme):
159 """Add a new color scheme to the table."""
160 if not isinstance(new_scheme,ColorScheme):
161 raise ValueError('ColorSchemeTable only accepts ColorScheme instances')
162 self[new_scheme.name] = new_scheme
163
164 def set_active_scheme(self,scheme,case_sensitive=0):
165 """Set the currently active scheme.

Callers 2

__init__Method · 0.95
exception_colorsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected