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.
Bases: IPython.nbconvert.preprocessors.base.Preprocessor
Detects and tags code cells that use a different languages than Python.
Public constructor
Tags cells using a magic extension language
Parameters: | 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.
Parameters: | source: str :
|
---|