TenjintShell.run_line_magic

TenjintShell.run_line_magic(magic_name, line, _stack_depth=1)

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()’