(self, changes=None)
| 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 |