+
    ^|i                         R t ^ RIt^ RIHt ^ RIHtHtHt ^ RIH	t	 ]P                  ! R4      t] ! R R]4      4       tR# )z9Implementation of configuration-related magic functions.
N)
UsageError)Magicsmagics_class
line_magic)errorz
^\w+\.\w+$c                   B   a a ] tR t^t oV 3R lt]R 4       tRtVtV ;t	# )ConfigMagicsc                <   < \         \        V `  V4       . V n        R # N)superr   __init__configurables)selfshell	__class__s   &&</usr/lib/python3/dist-packages/IPython/core/magics/config.pyr   ConfigMagics.__init__   s    lD*51    c                   ^ RI Hp \        \        V P                  P
                   Uu. uF)  pVP                  P                  RR7      '       g   K'  VNK+  	  up4      R R7      pV Uu. uF  q3P                  P                  NK  	  ppVP                  4       pV'       g#   \        R4       V F  p\        RV4       K  	  R# We9   d}   WEP                  V4      ,          pVP                  pVP                  V4      p	\        P                  ! \        P                  ! R	\        P                   4      R
V	4      p	\        V	4       R# \"        P%                  V4      '       d5   VP'                  R4      w  r\)        WEP                  V4      ,          V
4      # RV9  dS   RpVP+                  4       pV F)  pWP+                  4       8X  g   K  VRV,          ,           p M	  \-        W,          4      hV! 4       p\/        RV,           V P                  P0                  \3        4       4       V F  p VP5                  V4       K  	  R# u upi u upi   \6         d   p\9        T4        Rp?KA  Rp?ii ; i)a  configure IPython

    %config Class[.trait=value]

This magic exposes most of the IPython config system. Any
Configurable class should be able to be configured with the simple
line::

    %config Class.trait=value

Where `value` will be resolved in the user's namespace, if it is an
expression or variable name.

Examples
--------

To see what classes are available for config, pass no arguments::

    In [1]: %config
    Available objects for config:
        AliasManager
        DisplayFormatter
        HistoryManager
        IPCompleter
        LoggingMagics
        MagicsManager
        OSMagics
        PrefilterManager
        ScriptMagics
        TerminalInteractiveShell

To view what is configurable on a given class, just pass the class
name::

    In [2]: %config LoggingMagics
    LoggingMagics(Magics) options
    ---------------------------
    LoggingMagics.quiet=<Bool>
        Suppress output of log state when logging is enabled
        Current: False

but the real use is in setting values::

    In [3]: %config LoggingMagics.quiet = True

and these values are read from the user_ns if they are variables::

    In [4]: feeling_quiet=False

    In [5]: %config LoggingMagics.quiet = feeling_quiet

)ConfigT)configc                 .    V P                   P                  # r
   )r   __name__)xs   &r   <lambda>%ConfigMagics.config.<locals>.<lambda>_   s    q{{7K7Kr   )keyzAvailable objects for config:z   Nz^-- .=z>Invalid config statement: %r, should be `Class.trait = value`.z!
Did you mean %s (note the case)?zcfg.)traitlets.config.loaderr   sortedsetr   r   r   class_traitsr   stripprintindexclass_get_helpresubcompile	MULTILINEregmatchsplitgetattrlowerr   execuser_nslocalsupdate_config	Exceptionr   )r   sr   cr   
classnameslinenameclshelpattrmsgll	classnamecfgconfigurablees   &&               r   r   ConfigMagics.config#   s   l 	3 s

0H0H $'0H1()(@(@(@(M &'Q0H $'  (-KM 6CD]{{++]
Dwwy12"eT" # ..t45A++C%%a(D66"**VR\\:BED$KYYt__

3IC=)9)9#)>?EE_5C B'	** Dy PPC (
 cj))
 hVD[$**,,fh7)L**3/ *W$' EV  as)   $II*I+II-I((I-)r   )
r   
__module____qualname____firstlineno__r   r   r   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r   r      s&       h h hr   r   )__doc__r(   IPython.core.errorr   IPython.core.magicr   r   r   loggingr   r*   r,   r    r   r   <module>rQ      sI    
 * ? ?  	jjo6 o or   