You are viewing an older version (9.5.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.5.0 / IPython / core / interactiveshell / InteractiveShell / run_line_magic

function

IPython.core.interactiveshell:InteractiveShell.run_line_magic

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

Signature

def   run_line_magic ( self magic_name : str line : str _stack_depth = 1 )

Summary

Execute the given line magic.

Parameters

magic_name : str

Name of the desired magic function, without '%' prefix.

line : str

The rest of the input line as a single string.

_stack_depth : int

If 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