
    Mh                     >    d Z ddlmZ ddlmZ  G d de          ZdS )zIModule containing a preprocessor that removes the outputs from code cells    )Set   )Preprocessorc                   Z    e Zd ZdZ eddh                              d          Zd ZdS )ClearOutputPreprocessorz?
    Removes the output from all code cells in a notebook.
    	collapsedscrolledT)configc                     |j         dk    r7g |_        d|_        d|v r%| j        D ]}|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        c/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/nbconvert/preprocessors/clearoutput.pypreprocess_cellz'ClearOutputPreprocessor.preprocess_cell   sb     >V##DL#'D T!!!8 3 3EM%%eT2222Y    N)__name__
__module____qualname____doc__r   tagr   r    r   r   r   r      sU          !S+z!:;;??t?LL    r   r   N)r   	traitletsr   baser   r   r    r   r   <module>r#      se    O O
                l     r   