adding syntax highlighting to Jupyter notebook cell magic
问题 I'm trying to figure out how to activate CodeMirror syntax highlighting for a CodeMirror-supported language (cypher) within a cell for a custom Jupyter cell magic ( %%mymagic ). The magic isn't associated with a special kernel - it just runs Python commands that process the string entered into the cell that I want to highlight. From what I can tell, this ostensibly can be done using something like from notebook.services.config.manager import ConfigManager cm = ConfigManager() cm.update(