
    ^h                     B    S r SSKrSSKJrJr  SSKJr   " S S\5      rg)zNotebookExporter class    N)Enumdefault   )Exporterc                      ^  \ rS rSrSr\" \" \R                  5      \R                  SS9R                  SS9r\" S5      S 5       rS	rS
rSU 4S jjrSrU =r$ )NotebookExporter   zExports to an IPython notebook.

This is useful when you want to use nbconvert's preprocessors to operate on
a notebook (e.g. to execute it) and then write it back to a notebook file.
zPThe nbformat version to write.
        Use this to downgrade notebooks.
        )default_valuehelpT)configfile_extensionc                     g)Nz.ipynb )selfs    V/home/james-whalen/.local/lib/python3.13/site-packages/nbconvert/exporters/notebook.py_file_extension_default(NotebookExporter._file_extension_default   s        zapplication/jsonNotebookc                   > [         TU ]  " X40 UD6u  pBU R                  UR                  :w  a  SU R                  -  US'   OSUS'   [        R                  " X@R                  S9nUR                  S5      (       d  US-   nXR4$ )zConvert from notebook node.z.v%ioutput_suffixz
.nbconvert)version
)superfrom_notebook_nodenbformat_versionnbformatwritesendswith)r   nb	resourceskwnb_copyoutput	__class__s         r   r   #NotebookExporter.from_notebook_node"   s    "W7LL  G$4$44)/$2G2G)GIo&)5Io&2G2GHt$$d]F  r   r   )N)__name__
__module____qualname____firstlineno____doc__r   listr   versionscurrent_nbformattagr   r   r   output_mimetypeexport_from_notebookr   __static_attributes____classcell__)r%   s   @r   r   r      sr     X// 
cc    )O%
! 
!r   r   )r+   r   	traitletsr   r   exporterr   r   r   r   r   <module>r6      s    
  #  !x  !r   