bundles / IPython 9.13.0 / IPython / core / magic / no_var_expand
function
IPython.core.magic:no_var_expand
source: /IPython/core/magic.py :294
Signature
def no_var_expand ( magic_func : _F ) → _F Summary
Mark a magic function as not needing variable expansion
Extended Summary
By default, IPython interprets {a} or $a in the line passed to magics as variables that should be interpolated from the interactive namespace before passing the line to the magic function. This is not always desirable, e.g. when the magic executes Python code (%timeit, %time, etc.). Decorate magics with @no_var_expand to opt-out of variable expansion.
Aliases
-
IPython.core.magic.no_var_expand