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

Method init_syntax_highlighting

IPython/core/interactiveshell.py:788–791  ·  view source on GitHub ↗
(self, changes=None)

Source from the content-addressed store, hash-verified

786
787 @observe('colors')
788 def init_syntax_highlighting(self, changes=None):
789 # Python source parser/formatter for syntax highlighting
790 pyformat = PyColorize.Parser(style=self.colors, parent=self).format
791 self.pycolorize = lambda src: pyformat(src,'str')
792
793 def refresh_style(self):
794 # No-op here, used in subclass

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected