
    ^h                     6    S r SSKJr  SSKJr   " S S\5      rg)zModule containing a preprocessor that converts outputs in the notebook from
one format to another.

Converts all of the outputs in a notebook from one format to another.
    )Unicode   )Preprocessorc                      ^  \ rS rSrSr\" SS9R                  SS9r\" SS9R                  SS9rU 4S jr	S	 r
S
 rSrU =r$ )ConvertFiguresPreprocessor   zG
Converts all of the outputs in a notebook from one format to another.
zFormat the converter accepts)helpT)configzFormat the converter writesc                 &   > [         TU ]  " S0 UD6  g)z
Public constructor
N )super__init__)selfkw	__class__s     `/home/james-whalen/.local/lib/python3.13/site-packages/nbconvert/preprocessors/convertfigures.pyr   #ConvertFiguresPreprocessor.__init__   s     	2    c                     [        5       e)zConvert the figure.)NotImplementedError)r   data_formatdatas      r   convert_figure)ConvertFiguresPreprocessor.convert_figure   s    !##r   c                 b   UR                  S/ 5       H  nUR                  S;   d  M  U R                  UR                  ;   d  M1  U R                  UR                  ;  d  MM  U R                  U R                  UR                  U R                     5      UR                  U R                  '   M     X4$ )z3
Apply a transformation on each cell,

See base.py
outputs>   display_dataexecute_result)getoutput_typefrom_formatr   	to_formatr   )r   cell	resources
cell_indexoutputs        r   preprocess_cell*ConvertFiguresPreprocessor.preprocess_cell    s     hhy"-F""&HH$$3NN&++5.2.A.A$$fkk$2B2B&C/DNN+ . r   r   )__name__
__module____qualname____firstlineno____doc__r   tagr!   r"   r   r   r'   __static_attributes____classcell__)r   s   @r   r   r      sP     =>BB$BOK:;??t?LI$ r   r   N)r-   	traitletsr   baser   r   r   r   r   <module>r3      s     $ $r   