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