Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/IPython/core/magics/__init__.py: 100%

17 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-04-20 06:09 +0000

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 

15from ..magic import Magics, magics_class 

16from .auto import AutoMagics 

17from .basic import BasicMagics, AsyncMagics 

18from .code import CodeMagics, MacroToEdit 

19from .config import ConfigMagics 

20from .display import DisplayMagics 

21from .execution import ExecutionMagics 

22from .extension import ExtensionMagics 

23from .history import HistoryMagics 

24from .logging import LoggingMagics 

25from .namespace import NamespaceMagics 

26from .osm import OSMagics 

27from .packaging import PackagingMagics 

28from .pylab import PylabMagics 

29from .script import ScriptMagics 

30 

31#----------------------------------------------------------------------------- 

32# Magic implementation classes 

33#----------------------------------------------------------------------------- 

34 

35@magics_class 

36class 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 """