o
    i                     @   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.
    	collapsed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)	cell_typeoutputsexecution_countremove_metadata_fieldsr
   pop)selfcell	resources
cell_indexfield r   ^/var/www/edux/Edux_v2/venv/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   	traitletsr   baser   r   r   r   r   r   <module>   s    