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

bundles / IPython 9.5.0 / IPython / core / magics / auto / AutoMagics / automagic

function

IPython.core.magics.auto:AutoMagics.automagic

source: /IPython/core/magics/auto.py :33

Signature

def   automagic ( self parameter_s = '' )

Summary

Make magic functions callable without having to type the initial %.

Extended Summary

Without arguments toggles on/off (when off, you must call it as %automagic, of course). With arguments it sets the value, and you can use any of (case insensitive):

  • on, 1, True: to activate

  • off, 0, False: to deactivate.

Note that magic functions have lowest priority, so if there's a variable whose name collides with that of a magic fn, automagic won't work for that function (you get the variable instead). However, if you delete the variable (del var), the previously shadowed magic function becomes visible to automagic again.

Aliases

  • IPython.core.magics.AutoMagics.automagic