
    ^h                    Z    S r SSKJr  SSKJr   " S S\5      rS rSS jrSS	 jrSS
 jr	g)zAThe basic dict based notebook format.

Authors:

* Brian Granger
    )annotations)Structc                      \ rS rSrSrSrg)NotebookNode   zA notebook node object. N)__name__
__module____qualname____firstlineno____doc____static_attributes__r       L/home/james-whalen/.local/lib/python3.13/site-packages/nbformat/v1/nbbase.pyr   r      s    !r   r   c                   [        U [        5      (       a2  [        5       nU R                  5        H  u  p#[	        U5      X'   M     U$ [        U [
        [        45      (       a  U  Vs/ s H  n[	        U5      PM     sn$ U $ s  snf )z'Create notebook node(s) from an object.)
isinstancedictr   items	from_dicttuplelist)dnewdkvis        r   r   r      sl    !T~GGIDAlDG !eT]##&'(a	!a((H )s   'BNc                t    [        5       nSUl        U b  [        U 5      Ul        Ub  [	        U5      Ul        U$ )z,Create a new code cell with input and outputcode)r   	cell_typestrr   intprompt_number)r   r"   cells      r   new_code_cellr$   +   s9    >DDNI	  /Kr   c                N    [        5       nU b  [        U 5      Ul        SUl        U$ )zCreate a new text cell.text)r   r    r&   r   )r&   r#   s     r   new_text_cellr'   6   s&    >DI	DNKr   c                >    [        5       nU b  Xl        U$ / Ul        U$ )z7Create a notebook by name, id and a list of worksheets.)r   cells)r)   nbs     r   new_notebookr+   ?   s)    	B I Ir   )NN)N)
r   
__future__r   nbformat._structr   r   r   r$   r'   r+   r   r   r   <module>r.      s2   " # #"6 "	r   