1 """Implementation of all the magic functions built into IPython. 2 """ 3 #----------------------------------------------------------------------------- 4 # Copyright (c) 2012 The IPython Development Team. 5 # 6 # Distributed under the terms of the Modified BSD License. 7 # 8 # The full license is in the file COPYING.txt, distributed with this software. 9 #----------------------------------------------------------------------------- 10 11 #----------------------------------------------------------------------------- 12 # Imports 13 #----------------------------------------------------------------------------- 14 15 from ..magic import Magics, magics_class 16 from .auto import AutoMagics 17 from .basic import BasicMagics, AsyncMagics 18 from .code import CodeMagics, MacroToEdit 19 from .config import ConfigMagics 20 from .display import DisplayMagics 21 from .execution import ExecutionMagics 22 from .extension import ExtensionMagics 23 from .history import HistoryMagics 24 from .logging import LoggingMagics 25 from .namespace import NamespaceMagics 26 from .osm import OSMagics 27 from .packaging import PackagingMagics 28 from .pylab import PylabMagics 29 from .script import ScriptMagics 30 31 #----------------------------------------------------------------------------- 32 # Magic implementation classes 33 #----------------------------------------------------------------------------- 34 35 @magics_class 36 class UserMagics(Magics): 37 """Placeholder for user-defined magics to be added at runtime. 38 39 All magics are eventually merged into a single namespace at runtime, but we 40 use this class to isolate the magics defined dynamically by the user into 41 their own class. 42 """ 43