This is a development version (latest) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython latest / IPython / core / interactiveshell / InteractiveShell / transform_cell

function

IPython.core.interactiveshell:InteractiveShell.transform_cell

source: /IPython/core/interactiveshell.py :3525

Signature

def   transform_cell ( self raw_cell )

Summary

Transform an input cell before parsing it.

Extended Summary

Static transformations, implemented in IPython.core.inputtransformer2, deal with things like %magic and !system commands. These run on all input. Dynamic transformations, for things like unescaped magics and the exit autocall, depend on the state of the interpreter. These only apply to single line inputs.

These string-based transformations are followed by AST transformations; see transform_ast.

Aliases

  • IPython.InteractiveShell.transform_cell