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

bundles / IPython 9.18.0.dev / IPython / core / prefilter / AutoMagicChecker / check

function

IPython.core.prefilter:AutoMagicChecker.check

source: /IPython/core/prefilter.py:449

Signature

def check(self, line_info)

Summary

If the ifun is magic, and automagic is on, run it. Note: normal, non-auto magic would already have been triggered via '%' in check_esc_chars. This just checks for automagic. Also, before triggering the magic handler, make sure that there is nothing in the user namespace which could shadow it.

Aliases

  • IPython.core.prefilter.AutoMagicChecker.check