bundles / IPython latest / IPython / core / interactiveshell / InteractiveShell / run_line_magic
function
IPython.core.interactiveshell:InteractiveShell.run_line_magic
Signature
def run_line_magic ( self , magic_name : str , line : str , _stack_depth = 1 ) Summary
Execute the given line magic.
Parameters
magic_name: strName of the desired magic function, without '%' prefix.
line: strThe rest of the input line as a single string.
_stack_depth: intIf run_line_magic() is called from magic() then _stack_depth=2. This is added to ensure backward compatibility for use of 'get_ipython().magic()'
Aliases
-
IPython.InteractiveShell.run_line_magic