__init__.py
42 lines
| 1.6 KiB
| text/x-python
|
PythonLexer
Fernando Perez
|
r6956 | """Implementation of all the magic functions built into IPython. | ||
""" | ||||
M Bussonnier
|
r29045 | #----------------------------------------------------------------------------- | ||
Fernando Perez
|
r6972 | # Copyright (c) 2012 The IPython Development Team. | ||
Fernando Perez
|
r6956 | # | ||
# Distributed under the terms of the Modified BSD License. | ||||
# | ||||
# The full license is in the file COPYING.txt, distributed with this software. | ||||
M Bussonnier
|
r29045 | #----------------------------------------------------------------------------- | ||
Fernando Perez
|
r6956 | |||
M Bussonnier
|
r29045 | #----------------------------------------------------------------------------- | ||
Fernando Perez
|
r6956 | # Imports | ||
M Bussonnier
|
r29045 | #----------------------------------------------------------------------------- | ||
from ..magic import Magics, magics_class | ||||
from .auto import AutoMagics | ||||
from .basic import BasicMagics, AsyncMagics | ||||
from .code import CodeMagics, MacroToEdit | ||||
from .config import ConfigMagics | ||||
from .display import DisplayMagics | ||||
from .execution import ExecutionMagics | ||||
from .extension import ExtensionMagics | ||||
from .history import HistoryMagics | ||||
from .logging import LoggingMagics | ||||
from .namespace import NamespaceMagics | ||||
from .osm import OSMagics | ||||
from .packaging import PackagingMagics | ||||
from .pylab import PylabMagics | ||||
from .script import ScriptMagics | ||||
#----------------------------------------------------------------------------- | ||||
Fernando Perez
|
r6957 | # Magic implementation classes | ||
M Bussonnier
|
r29045 | #----------------------------------------------------------------------------- | ||
Fernando Perez
|
r6957 | |||
Fernando Perez
|
r6973 | @magics_class | ||
Fernando Perez
|
r6957 | class UserMagics(Magics): | ||
"""Placeholder for user-defined magics to be added at runtime. | ||||
All magics are eventually merged into a single namespace at runtime, but we | ||||
use this class to isolate the magics defined dynamically by the user into | ||||
their own class. | ||||
""" | ||||