
    f                     6    d Z ddlmZ ddlmZ  G d de      Zy)zIModule containing a preprocessor that removes the outputs from code cells    )Set   )Preprocessorc                   J    e Zd ZdZ eddh      j                  d      Zd Zy)ClearOutputPreprocessorz?
    Removes the output from all code cells in a notebook.
    	collapsedscrolledT)configc                     |j                   dk(  r?g |_        d|_        d|v r-| j                  D ]  }|j                  j                  |d         ||fS )zO
        Apply a transformation on each cell. See base.py for details.
        codeNmetadata)	cell_typeoutputsexecution_countremove_metadata_fieldsr   pop)selfcell	resources
cell_indexfields        ^/var/www/cvtools/html/venv/lib/python3.12/site-packages/nbconvert/preprocessors/clearoutput.pypreprocess_cellz'ClearOutputPreprocessor.preprocess_cell   sZ     >>V#DL#'D T!!88 3EMM%%eT23Y    N)__name__
__module____qualname____doc__r   tagr   r    r   r   r   r      s,     !+z!:;??t?Lr   r   N)r   	traitletsr   baser   r   r    r   r   <module>r#      s    O
  l r   