§
    ŽŸj  ã                   ó>   — d Z ddlmZ ddlmZ  G d„ de¦  «        ZdS )zªModule 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                   ó®   ‡ — e Zd ZdZ ed¬¦  «                             d¬¦  «        Z ed¬¦  «                             d¬¦  «        Zˆ fd„Zd„ Z	d	„ Z
ˆ xZS )
ÚConvertFiguresPreprocessorzO
    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          ¦   «         j        di |¤Ž dS )z$
        Public constructor
        N© )ÚsuperÚ__init__)ÚselfÚkwÚ	__class__s     €ús/var/www/finuniver-perm.ru/html/student/venv/lib/python3.11/site-packages/nbconvert/preprocessors/convertfigures.pyr   z#ConvertFiguresPreprocessor.__init__   s(   ø€ ð 	�‰ŒÔÐÐ˜2ÐÐÐÐÐó    c                 ó   — t          ¦   «         ‚)zConvert the figure.)ÚNotImplementedError)r   Údata_formatÚdatas      r   Úconvert_figurez)ConvertFiguresPreprocessor.convert_figure   s   € å!Ñ#Ô#Ð#r   c                 óö   — |                      dg ¦  «        D ]_}|j        dv rT| j        |j        v rF| j        |j        vr8|                      | j        |j        | j                 ¦  «        |j        | j        <   Œ`||fS )zK
        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_cellz*ConvertFiguresPreprocessor.preprocess_cell    sŒ   € ð —h’h˜y¨"Ñ-Ô-ð 	ð 	ˆFàÔ"Ð&HÐHÐHØÔ$¨¬Ð3Ð3Ø”N¨&¬+Ð5Ð5à.2×.AÒ.AØÔ$ f¤k°$Ô2BÔ&Cñ/ô /�”˜DœNÑ+øð �YˆÐr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Útagr   r   r   r   r$   Ú__classcell__)r   s   @r   r   r      sª   ø€ € € € € ðð ð �'Ð=Ð>Ñ>Ô>×BÒBÈ$ÐBÑOÔO€KØ�Ð:Ð;Ñ;Ô;×?Ò?ÀtÐ?ÑLÔL€Iðð ð ð ð ð$ð $ð $ðð ð ð ð ð ð r   r   N)r(   Ú	traitletsr   Úbaser   r   r   r   r   ú<module>r-      si   ððð ð Ð Ð Ð Ð Ð à Ð Ð Ð Ð Ð ð$ð $ð $ð $ð $ ñ $ô $ð $ð $ð $r   