o
    tf                     @   s0   d Z ddlmZ ddlmZ G dd deZdS )zIModule containing a preprocessor that removes the outputs from code cells    )Set   )Preprocessorc                   @   s,   e Zd ZdZeddhjddZdd ZdS )	ClearOutputPreprocessorz?
    Removes the output from all code cells in a notebook.
    	collapsedZscrolledT)configc                 C   s@   |j dkrg |_d|_d|v r| jD ]	}|j|d q||fS )zO
        Apply a transformation on each cell. See base.py for details.
        codeNmetadata)Z	cell_typeZoutputsZexecution_countremove_metadata_fieldsr	   pop)selfcell	resourcesZ
cell_indexfield r   l/var/www/html/software/conda/envs/catlas/lib/python3.10/site-packages/nbconvert/preprocessors/clearoutput.pypreprocess_cell   s   

z'ClearOutputPreprocessor.preprocess_cellN)__name__
__module____qualname____doc__r   tagr
   r   r   r   r   r   r      s    r   N)r   Z	traitletsr   baser   r   r   r   r   r   <module>   s    