This documentation is for a development version of IPython. There may be significant differences from the latest stable release.
This preprocessor detect cells using a different language through magic extensions such as %%R or %%octave. Cell’s metadata is marked so that the appropriate highlighter can be used in the highlight filter.
Detects and tags code cells that use a different languages than Python.
Tags cells using a magic extension language
cell : NotebookNode cell
resources : dictionary
cell_index : int
When a cell uses another language through a magic extension, the other language is returned. If no language magic is detected, this function returns None.