MagicsProcessor
class MagicsProcessor(handler: LibrariesAwareMagicsHandler, parseOutCellMarker: Boolean = false) : AbstractMagicsProcessor, CodePreprocessor, KernelInternalObject
This class handles all magic commands encountered during compilation of a notebook cell, i.e., commands that start with %
, like %use dataframe
.
If this results in new classes that need to be added to the classpath, they are returned in CodePreprocessor.Result.libraries.
Functions
Link copied to clipboard
fun codeIntervals(code: String, magicsIntervals: Sequence<CodeInterval> = magicsIntervals(code), preserveLinesEnumeration: Boolean = false): <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun processMagics(code: String, parseOnly: Boolean = false, tryIgnoreErrors: Boolean = false): CodePreprocessor.Result