§
    fP„j>É  ã                   óŒ  — d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
m
Z
 ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZmZmZ dd
lmZmZ ddlmZmZmZmZmZmZm Z m!Z!m"Z" ddl#m$Z$ ddl%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+ ddl,m-Z-m.Z.m/Z/ ddl0m1Z1 ddl2m3Z3m4Z4m5Z5m6Z6m2Z2 ddl7m8Z8 ddl9m:Z:m;Z; ddl<m=Z= d„ Z>d„ Z?d„ Z@d7d„ZAd7ddœd„Z%d„ ZBd„ ZCd„ ZDd„ ZEd„ ZFd„ ZG G d „ d!eH¦  «        ZI G d"„ d#eH¦  «        ZJd$„ ZKd%„ ZLd&eMd'eeN         fd(„ZO G d)„ d*eP¦  «        ZQ G d+„ d,¦  «        ZRdZSd-eTd.eRfd/„ZUd8d1„ZV	 	 	 	 	 	 d9d4„ZWd5„ ZXd6„ ZYdS ):z!`jupytext` as a command line toolé    N)Úcopy)ÚNamedTemporaryFile)ÚOptional)ÚNotebookNotaryé   )Úcombine_inputs_with_outputs)ÚNotebookDifferenceÚcompareÚtest_round_trip_conversion)Úload_jupytext_configÚnotebook_formats)	Ú_BINARY_FORMAT_OPTIONSÚ_VALID_FORMAT_OPTIONSÚJUPYTEXT_FORMATSÚNOTEBOOK_EXTENSIONSÚcheck_auto_extÚcheck_file_versionÚlong_form_multiple_formatsÚlong_form_one_formatÚshort_form_one_format)Úrecursive_update)Úcreate_prefix_dirÚget_formats_from_notebook_pathÚreadÚreadsÚwriteÚwrites)Úfind_kernel_specsÚget_kernel_specÚkernelspec_from_language)Ú_SCRIPT_EXTENSIONS)ÚInconsistentPathÚ	base_pathÚfind_base_path_and_formatÚ	full_pathÚpaired_paths)Úlatest_inputs_and_outputs)Ú	read_pairÚ
write_pair)Ú__version__c                  óô   — |                      dt          j        ¦  «         t          j        | fi |¤Ž}|                     ¦   «         \  }}|j        rt          |j        ¦  «        ‚|                     d¦  «        S )zExecute the given bash commandÚstdoutúutf-8)Ú
setdefaultÚ
subprocessÚPIPEÚPopenÚcommunicateÚ
returncodeÚ
SystemExitÚdecode)ÚargsÚkwargsÚprocÚoutÚ_s        úQ/root/disk_3tb/conda_envs/Huy-visual/lib/python3.11/site-packages/jupytext/cli.pyÚsystemr<   7   ss   € à
×Ò�h¥
¤Ñ0Ô0Ð0ÝÔ˜DÐ+Ð+ FÐ+Ð+€DØ×ÒÑÔ�F€CˆØ„ð *Ý˜œÑ)Ô)Ð)Ø�:Š:�gÑÔÐó    c                 óš   — 	 |                       d¦  «        }|                     d¦  «         t          |Ž S # t          t          f$ r Y d S w xY w)Nú ú	--version)ÚsplitÚappendr<   ÚOSErrorr4   )Útoolr6   s     r;   Útool_versionrE   A   sY   € ðØ�zŠz˜#‰ŒˆØ�Š�KÑ Ô Ð Ý�tˆ}ÐøÝ•ZÐ ð ð ð Øˆtˆtðøøøs   ‚25 µA
Á	A
c                 óº   — |                       ¦   «         dv rdS |                       ¦   «         dv rdS |                       ¦   «         dv rdS t          j        d¦  «        ‚)zqParse Yes/No/Default string
    https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse)ÚyesÚtrueÚtÚyÚ1T)ÚnoÚfalseÚfÚnÚ0F)ÚdÚdefaultÚ Nz-Expected: (Y)es/(T)rue/(N)o/(F)alse/(D)efault)ÚlowerÚargparseÚArgumentTypeError)Úvalues    r;   Ústr2boolrX   J   sa   € ð ‡{‚{�}„}Ð6Ð6Ð6ØˆtØ‡{‚{�}„}Ð6Ð6Ð6ØˆuØ‡{‚{�}„}Ð,Ð,Ð,ØˆtÝ
Ô
$Ð%TÑ
UÔ
UÐUr=   c                 ó  — t          j        dt           j        ¬¦  «        }|                     ddd¬¦  «         |                     ddd	¬
¦  «         g d¢}|                     ddd                     d                     |¦  «        d                     d„ t          D ¦   «         ¦  «        ¦  «        d                     d                     d„ t          D ¦   «         ¦  «        ¦  «        z   d                     d                     t          d„ t          D ¦   «         t          |ddgz   ¦  «        z
  ¦  «        ¦  «        ¦  «        z   ¬
¦  «         |                     ddd¬¦  «         |                     ddd¬¦  «         |                     d t          d!¬"¦  «         |                     ¦   «         }|                     d#d$d%d¬&¦  «         |                     d'd(d)d¬&¦  «         |                     d*d+d,d-¬¦  «         |                     d.i t          j        d/¬0¦  «         |                     d1d2d¬&¦  «         |                     d3d4d¬&¦  «         |                     d5d6dd7¬¦  «         |                     d8dd9¬¦  «         |                     d:dd;¬¦  «         |                     d<d=d>dd?¬@¦  «         |                     dAd,dB¬¦  «         |                     dCdDddE¬¦  «         |                     dFdG¬¦  «         |                     dHd,dI¬¦  «         |                     dJdKdL¬M¦  «         |                     dNdOt          dP¬"¦  «         |                     dQddR¬¦  «         |                     dSt          dT¬"¦  «         |                     dUdVddW¬¦  «         |                     dXddY¬¦  «         |                     dZd[dd\¬¦  «         |                     d]dd^¬¦  «         |                     d_dd`¬¦  «         |                     | ¦  «        S )az Command line parser for jupytextzCJupyter Notebooks as Markdown Documents, Julia, Python or R Scripts)ÚdescriptionÚformatter_classÚ	notebookszQOne or more notebook(s). Notebook is read from stdin when this argument is empty.Ú*)ÚhelpÚnargsz--fromÚinput_formatz\Jupytext format for the input(s). Inferred from the file extension and content when missing.)Údestr^   )ÚmdÚRmdÚjlÚpyÚRú--toÚoutput_formatzÑThe destination format: 'ipynb', 'markdown' or 'script', or a file extension: '{}', ... or 'auto' (script extension matching the notebook language), or a combination of an extension and a format name, e.g. {} ú', 'ú, c                 ó8   — h | ]}|j         d k    ¯d|j        › �’ŒS )z.mdzmd:©Ú	extensionÚformat_name©Ú.0Úfmts     r;   ú	<setcomp>z&parse_jupytext_args.<locals>.<setcomp>t   s2   € ÐiÐiÐi°sÐRUÔR_ÐchÒRhÐRhÐ2 ¤Ð2Ð2ÐRhÐRhÐRhr=   z or {}. c                 ó8   — h | ]}|j         d k    ¯d|j        › �’ŒS )z.pyzpy:rl   ro   s     r;   rr   z&parse_jupytext_args.<locals>.<setcomp>v   s2   € Ð*yÐ*yÐ*yÀsÐbeÔboÐsxÒbxÐbxÐ+B°´Ð+BÐ+BÐbxÐbxÐbxr=   a:  The default format for scripts is the 'percent' format, which uses '# %%%%' as cell markers and is compatible with VS Code and PyCharm. Alternatively, you can also use the 'light' format, which uses fewer cell markers. The main formats (MyST Markdown, Markdown, percent, light) preserve notebooks and text documents in a roundtrip. Use the --test and and --test-strict commands to test the roundtrip on your files. Read more about the available formats at https://jupytext.org/formats/scripts/ NB: in addition to the extensions listed above, you can also use these: '{}'c                 ó8   — h | ]}|                      d ¦  «        ’ŒS )ú.)Úremoveprefix)rp   Úexts     r;   rr   z&parse_jupytext_args.<locals>.<setcomp>‚   s&   € ÐNÐNÐN°3˜×)Ò)¨#Ñ.Ô.ÐNÐNÐNr=   ÚautoÚipynbz-oz--outputz£Destination file. Defaults to the original file, with prefix/suffix/extension changed according to the destination format. Use '-' to print the notebook on stdout.)r^   z--updateÚ
store_truez]Preserve the output cells when the destination notebook is an .ipynb file that already exists)Úactionr^   z--set-formatszÆTurn the notebook or text document to one or more alternative representations with e.g. '--set-formats ipynb,py:light'. The --set-formats option also triggers the creation/update of all paired files)Útyper^   z--syncz-sz¾Synchronize the content of the paired representations of the given notebook. Input cells are taken from the file that was last modified, and outputs are read from the ipynb file, if present.)r^   r{   z--paired-pathsz-pzHList the locations of the alternative representations for this notebook.z--format-optionsz--optrB   ziSet format options with e.g. '--opt comment_magics=true' or '--opt notebook_metadata_filter=-kernelspec'.z--update-metadataaO  Update the notebook metadata with the desired dictionary. Argument must be given in JSON format. For instance, if you want to activate a pairing in the generated file, use e.g. --update-metadata '{"jupytext":{"formats":"ipynb,py:light"}}' See also the --opt and --set-formats options for other ways to operate on the Jupytext metadata.)rR   r|   r^   z--use-source-timestampz‹Set the modification timestamp of the output file(s) equalto that of the source file, and keep the source file and its timestamp unchanged.z--check-source-is-newerz“Check that the file given as argument is the most recent of all paired files, and if applicable, checks that it is newer than the destination file.z--warn-onlyz-wzjOnly issue a warning and continue processing other notebooks when the conversion of a given notebook failsz--testzZTest that the notebook is stable under a round trip conversion, up to the expected changesz--test-strictzGTest that the notebook is strictly stable under a round trip conversionz--stopz-xÚstop_on_first_errorzUIn --test mode, stop on first round trip conversion error, and report stack traceback)ra   r{   r^   z--pipea+  Pipe the text representation (in format --pipe-fmt) of the notebook into another program, and read the notebook back. For instance, reformat your notebook with: 'jupytext notebook.ipynb --pipe black' If you want to reformat it and sync the paired representation, execute: 'jupytext notebook.ipynb --sync --pipe black' In case the program that you want to execute does not accept pipes, use {} as a placeholder for a temporary file name into which jupytext will write the text representation of the notebook, e.g.: jupytext notebook.ipynb --pipe 'black {}'z--diffz-dz:Show the differences between (the inputs) of two notebooksz--diff-formatz2The text format used to show differences in --diffz--checka,  Pipe the text representation (in format --pipe-fmt) of the notebook into another program, and test that the returned value is non zero. For instance, test that your notebook is pep8 compliant with: 'jupytext notebook.ipynb --check flake8' or run pytest on your notebook with: 'jupytext notebook.ipynb --check pytest' In case the program that you want to execute does not accept pipes, use {} as a placeholder for a temporary file name into which jupytext will write the text representation of the notebook, e.g.: jupytext notebook.ipynb --check 'pytest {}'ú
--pipe-fmtzauto:percentzrThe format in which the notebook should be piped to other programs, when using the --pipe and/or --check commands.)rR   r^   z--set-kernelz-kzþSet the kernel with the given name on the notebook. Use '--set-kernel -' to set a kernel matching the current environment on Python notebooks, and matching the notebook language otherwise (get the list of available kernels with 'jupyter kernelspec list')z	--executez´Execute the notebook with the given kernel. In the --pre-commit-mode, the notebook is executed only if a code cell changed, or if some execution outputs are missing or not ordered.z
--run-pathzRExecute the notebook at the given path (defaults to the notebook parent directory)z--quietz-qz?Quiet mode: do not comment about files being updated or createdz--show-changesz%Display the diff for each output filer@   z-vz'Show jupytext's version number and exitz--pre-commitz¦Ignore the notebook argument, and instead apply Jupytext on the notebooks found in the git index, which have an extension that matches the (optional) --from argument.z--pre-commit-modeaó  This is a mode that is compatible with the pre-commit framework. In this mode, --sync won't use timestamp but instead will determines the source notebook as the element of the pair that is added to the git index. An alert is raised if multiple inconsistent representations are in the index. It also raises an alert after updating the paired files or outputs if those files need to be added to the index. Finally, filepaths that aren't in the source format you are trying to convert from are ignored.)rU   ÚArgumentParserÚArgumentDefaultsHelpFormatterÚadd_argumentÚformatÚjoinr   Úsortedr   ÚsetÚstrÚadd_mutually_exclusive_groupÚjsonÚloadsÚ
parse_args)r6   ÚparserÚselected_file_extensionsr{   s       r;   Úparse_jupytext_argsr�   V   s  € õ Ô$ØYÝ Ô>ðñ ô €Fð ×ÒØØ`Øð ñ ô ð ð
 ×ÒØØØkð ñ ô ð ð  >Ð=Ð=ÐØ
×ÒØØðKçKQÊ6Ø—’Ð4Ñ5Ô5Ø—	’	ÐiÐiÕ>NÐiÑiÔiÑjÔjñLô Lð ×Ò §	¢	Ð*yÐ*yÕN^Ð*yÑ*yÔ*yÑ zÔ zÑ{Ô{ñ|ð[÷ \bÒ[aØ—’ÝØNÐNÕ:MÐNÑNÔNÝÐ6¸&À'Ð9JÑJÑKÔKñLñô ñô ñ\ô \ñð	 ñ ô ð ð> ×ÒØØð3ð ñ ô ð ð ×ÒØØØlð ñ ô ð ð ×ÒØÝðYð ñ ô ð ð ×0Ò0Ñ2Ô2€FØ
×ÒØØðð ð ñ ô ð ð ×ÒØØØWØð	 ñ ô ð ð ×ÒØØØØxð	 ñ ô ð ð ×ÒØØÝŒZð/ð	 ñ 
ô 
ð 
ð ×ÒØ ð#ð ð ñ ô ð ð ×ÒØ!ðLàð	 ñ ô ð ð ×ÒØØØØyð	 ñ ô ð ð ×ÒØØØið ñ ô ð ð
 ×ÒØØØVð ñ ô ð ð
 ×ÒØØØ"ØØdð ñ ô ð ð ×ÒØØð	4ð ñ ô ð ð ×ÒØØØØIð	 ñ ô ð ð ×ÒØØAð ñ ô ð ð ×ÒØØð	6ð ñ ô ð ð ×ÒØØð9ð ñ ô ð ð ×ÒØØÝð%ð	 ñ 	ô 	ð 	ð ×ÒØØðð ñ ô ð ð ×ÒØÝØað ñ ô ð ð ×ÒØØØØNð	 ñ ô ð ð ×ÒØØØ4ð ñ ô ð ð ×ÒØØØØ6ð	 ñ ô ð ð ×ÒØØðAð ñ ô ð ð ×ÒØØð6ð ñ 
ô 
ð 
ð ×Ò˜TÑ"Ô"Ð"r=   ©Únotaryc                óÊ	  ‡ — t          ‰ ¦  «        Š ˆ fd„}‰ j        r |t          ¦  «         dS ‰ j        rit	          j        dt          ¦  «         ‰ j        rt          d¦  «        ‚t          ‰ j
        ¦  «        ‰ _         |d¦  «         ‰ j        D ]} ||¦  «         Œ‰ j        s‰ j        sdg‰ _        ‰ j        �,t          ‰ j        dd	‰ j        pdii¦  «        ‰ _        d
‰ _        ‰ j        rIt!          ‰ j        ¦  «        dk    rt          d¦  «        ‚t#          ‰ j        d         ‰ j
        ¦  «         dS ‰ j        rd
‰ _        ‰ j        s‰ j        r$‰ j        s‰ j        s‰ j        st          d¦  «        ‚‰ j        sN‰ j        sG‰ j        s@‰ j        s9‰ j        s2‰ j        s+‰ j        s$‰ j        s‰ j        s‰ j        st          d¦  «        ‚‰ j        �rt!          ‰ j        ¦  «        dk    s?‰ j        s8‰ j        s1‰ j        s*‰ j        s#‰ j        s‰ j        s‰ j        s‰ j        s‰ j        rt          d¦  «        ‚‰ j        \  }}t;          |¦  «        }t;          |¦  «        }d„ }‰ j        p ||¦  «        p ||¦  «        pd}	t?          tA          ||	¦  «        tA          ||	¦  «        ||d
¬¦  «        }
tB          j"         #                    |
¦  «         dS ‰ j        r't!          ‰ j        ¦  «        dk    rt          d¦  «        ‚‰ j        sV‰ j        rOd‰ j        v rF‰ j         $                    d¦  «        s,d‰ j        vr#d„ }|t          _%        t	          j        d¦  «         ‰ j
        rtM          ‰ j
        ¦  «        ‰ _
        ‰ j        r3tM          ‰ j        ¦  «        ‰ _        tO          ‰ j        ‰ j        ¦  «         g }‰ j        D ]I}d|v sd|v r*| (                    tS          j)        |d
¬¦  «        ¦  «         Œ4| *                    |¦  «         ŒJd}d}|€tW          ¦   «         x}}	 |D ]~}‰ j,        s|t[          |‰ ||¬¦  «        z  }Œ 	 |t[          |‰ ||¬¦  «        z  }Œ8# t\          $ r:}tB          j/         #                    dta          |¦  «        › d�¦  «         Y d}~Œwd}~ww xY w||r|j1         2                    ¦   «          S S # |r|j1         2                    ¦   «          w w xY w) z#Entry point for the jupytext scriptc                 ó^   •— ‰j         s$t          j                             | dz   ¦  «         d S d S )Nú
)ÚquietÚsysr,   r   )Útextr6   s    €r;   Úlogzjupytext.<locals>.log\  s7   ø€ ØŒzð 	*ÝŒJ×Ò˜T D™[Ñ)Ô)Ð)Ð)Ð)ð	*ð 	*r=   r   z»The --pre-commit argument is deprecated. Please consider switching to the pre-commit.com framework (let us know at https://github.com/jupytext/jupytext/issues if that is an issue for you)zO--pre-commit takes notebooks from the git index. Do not pass any notebook here.z&[jupytext] Notebooks in git index are:ú-NÚjupytextÚformatsTr   z+--paired-paths applies to a single notebookz.Please provide one of --to, --output or --syncz”Please provide one of --to, --output, --set-formats, --sync, --pipe, --diff, --check, --update-metadata, --format-options, --set-kernel or --executeé   z”Please provide two notebooks after 'jupytext --diff'.
NB: Use --show-changes if you wish to see the changes in a notebook being updated by Jupytext.c                 ób   — | j         d         d         }|d         dk    rd S t          |¦  «        S )Nr˜   Útext_representationrm   ú.ipynb)Úmetadatar   )Únbrq   s     r;   Úfmt_if_not_ipynbz"jupytext.<locals>.fmt_if_not_ipynb±  s7   € Ø”+˜jÔ)Ð*?Ô@ˆCØ�;Ô 8Ò+Ð+Ø�tÝ(¨Ñ-Ô-Ð-r=   rb   ©Úreturn_diffz2Please input a single notebook when using --outputru   )ru   r—   r:   z//c                 ó   — d| › d�S )Nz
[warning] r’   © )Úmsgr6   r7   s      r;   Úsingle_linezjupytext.<locals>.single_lineÑ  s   € Ø' Ð'Ð'Ð'Ð'r=   zŽYou might have passed a file name to the '--to' option, when a format description was expected. Maybe you want to use the '-o' option instead?r]   ú?)Ú	recursiverŽ   ú[jupytext] Error: r’   )3r�   Úversionr*   Ú
pre_commitÚwarningsÚwarnÚDeprecationWarningr\   Ú
ValueErrorÚnotebooks_in_git_indexr`   Úset_formatsr   Úupdate_metadataÚsyncr&   ÚlenÚprint_paired_pathsÚrun_pathÚexecuteÚtestÚtest_strictrh   ÚoutputÚpipeÚdiffÚcheckÚformat_optionsÚ
set_kernelr   Údiff_formatr
   r   r”   r,   r   Ú
startswithÚformatwarningr   Úset_format_optionsÚextendÚglobrB   r   Ú	warn_onlyÚjupytext_single_fileÚ	ExceptionÚstderrr†   ÚstoreÚclose)r6   r�   r–   Únb_fileÚnb_file1Únb_file2Únb1Únb2r    Údiff_fmtr¼   r¦   r\   ÚpatternÚ	exit_codeÚnotary_to_closeÚerrs   `                r;   r˜   r˜   X  s_  ø€ å˜tÑ$Ô$€Dð*ð *ð *ð *ð *ð „|ð Øˆ�KÑÔÐØˆqà„ð ÝŒð+õ ñ	
ô 	
ð 	
ð Œ>ð 	pÝÐnÑoÔoÐoÝ/°Ô0AÑBÔBˆŒØˆÐ4Ñ5Ô5Ð5Ø”~ð 	ð 	ˆGØˆC�‰LŒLˆLˆLð Œ>ð #ØŒð 	#Ø!˜UˆDŒNàÔÐ#å/°Ô0DÀzÐT]Ð_cÔ_oÐ_wÐswÐSxÐFyÑzÔzˆÔØˆŒ	àÔð ÝˆtŒ~ÑÔ !Ò#Ð#ÝÐJÑKÔKÐKÝ˜4œ>¨!Ô,¨dÔ.?Ñ@Ô@Ð@Øˆqà„}ð ØˆŒàŒ	ð K�TÔ%ð K¨tÔ/Að KÈ$Ì+ð KÐ^bÔ^gð KÝÐIÑJÔJÐJð Ôð
à”ð
ð ”	ð
ð ”	ð	
ð
 ”	ð
ð ”
ð
ð Ô$ð
ð Ô#ð
ð ”ð
ð ”ð
õ ðVñ
ô 
ð 	
ð
 „yñ (å�”ÑÔ 1Ò$Ð$ØÔ!ð %àŒ{ð %ð Œyð %ð Œyð	 %ð
 Œzð %ð Ô#ð %ð Ô"ð %ð Œð %ð Œ|ð %õ ð8ñô ð ð "œ^Ñˆ�(Ý�8‰nŒnˆÝ�8‰nŒnˆð	.ð 	.ð 	.ð Ô#Ð]Ð'7Ð'7¸Ñ'<Ô'<Ð]Ð@PÐ@PÐQTÑ@UÔ@UÐ]ÐY]ˆåÝ�3˜Ñ!Ô!Ý�3˜Ñ!Ô!ØØØð
ñ 
ô 
ˆõ 	Œ
×Ò˜ÑÔÐàˆà„{ð O•s˜4œ>Ñ*Ô*¨aÒ/Ð/ÝÐMÑNÔNÐNð ŒKð
àÔð
ð �4Ô%Ð%Ð%àÔ"×-Ò-¨oÑ>Ô>ð &ð ˜Ô*Ð*Ð*ð	(ð 	(ð 	(ð "-�ÔÝŒðeñ	
ô 	
ð 	
ð
 Ôð DÝ0°Ô1BÑCÔCˆÔàÔð DÝ1°$Ô2DÑEÔEˆÔÝ˜4Ô-¨tÔ/BÑCÔCÐCð €IØ”>ð &ð &ˆØ�'ˆ>ˆ>˜S G˜^˜^à×Ò�TœY w¸$Ð?Ñ?Ô?Ñ@Ô@Ð@Ð@à×Ò˜WÑ%Ô%Ð%Ð%ð €Ià€OØ€~Ý#1Ñ#3Ô#3Ð3ˆ�ð*Ø ð 	Hð 	HˆGØ”>ð HØÕ1°'¸4ÀÈVÐTÑTÔTÑT�	�	ðHØÕ!5°g¸tÀSÐQWÐ!XÑ!XÔ!XÑX�I�IøÝ ð Hð Hð HÝ”J×$Ò$Ð%F½#¸c¹(¼(Ð%FÐ%FÐ%FÑGÔGÐGÐGÐGÐGÐGÐGøøøøðHøøøð àð 	*ØÔ!×'Ò'Ñ)Ô)Ð)Ð)ð	*øˆ?ð 	*ØÔ!×'Ò'Ñ)Ô)Ð)Ð)ð	*øøøs6   Ð%"S ÑQÑS Ñ
R#Ñ)0RÒS ÒR#Ò#S ÓS"c                 óŒ  ‡ ‡‡‡‡-‡.‡/‡0‡1‡2— ‰ dk    rQ‰j         rJd}‰j        �2t          j                             ‰j        ¦  «        r|d‰j        › d�z  }t          |¦  «        ‚dŠ/‰j        r‰j        Š/n…‰ dk    rdŠ/n|	 t          ‰ ‰j        ¦  «        }nI# t          $ r< ‰j
        r3 ‰d                     ‰ ‰j        r
d‰j        › �nd¦  «        ¦  «         Y d	S ‚ w xY w‰j        rt          |‰j        ¦  «        Š/t          t          j                             ‰ ¦  «        ¦  «        Š.dOˆ.ˆfd
„	}ˆ.ˆˆfd„Š-‰/ o‰j          }|r‰ Š/‰/dk    rd‰_        t#          ‰j        ¦  «        pi }|s+t          j                             ‰ ¦  «        d         }	|	rd|	i}|rt'          |‰j        ¦  «          ‰d                     ‰ dk    r‰ ndd|v rdt+          |¦  «        › �nd¦  «        ¦  «         t-          ‰j
        ¬¦  «        Š1‰1                     ‰ ¦  «          |‰ |¬¦  «        Š0d|v r]d|vrY‰0j                             di ¦  «                             di ¦  «        }
|
                     d¦  «        |d         k    r|
d         |d<   ‰j        }|rR|d         dk    rFt5          |‰0j        d¦  «        }‰j        s)‰ dk    r#t          t          ‰ ‰j        ¦  «        |¦  «        Š/‰j        }|s7‰j        r0‰0j                             di ¦  «                             d¦  «        €d}|�r|dk    rb‰0j                             di ¦  «                             d¦  «        p‰0j        d         d         }|st          d¦  «        ‚t;          |¦  «        }ni	 t=          |¦  «        }nC# t>          $ r6}t?          dtA          ¦   «          !                    ¦   «         › �¦  «        |‚d}~ww xY w‰j        |j"        |j#        dœ} ‰d                      |                     d¦  «        ¦  «        ¦  «         |‰j$        d<   ‰ ‰/g}d}‰j         rö‰j        �tK          ‰j        ¦  «        }ntM          ‰0‰.‰ d!¬"¦  «        }tO          ||‰ ¦  «         	 tQ          ‰0|‰.|‰ ‰‰j
        ‰1|¬#¦	  «	        \  Š0}}||g}n�# tR          $ r=}tT          j+         ,                    d$t[          |¦  «        z   d%z   ¦  «         Y d}~d	S d}~wt\          $ r=}tT          j+         ,                    d&t[          |¦  «        z   d%z   ¦  «         Y d}~dS d}~ww xY w‰j$        s‰j        r`‰0j                             di ¦  «                             d'¦  «        d(k    r.‰0j                             di ¦  «         /                    d'¦  «         ‰j$        r† ‰d)ta          j1        ‰j$        ¦  «        › d*�¦  «         d‰j$        v r=d‰0j                             di ¦  «        v r ‰0j        d          /                    d¦  «         te          ‰0j        ‰j$        ¦  «         ‰ dk    rd}d}nat          j                             t          j         3                    ‰ ¦  «        ¦  «        d	         }t          j         4                    ‰ ¦  «        }‰j5        pg D ]'}tm          ‰0|‰j7        ‰j        ||‰j8        ¬+¦  «        Š0Œ(‰j9        pg D ](}tm          ‰0|‰j7        d!‰j        ||‰j8        ¬,¦  «         Œ)‰j        rN‰j
        rGtu          ‰0¦  «        r8tw          ‰0|¦  «        s( ‰d-ty          j=        ‰ ¦  «        › d.�¦  «         d!‰_        ‰j        �rÄ‰0j                             di ¦  «                             d¦  «        } ‰d/|› �¦  «         ‰/�&‰/dk    r t          j         4                    ‰/¦  «        }n(‰ dk    r t          j         4                    ‰ ¦  «        }nd}‰j>        p|}‰j>        r±t          j         ?                    |¦  «        s’|t          j@        ¦   «         fD ]E}t          j         A                    ||¦  «        }t          j         ?                    |¦  «        r|} nŒFt          j         ?                    |¦  «        st          d0‰j>        › d1�¦  «        ‚|rd2d3|ii}ni }	 d	d4lBmC}  |d|¬5¦  «        }| D                    ‰0|¬6¦  «         n@# tŠ          tŒ          f$ r,}‰j
        rt�          d7¦  «        |‚t�          d8¦  «        |‚d}~ww xY w‰jG        s‰jH        �rÞ	 |d         d9k    r&t“          ‰0|‰jJ        ‰jH         ‰jK        ¬:¦  «         �nXt™          ‰ d;¬<¦  «        5 }| M                    ¦   «         } ddd¦  «         n# 1 swxY w Y   ‰1 N                    ‰ ¦  «         |d         d9k    r"tŸ          ‰0|¬¦  «        }!t¡          |!|¬¦  «        Š0tŸ          ‰0|‰.¬=¦  «        }"‰jH        rt£          |"| ¦  «         n®t¥          j        |d         i ¦  «                             d>d¦  «        }#|#r|#d?z   }#t§          jT        d@                     |#¬A¦  «        t¦          jU        t¦          jV        z  ¦  «        }$t£          t§          jW        |$d|"¦  «        t§          jW        |$d| ¦  «        ¦  «         nP# t°          t²          f$ r<}tT          jZ         ,                    ‰ › dBt[          |¦  «        › �¦  «         Y d}~dS d}~ww xY wd	S d	Š2	 	 	 	 dPˆ-ˆˆˆ ˆ0ˆ1ˆ2fdC„	}%‰/�ry‰j[        rG‰1 \                    ‰ ¦  «        }&‰1                     ‰/¦  «        }'|'�|'|&k    rt          dD‰ › dE‰/› �¦  «        ‚‰/‰ k    r|s|}|r‰/dk    rt          ‰/|¦  «         |rd}(n¾t          j                             ‰/¦  «        r^‰jJ        rW‰/ ]                    d9¦  «        st          dF¦  «        ‚dG}(t½          ‰0‰ ‰/¦  «         t¿          ‰0t›          ‰/¦  «        |¬¦  «        Š0nAt          j                             ‰/¦  «        r ‰/ ]                    d9¦  «        rdHnd})dI|)› dJ�}(nd}(‰0j                             di ¦  «                             dK¦  «        }tK          |¦  «        }|rU	 tÁ          ‰/|¦  «        \  }*}+n@# t          $ r3 i }‰0j                             di ¦  «         /                    dK¦  «         Y nw xY w |%‰/||(¬L¦  «         |o)tÃ          ˆ/fdM„tÅ          ‰ ||¦  «        D ¦   «         ¦  «        },|,rut          j                             ‰ ¦  «        rV‰  ]                    d9¦  «        sAt          j                             ‰/¦  «        r"‰/ ]                    d9¦  «        r |%‰ d¬N¦  «         n4‰j         r-‰j[        r‰1 \                    ‰ ¦  «         tÇ          ‰ ||%¦  «         ‰2S )QzBApply the jupytext command, with given arguments, to a single filer—   zMissing notebook path.Nz Did you mean 'jupytext --sync z' ?z-[jupytext] Ignoring unmatched input path {}{}z for format rS   r   c                 ó‚   •— t          | |‰¬¦  «        }‰                     |¦  «        r‰                     |d¦  «         |S )z@Read a notebook; mark cells trusted when the signature is valid.©rq   ÚconfigT)r   Úcheck_signatureÚ
mark_cells)Úpathrq   rŸ   rÙ   r�   s      €€r;   Ú_readz#jupytext_single_file.<locals>._read   sH   ø€ å�$˜C¨Ð/Ñ/Ô/ˆØ×!Ò! "Ñ%Ô%ð 	(Ø×Ò˜b $Ñ'Ô'Ð'Øˆ	r=   c                 ó¸   •— t          | |‰¬¦  «        }‰                     | ¦  «        r&‰                     t          ||‰¬¦  «        ¦  «         n ‰d¦  «         |S )zASerialize a notebook; sign the result when every cell is trusted.rØ   z+[jupytext] Warning: Notebook is not trusted)r   Úcheck_cellsÚsignr   )rŸ   rq   ÚcontentrÙ   r–   r�   s      €€€r;   Ú_writesz%jupytext_single_file.<locals>._writes'  sg   ø€ å˜ ¨VÐ4Ñ4Ô4ˆØ×Ò˜bÑ!Ô!ð 	?Ø�KŠK�˜g¨3°vÐ>Ñ>Ô>Ñ?Ô?Ð?Ð?àˆCÐ=Ñ>Ô>Ð>Øˆr=   Tr   rm   z[jupytext] Reading {}{}Ústdinú in format )Úpre_commit_mode©rq   rn   r˜   rœ   z.autorg   Ú
kernelspecÚnameÚmain_languageÚlanguagez9Cannot infer a kernel as notebook language is not definedz"Please choose a kernel name among )rè   rê   Údisplay_namez[jupytext] Setting kernel {}F)Úfallback_on_current_fmt)Ú	read_funcz[jupytext] Warning: r’   r©   Únotebook_metadata_filterz-allz,[jupytext] Updating notebook metadata with 'ú')r“   ÚprefixÚ	directoryrÆ   )Úupdater“   rð   rñ   rÆ   z[jupytext] Execution of z@ skipped as code cells have not changed and outputs are present.z*[jupytext] Executing notebook with kernel z--run-path=z is not a valid pathrž   rÜ   )ÚExecutePreprocessor)ÚtimeoutÚkernel_name)Ú	resourcesz§An error occurred while executing the notebook. Please make sure that you have listed 'nbconvert' and 'ipykernel' under 'additional_dependencies' in the jupytext hook.zpAn error occurred while executing the notebook. Please make sure that 'nbconvert' and 'ipykernel' are installed.r�   )rò   Úallow_expected_differencesr}   r-   ©ÚencodingrØ   Úcommentz\s*z'^{comment}---\s*\n.*\n{comment}---\s*\n)rú   ú: c                 ó²  •— t           �t          | ¦  «         | dk    r(‰                     ¦   «          t          ‰d|¬¦  «         dS |rd}�nt          j                             | ¦  «        \  }}t          |pi ¦  «        }t          |d|i¬¦  «        } ‰‰|¬¦  «        }d}	|                     d¦  «        s|dz  }t          j         	                    | ¦  «        sd}d	}	nŠ‰ 
                    | ¦  «         t          | d
¬¦  «        5 }
|
                     ¦   «         }ddd¦  «         n# 1 swxY w Y   ‰                     | ¦  «         ||k    }|r‰j        rt          ||ddd¬¦  «        }	| }|rŽt!          | |‰¦  «         t          j                             | ¦  «        \  }}|dt          j        ¦   «         › �z   |z   }t          |dd
¬¦  «        5 }
|
                     |¦  «         ddd¦  «         n# 1 swxY w Y   	 ‰                     ¦   «          n%# t$          $ r |rt          j        |¦  «         ‚ w xY w‰j        r�|‰k    rz ‰dt+          j        | ¦  «        › dt+          j        ‰¦  «        › �¦  «         t          j        |t          j        ‰¦  «        j        t          j        ‰¦  «        j        f¦  «         n—|s•|                      d¦  «        r! ‰dt+          j        | ¦  «        › �¦  «         n_‰j        r#|s! ‰dt+          j        | ¦  «        › �¦  «         n5 ‰dt+          j        | ¦  «        › �¦  «         t          j        | d¦  «         |r‹|€dt+          j        | ¦  «        › �}nBd                     t+          j        | ¦  «        |rd|v rdt;          |¦  «        z   nd|¬¦  «        }‰j        r|d|	z   z  } ‰|¦  «         t          j        || ¦  «         |s	‰j        s|r‰                     | ¦  «         ‰j         rtC          dd| ¦  «         ‰j"        r4tG          | ¦  «        r% ‰dt+          j        | ¦  «        › �¦  «         ‰dz  Šd|iS ) z)Write the notebook only if it has changedNr—   ræ   Frm   )rò   r’   Tz(file did not exist)r-   rø   rS   r¡   Ú_tmp_jupytext_Úwz$[jupytext] Setting the timestamp of z equal to that of r�   z[jupytext] Unchanged z%[jupytext] Updating the timestamp of z[jupytext] Updating z)[jupytext] Writing {path}{format}{action}rn   rä   )rÜ   r‚   r{   z with this change:
ÚgitÚaddz^[jupytext] Error: the git index is outdated.
Please add the paired notebook with:
    git add r   Úmodified)$Ú_callback_on_lazy_writeÚcheck_all_timestampsr   ÚosrÜ   Úsplitextr   r   ÚendswithÚisfileÚget_and_check_timestampÚopenr   Úcheck_timestampÚshow_changesr
   r   ÚgetpidÚSynchronousModificationErrorÚremoveÚuse_source_timestampÚshlexÚquoteÚutimeÚstatÚst_atimeÚst_mtimer³   r‚   r   ÚreplaceÚupdate_timestampr«   r<   rå   Úis_untracked)rÜ   rq   r{   Úupdate_timestamp_onlyÚforce_update_timestampr  r:   rw   Únew_contentr¼   ÚfpÚcurrent_contentÚtmp_pathrè   Úmessagerâ   r6   r–   rÌ   ÚnotebookÚtimestamp_checkerÚuntracked_filess                  €€€€€€€r;   Ú
lazy_writez(jupytext_single_file.<locals>.lazy_write.  sŽ  ø€ õ #Ð.Ý# DÑ)Ô)Ð)Ø�3Š;ˆ;Ø×2Ò2Ñ4Ô4Ð4Ý�(˜C SÐ)Ñ)Ô)Ð)ØˆFð !ð 	ØˆH‰Hå”W×%Ò% dÑ+Ô+‰FˆAˆsÝ�s�y˜b‘/”/ˆCÝ& s°KÀÐ3EÐFÑFÔFˆCØ!˜' (°Ð4Ñ4Ô4ˆKØˆDØ×'Ò'¨Ñ-Ô-ð $Ø˜tÑ#�Ý”7—>’> $Ñ'Ô'ð Ø�Ø-��ð
 "×9Ò9¸$Ñ?Ô?Ð?Ý˜$¨Ð1Ñ1Ô1ð 0°RØ&(§g¢g¡i¤i�Oð0ð 0ð 0ñ 0ô 0ð 0ð 0ð 0ð 0ð 0ð 0øøøð 0ð 0ð 0ð 0ð "×1Ò1°$Ñ7Ô7Ð7à&¨/Ò9�Øð  Ô 1ð Ý"Ø#Ø'ØØØ$(ðñ ô �Dð ˆØð 	&å˜d C¨Ñ-Ô-Ð-õ œ×(Ò(¨Ñ.Ô.‰IˆD�#ØÐ<­r¬y©{¬{Ð<Ð<Ñ<¸sÑBˆHÝ�h ¨gÐ6Ñ6Ô6ð &¸"Ø—’˜Ñ%Ô%Ð%ð&ð &ð &ñ &ô &ð &ð &ð &ð &ð &ð &øøøð &ð &ð &ð &ð	Ø×2Ò2Ñ4Ô4Ð4Ð4øÝ+ð 	ð 	ð 	Øð $Ý”	˜(Ñ#Ô#Ð#Øð	øøøð Ô$ð 	%Ø˜7Ò"Ð"Ø�Ðv½5¼;ÀtÑ;LÔ;LÐvÐvÕ`eÔ`kÐlsÑ`tÔ`tÐvÐvÑwÔwÐwÝ”˜¥B¤G¨GÑ$4Ô$4Ô$=½r¼wÀwÑ?OÔ?OÔ?XÐ#YÑZÔZÐZøØð 	%Ø�}Š}˜XÑ&Ô&ð 
%à�Ð?­E¬K¸Ñ,=Ô,=Ð?Ð?Ñ@Ô@Ð@Ð@Ø”ð %Ð#9ð %ð �Ð?­E¬K¸Ñ,=Ô,=Ð?Ð?Ñ@Ô@Ð@Ð@à�ÐO½E¼KÈÑ<MÔ<MÐOÐOÑPÔPÐPÝ”˜˜tÑ$Ô$Ð$àð 	'Øˆ~ØDµ´¸TÑ1BÔ1BÐDÐD��àE×LÒLÝœ TÑ*Ô*ØJMÐnÐR_ÐcfÐRfÐRf˜MÕ,AÀ#Ñ,FÔ,FÑFÐFÐlnØ!ð Mñ ô �ð
 Ô ð 9ØÐ1°DÑ8Ñ8�àˆC�‰LŒLˆLÝŒJ�x Ñ&Ô&Ð&ð ð 	5�tÔ0ð 	5Ð4Jð 	5Ø×.Ò.¨tÑ4Ô4Ð4àŒ?ð 	'Ý�5˜% Ñ&Ô&Ð&àÔð 	!¥L°Ñ$6Ô$6ð 	!ØˆCð3å$œ{¨4Ñ0Ô0ð3ð 3ñô ð ð
 ˜qÑ ˆOà˜HÐ%Ð%s0   ÄD&Ä&D*Ä-D*ÇG0Ç0G4Ç7G4Ç<H È"H3úSource z is older than destination z --update is only for ipynb filesz (destination file updated)z0 [use --update to preserve cell outputs and ids]z (destination file replacedú)r™   )rq   r{   c              3   óœ   •K  — | ]F\  }}t           j                             |¦  «        ot           j                             ‰|¦  «        V — ŒGd S ©N)r  rÜ   ÚexistsÚsamefile)rp   Úalt_pathr:   Únb_dests      €r;   ú	<genexpr>z'jupytext_single_file.<locals>.<genexpr>Ò  s`   øè è € ð *
ð *
á�˜!õ ŒG�NŠN˜8Ñ$Ô$ÐL­¬×)9Ò)9¸'À8Ñ)LÔ)Lð*
ð *
ð *
ð *
ð *
ð *
r=   )r  r'  )NNFF)dr³   r±   r  rÜ   r  r¯   rº   r#   r`   r"   rå   r‚   rh   r%   r   Úabspathr“   r   r  rÃ   r¾   r   ÚTimestampCheckerr  rž   Úgetr   r¿   r·   r    r   ÚKeyErrorr   Úkeysrê   rë   r²   r   r   Úset_prefix_and_suffixÚload_paired_notebookÚNotAPairedNotebookr”   rÉ   r   r†   ÚInconsistentVersionsÚpoprˆ   Údumpsr   ÚbasenameÚdirnamer»   Úpipe_notebookÚpipe_fmtrÆ   r½   Úexecution_counts_are_in_orderÚcode_cells_have_changedr  r  r¶   ÚisdirÚgetcwdrƒ   Únbconvert.preprocessorsró   Ú
preprocessÚImportErrorÚRuntimeErrorr¸   r¹   r   rò   r}   r	  r   r
  r   r   r
   r!   ÚreÚcompileÚ	MULTILINEÚDOTALLÚsubr	   ÚAssertionErrorr,   Úcheck_source_is_newerÚcheck_file_is_newestr  r   r   r$   Úanyr&   r)   )3rÌ   r6   r–   r�   r¥   ÚbprÝ   Úsave_in_placerq   rw   rœ   Údest_fmtr¿   rê   rç   rÕ   Únb_filesÚoutputs_nb_filer™   Úinputs_nb_filerð   rñ   Úcmdrõ   Únb_pathr¶   Úbase_dirÚtry_pathrö   ró   Ú	exec_procr  Úorg_textÚ	dest_textr•   rú   Úyaml_headerr#  Úts_srcÚts_destr{   Úsuggest_updateÚbase_path_outr:   Únb_dest_in_pairrâ   rÙ   r+  r   r!  r"  s3   ````                                         @@@@@@r;   rÇ   rÇ     sÓ  øøøøøøøøøø€ à�#‚~€~˜$œ)€~Ø&ˆØÔÐ'­B¬G¯NªN¸4Ô;KÑ,LÔ,LÐ'ØÐJ°TÔ5EÐJÐJÐJÑJˆCÝ˜‰oŒoÐà€GØ„{ð 8Ø”+ˆˆØ	�CŠˆØˆˆð	Ý˜7 DÔ$5Ñ6Ô6ˆBˆBøÝð 		ð 		ð 		ØÔ#ð Ø�ØC×JÒJØØ>BÔ>OÐWÐ: tÔ'8Ð:Ð:Ð:ÐUWñô ñô ð ð �q�qØð		øøøð Ôð 	8Ý  DÔ$6Ñ7Ô7ˆGå!¥"¤'§/¢/°'Ñ":Ô":Ñ;Ô;€Fðð ð ð ð ð ð ðð ð ð ð ð ð ð  �KÐ1¨¬	 M€MØð Øˆà�#‚~€~ØˆŒ
õ ˆtÔ Ñ
!Ô
!Ð
' R€CØð %ÝŒg×Ò˜wÑ'Ô'¨Ô*ˆØð 	%Ø Ð$ˆCØ
ð 5Ý˜3 Ô 3Ñ4Ô4Ð4Ø€CØ!×(Ò(Ø #’~�~ˆGˆG¨7Ø:EÈÐ:LÐ:LÐ6Õ/°Ñ4Ô4Ð6Ð6Ð6ÐRTñ	
ô 	
ñô ð õ )¸Ô9MÐNÑNÔNÐØ×-Ò-¨gÑ6Ô6Ð6Øˆu�W #Ð&Ñ&Ô&€Hà�cÐÐ˜m°3Ð6Ð6Ø&Ô/×3Ò3°JÀÑCÔC×GÒGÐH]Ð_aÑbÔbÐØ×"Ò" ;Ñ/Ô/°3°{Ô3CÒCÐCØ!4°]Ô!CˆC�Ñð Ô!€HØð Q�H˜[Ô)¨WÒ4Ð4Ý! (¨HÔ,=¸vÑFÔFˆØŒ{ð 	Q˜w¨#š~˜~Ý¥	¨'°4Ô3DÑ EÔ EÀxÑPÔPˆGð ”€JØð ˜DœLð ¨XÔ->×-BÒ-BÀ<ÐQSÑ-TÔ-T×-XÒ-XÐY_Ñ-`Ô-`Ð-hØˆ
àñ 8Ø˜ÒÐàÔ!×%Ò% j°"Ñ5Ô5×9Ò9¸/ÑJÔJÐyÈhÔN_Ð`lÔNmÐnxÔNyð ð ð ^Ý Ð!\Ñ]Ô]Ð]å1°(Ñ;Ô;ˆJˆJðkÝ,¨ZÑ8Ô8�
�
øÝð kð kð kÝÐ`ÕDUÑDWÔDW×D\ÒD\ÑD^ÔD^Ð`Ð`ÑaÔaÐgjÐjøøøøðkøøøð œØ&Ô/Ø *Ô 7ðð ˆJð 	ˆÐ*×1Ò1°*·.².ÀÑ2HÔ2HÑIÔIÑJÔJÐJØ-7ˆÔ˜\Ñ*ð ˜Ð!€HØ€OØ„yð ð ÔÐ'Ý0°Ô1AÑBÔBˆGˆGå& x°¸ÐZ_Ð`Ñ`Ô`ˆGÝ˜c 7¨GÑ4Ô4Ð4ð	Ý8LØØØØØØØÔ$Ø!Øð
9ñ 
9ô 
9Ñ5ˆH�n oð '¨Ð8ˆHˆHøÝ!ð 	ð 	ð 	ÝŒJ×ÒÐ3µc¸#±h´hÑ>ÀÑEÑFÔFÐFØ�1�1�1�1�1øøøøÝ#ð 	ð 	ð 	ÝŒJ×ÒÐ1µC¸±H´HÑ<¸tÑCÑDÔDÐDØ�1�1�1�1�1øøøøð	øøøð
 Ôð R˜tÔ2ð RØÔ× Ò  ¨RÑ0Ô0×4Ò4Ð5OÑPÔPÐTZÒZÐZØÔ×!Ò! *¨bÑ1Ô1×5Ò5Ð6PÑQÔQÐQð Ôð BØˆÐ^½4¼:ÀdÔFZÑ;[Ô;[Ð^Ð^Ð^Ñ_Ô_Ð_à˜4Ô/Ð/Ð/°OÀxÔGX×G\ÒG\Ð]gÐikÑGlÔGlÐ4lÐ4lØÔ˜jÔ)×-Ò-¨oÑ>Ô>Ð>å˜Ô*¨DÔ,@ÑAÔAÐAð �#‚~€~ØˆØˆ	ˆ	å”×!Ò!¥"¤'×"2Ò"2°7Ñ";Ô";Ñ<Ô<¸QÔ?ˆÝ”G—O’O GÑ,Ô,ˆ	ØŒyˆ˜Bð 	
ð 	
ˆÝ ØØØŒMØ”*ØØØ”nð
ñ 
ô 
ˆˆð ŒzÐ˜Rð 

ð 

ˆÝØØØŒMØØ”*ØØØ”nð		
ñ 		
ô 		
ð 		
ð 		
ð 	ŒðàÔ ðõ *¨(Ñ3Ô3ðõ (¨°(Ñ;Ô;ð	ð 	ˆÐ}¥u¤{°7Ñ';Ô';Ð}Ð}Ð}Ñ~Ô~Ð~ØˆŒð „|ñ *ØÔ'×+Ò+¨L¸"Ñ=Ô=×AÒAÀ&ÑIÔIˆØˆÐF¸ÐFÐFÑGÔGÐGàÐ 7¨c¢> >Ý”g—o’o gÑ.Ô.ˆGˆGØ˜Š^ˆ^Ý”g—o’o gÑ.Ô.ˆGˆGàˆGà”=Ð+ GˆØŒ=ð 	T¥¤§¢¨xÑ!8Ô!8ð 	Tà$¥b¤i¡k¤kÐ2ð ð �Ýœ7Ÿ<š<¨°(Ñ;Ô;�Ý”7—=’= Ñ*Ô*ð Ø'�HØ�Eðõ ”7—=’= Ñ*Ô*ð TÝ Ð!R¨t¬}Ð!RÐ!RÐ!RÑSÔSÐSàð 	Ø# f¨hÐ%7Ð8ˆIˆIàˆIð	ØCÐCÐCÐCÐCÐCà+Ð+°DÀkÐRÑRÔRˆIØ× Ò  °YÐ Ñ?Ô?Ð?Ð?øÝ�\Ð*ð 
	ð 
	ð 
	ØÔ#ð Ý"ðLñô ð ð	õ
 ðLñô ð ðøøøøð
	øøøð „yð .�DÔ$ñ .ð,	à�;Ô 8Ò+Ð+Ý*ØØØœ;Ø37Ô3CÐ/CØ(,Ô(@ðñ ô ð ñ õ ˜'¨GÐ4Ñ4Ô4ð )¸Ø!Ÿwšw™yœy�Hð)ð )ð )ñ )ô )ð )ð )ð )ð )ð )ð )øøøð )ð )ð )ð )ð
 "×1Ò1°'Ñ:Ô:Ð:ð ˜KÔ(¨HÒ4Ð4Ý & x°XÐ >Ñ >Ô >�IÝ$ Y°HÐ=Ñ=Ô=�Hå˜h¨C¸Ð?Ñ?Ô?�àÔ#ð ^Ý˜D (Ñ+Ô+Ð+Ð+õ 1Ô4°S¸Ô5EÀrÑJÔJ×NÒNÈyÐZ\Ñ]Ô]�Gàð 3Ø")¨FÑ"2˜Ý"$¤*ØB×IÒIÐRYÐIÑZÔZÝœ¥r¤yÑ0ñ#ô #�Kõ �BœF ;°°DÑ9Ô9½2¼6À+ÈrÐS[Ñ;\Ô;\Ñ]Ô]Ð]øøå"¥NÐ3ð 	ð 	ð 	ÝŒJ×Ò Ð5Ð5­3¨s©8¬8Ð5Ð5Ñ6Ô6Ð6Ø�1�1�1�1�1øøøøð	øøøð ˆqð €Oð ØØ#Ø$ðy&ð y&ð y&ð y&ð y&ð y&ð y&ð y&ð y&ð y&ð y&ð y&ðv ñ ?1ØÔ%ð 	ZØ&×;Ò;¸GÑDÔDˆFØ'×?Ò?ÀÑHÔHˆGØÐ" w°Ò'7Ð'7Ý Ð!X¨7Ð!XÐ!XÈwÐ!XÐ!XÑYÔYÐYà�gÒÐ hÐØˆHð ð 	)˜ 3š˜Ý�g˜xÑ(Ô(Ð(ð ð 	ØˆFˆFÝŒW�^Š^˜GÑ$Ô$ð 
	¨¬ð 
	Ø×#Ò# HÑ-Ô-ð EÝ Ð!CÑDÔDÐDØ2ˆFÝ˜x¨°'Ñ:Ô:Ð:Ý2°8½TÀ'¹]¼]ÐPSÐTÑTÔTˆHˆHÝŒW�^Š^˜GÑ$Ô$ð 	ØSZ×ScÒScÐdlÑSmÔSmÐuÐOÐOÐsuˆNØD°>ÐDÐDÐDˆFˆFàˆFàÔ#×'Ò'¨
°BÑ7Ô7×;Ò;¸IÑFÔFˆÝ,¨WÑ5Ô5ˆØð 	EðEÝ#<¸WÀgÑ#NÔ#NÑ �˜q˜qøÝ#ð Eð Eð Eà�ØÔ!×%Ò% j°"Ñ5Ô5×9Ò9¸)ÑDÔDÐDÐDÐDðEøøøð
 	ˆ
�7 °Ð8Ñ8Ô8Ð8à!ð 
¥cð *
ð *
ð *
ð *
å+¨G°S¸'ÑBÔBð*
ñ *
ô *
ñ '
ô '
ˆð ð	<å”—’˜wÑ'Ô'ð	<ð ×$Ò$ XÑ.Ô.ð	<õ ”—’˜wÑ'Ô'ð		<ð
 × Ò  Ñ*Ô*ð	<ð ˆJ�w°dÐ;Ñ;Ô;Ð;øð 
Œð 1ØÔ%ð 	<Ø×2Ò2°7Ñ;Ô;Ð;Ý�7˜G ZÑ0Ô0Ð0àÐs·   Á=B ÂACÃCÎN Î
OÎ1OÏOÑ5%R Ò
T'Ò%2SÓT'Ó*2T"Ô"T'â**c ãdã&'dädä%Aj0 å(f	å=j0 æ	fæj0 æfæDj0 ê0k=ë1k8ë8k=ò
r ò:sósc                 ór  — t          ddd¦  «        }t          j        dt          j        ¦  «        }|                     |¦  «        }g }|D ]l}|                     d¦  «        r|                     d¦  «        r
|dd…         }	 t          || ¦  «         |                     |¦  «         Œ]# t          $ r Y Œiw xY w|S )z`Return the list of modified and deleted ipynb files in the git index that match the given formatrÿ   Ústatusú--porcelainz^[AM]+\s+(?P<name>.*)ú"r   éÿÿÿÿ)
r<   rD  rE  rF  ÚfindallrÁ   r  r#   rB   r"   )rq   Ú
git_statusÚre_modifiedÚmodified_files_in_git_indexÚfilesrÌ   s         r;   r°   r°   í  sÖ   € å˜˜x¨Ñ7Ô7€JÝ”*Ð5µr´|ÑDÔD€KØ"-×"5Ò"5°jÑ"AÔ"AÐØ€EØ.ð ð ˆØ×Ò˜cÑ"Ô"ð 	$ w×'7Ò'7¸Ñ'<Ô'<ð 	$Ø˜a ˜d”mˆGð	Ý�g˜sÑ#Ô#Ð#Ø�LŠL˜Ñ!Ô!Ð!Ð!øÝð 	ð 	ð 	ØˆHð	øøøà€Ls   Â%B'Â'
B4Â3B4c                 óº   — | sdS t          dd| ¦  «                             ¦   «         }|dk    rdS t          dd| ¦  «                             ¦   «         }|dk    rdS dS )zSCheck whether a file was created or modified and needs to be added to the git indexFrÿ   zls-filesrS   Tr¼   )r<   Ústrip)Úfilepathrº   s     r;   r  r  þ  sj   € àð Øˆuå�E˜: xÑ0Ô0×6Ò6Ñ8Ô8€FØ�‚|€|Øˆtå�E˜6 8Ñ,Ô,×2Ò2Ñ4Ô4€FØ�‚|€|Øˆtàˆ5r=   c                 ó¬   — t          | |¦  «        }|r?t          | ||¦  «        D ]/\  }}|| k    r"t          j                             |dz   ¦  «         Œ.dS dS )z*Display the paired paths for this notebookr’   N)r   r&   r”   r,   r   )rÌ   rq   r™   rÜ   r:   s        r;   rµ   rµ     sp   € å,¨W°cÑ:Ô:€GØð .Ý# G¨S°'Ñ:Ô:ð 	.ð 	.‰GˆD�!Ø�wŠˆÝ”
× Ò  ¨¡Ñ-Ô-Ð-øð.ð .ð	.ð 	.r=   c           	      óZ  — |sdS |D ]£}	 |                      d¦  «        \  }}n&# t          $ r}t          d|› d�¦  «        |‚d}~ww xY w|t          vr;t          d                     |d                     t          ¦  «        ¦  «        ¦  «        ‚|t
          v rt          |¦  «        }|| |<   Œ¤dS )z>Apply the desired format options to the format description fmtNú=z>Format options are expected to be of the form key=value, not 'rï   z7'{}' is not a valid format option. Expected one of '{}'ri   )rA   r¯   r   r‚   rƒ   r   rX   )rq   r¾   ÚoptÚkeyrW   rÕ   s         r;   rÃ   rÃ     sì   € àð Øˆàð ð ˆð	oØŸš 3™œ‰JˆC��øÝð 	oð 	oð 	oÝÐdÐ^aÐdÐdÐdÑeÔeÐknÐnøøøøð	oøøøð Õ+Ð+Ð+ÝØI×PÒPÐQTÐV\×VaÒVaÕbwÑVxÔVxÑyÔyñô ð ð Õ(Ð(Ð(Ý˜U‘O”OˆEàˆˆC‰ˆðð s   Š#£
A­AÁAc                 ó  — t          |¦  «        D ]y}|d         | d         k    re|                      d¦  «        |                     d¦  «        k    r9	 t          ||¦  «         |                      |¦  «          dS # t          $ r Y Œuw xY wŒzdS )zRAdd prefix and suffix information from jupytext.formats if format and path matchesrm   rn   N)r   r/  r#   rò   r"   )rq   r™   rÌ   Úalt_fmts       r;   r2  r2  -  s­   € å-¨gÑ6Ô6ð ð ˆØ�;Ô 3 {Ô#3Ò3Ð3¸¿ºÀÑ8NÔ8NÐRY×R]ÒR]Ð^kÑRlÔRlÒ8lÐ8lðÝ˜' 7Ñ+Ô+Ð+Ø—
’
˜7Ñ#Ô#Ð#Ø��øÝ#ð ð ð Ø�ðøøøøðð s   Á%A9Á9
BÂBc                   ó   — e Zd ZdZdS )r4  z8An error raised when a notebook is not a paired notebookN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r¤   r=   r;   r4  r4  9  s   € € € € € ØBÐBÐBÐBr=   r4  c                   ó   — e Zd ZdZdS )r5  z[An error raised when two paired files in the git index contain inconsistent representationsNru  r¤   r=   r;   r5  r5  =  s   € € € € € ØeÐeÐeÐer=   r5  c                 ó²   — t           j                             | ¦  «        sdS t          ddd| ¦  «                             ¦   «                              d¦  «        S )NFrÿ   ra  rb  )ÚMÚA)r  rÜ   r  r<   rk  rÁ   ©rÜ   s    r;   Úfile_in_git_indexr  A  sK   € ÝŒ7�>Š>˜$ÑÔð ØˆuÝ�%˜ =°$Ñ7Ô7×=Ò=Ñ?Ô?×JÒJÈ:ÑVÔVÐVr=   c                 ó\  — t           j                             | ¦  «        sd S t          | ¦  «        rt	          d¦  «        S 	 t          ddddd| ¦  «                             ¦   «         }n&# t          $ r}|j        dk    rd}n‚ Y d }~nd }~ww xY w|rt	          |¦  «        S t          | ¦  «        S )	NÚinfrÿ   r–   z-1z--pretty=%ctz--no-show-signatureé€   rS   )
r  rÜ   r  r  Úfloatr<   rk  r4   ÚcodeÚget_timestamp)rÜ   Ú
git_ts_strrÕ   s      r;   Úgit_timestampr‡  G  sÐ   € ÝŒ7�>Š>˜$ÑÔð Øˆtõ ˜ÑÔð Ý�U‰|Œ|ÐðÝ˜E 5¨$°Ð@UÐW[Ñ\Ô\×bÒbÑdÔdˆ
ˆ
øÝð ð ð ØŒ8�sŠ?ˆ?àˆJˆJàð ˆJˆJˆJˆJøøøøðøøøð ð !Ý�ZÑ Ô Ð õ ˜ÑÔÐs   Á&A( Á(
BÁ2BÂBrÜ   Úreturnc                 óv   — t           j                             | ¦  «        sd S t          j        | ¦  «        j        S r'  )r  rÜ   r  r  r  r~  s    r;   r…  r…  `  s.   € ÝŒ7�>Š>˜$ÑÔð ØˆtÝŒ7�4‰=Œ=Ô!Ð!r=   c                   ó   — e Zd ZdZdS )r  zCAn error raised when a file was modified while Jupytext was runningNru  r¤   r=   r;   r  r  f  s   € € € € € ØMÐMÐMÐMr=   r  c                   ó†   — e Zd ZdZddefd„Zdedee         fd„Z	dedee         fd„Z
defd	„Zd
„ Zdedee         fd„ZdS )r.  zô
    This class keeps track of the timestamps of files that have been used by Jupytext
    when loading a paired notebook. Either the timestamp of each file was consulted to
    identify the most recent input file, or its content was read.
    Frå   c                 ó"   — || _         i | _        d S r'  )rå   Ú_timestamps)Úselfrå   s     r;   Ú__init__zTimestampChecker.__init__q  s   € Ø.ˆÔØ79ˆÔÐÐr=   rÜ   rˆ  c                 ó¢   — || j         v r|                      |¦  «        }nt          |¦  «        }|| j         |<   | j        rt	          |¦  «        S |S r'  )r�  r
  r…  rå   r‡  ©rŽ  rÜ   Útss      r;   r  z(TimestampChecker.get_and_check_timestampu  s]   € Ø�4Ô#Ð#Ð#Ø×%Ò% dÑ+Ô+ˆBˆBå˜tÑ$Ô$ˆBØ%'ˆDÔ˜TÑ"àÔð 	'Ý  Ñ&Ô&Ð&àˆ	r=   c           	      óÜ  — || j         vrIt          dt          j        |¦  «        › dd                     d„ | j         D ¦   «         ¦  «        › �¦  «        ‚t          |¦  «        }| j         |         }|€'|�%t          dt          j        |¦  «        › d�¦  «        ‚|�'|€%t          dt          j        |¦  «        › d�¦  «        ‚||k    r%t          dt          j        |¦  «        › d�¦  «        ‚|S )	NúThe timestamp of zO was not previously recorded. So far Jupytext has only recorded timestamps for rj   c              3   ó>   K  — | ]}t          j        |¦  «        V — Œd S r'  )r  r  )rp   Úps     r;   r,  z3TimestampChecker.check_timestamp.<locals>.<genexpr>„  sh   è è € ð  Pzð  Pzð  deõ  QVô  Q\ð  ]^ñ  Q_ô  Q_ð  Pzð  Pzð  Pzð  Pzð  Pzð  Pzr=   ú	The file z' was created while Jupytext was runningz' was deleted while Jupytext was runningz( was modified while Jupytext was running)r�  r¯   r  r  rƒ   r…  r  )rŽ  rÜ   r’  Úold_tss       r;   r
  z TimestampChecker.check_timestamp�  sI  € Ø�tÔ'Ð'Ð'Ýð |¥E¤K°Ñ$5Ô$5ð  |ð  |ð  GK÷  GPò  GPð  Pzð  Pzð  imô  iyð  Pzñ  Pzô  Pzñ  Gzô  Gzð  |ð  |ñô ð õ ˜4Ñ Ô ˆØÔ! $Ô'ˆØˆ>˜b˜nÝ.Ð/u½5¼;ÀtÑ;LÔ;LÐ/uÐ/uÐ/uÑvÔvÐvØÐ " *Ý.Ð/u½5¼;ÀtÑ;LÔ;LÐ/uÐ/uÐ/uÑvÔvÐvØ�Š<ˆ<Ý.Ð/v½5¼;ÀtÑ;LÔ;LÐ/vÐ/vÐ/vÑwÔwÐwàˆ	r=   c                 ó†   — t          |¦  «        }|€%t          dt          j        |¦  «        › d�¦  «        ‚|| j        |<   d S )Nr—  z does not exist)r…  ÚFileNotFoundErrorr  r  r�  r‘  s      r;   r  z!TimestampChecker.update_timestamp’  sK   € Ý˜4Ñ Ô ˆØˆ:Ý#Ð$Rµ´¸DÑ0AÔ0AÐ$RÐ$RÐ$RÑSÔSÐSØ!#ˆÔ˜ÑÐÐr=   c                 óD   — | j         D ]}|                      |¦  «         Œd S r'  )r�  r
  )rŽ  rÜ   s     r;   r  z%TimestampChecker.check_all_timestamps˜  s5   € ØÔ$ð 	'ð 	'ˆDØ× Ò  Ñ&Ô&Ð&Ð&ð	'ð 	'r=   c           	      ó2  — | j         |         }|€ J dt          j        |¦  «        › d�¦   «         ‚| j                              ¦   «         D ]M\  }}||k    s|€Œ||k    r9t	          dt          j        |¦  «        › dt          j        |¦  «        › �¦  «        ‚ŒN|S )z‘Check that the given file is the most recent among all files whose timestamp
        was recorded by this TimestampChecker. Return its timestamp.Nr”  z was not previously recordedr$  z is older than paired file )r�  r  r  Úitemsr¯   )rŽ  rÜ   r’  r–  Úp_tss        r;   rK  z%TimestampChecker.check_file_is_newestœ  s³   € ð Ô˜dÔ#ˆØˆ~ˆ~Ðbµ5´;¸tÑ3DÔ3DÐbÐbÐb‰~Œ~ˆ~ØÔ'×-Ò-Ñ/Ô/ð 	kð 	k‰GˆAˆtØ�DŠyˆy˜D˜LØØ�bŠyˆyÝ Ð!i­5¬;°tÑ+<Ô+<Ð!iÐ!iÕY^ÔYdÐefÑYgÔYgÐ!iÐ!iÑjÔjÐjð àˆ	r=   N)F)rv  rw  rx  ry  Úboolr�  r†   r   rƒ  r  r
  r  r  rK  r¤   r=   r;   r.  r.  j  sÚ   € € € € € ðð ð:ð :¨ð :ð :ð :ð :ð
¨Cð 
°H¸U´Oð 
ð 
ð 
ð 
ð Cð ¨H°U¬Oð ð ð ð ð"$ Sð $ð $ð $ð $ð'ð 'ð 'ð
¨ð 
°¸%´ð 
ð 
ð 
ð 
ð 
ð 
r=   r.  rå   r!  c	                 ó˜  ‡ ‡‡‡‡— |s$t          t          j        ‰¦  «        › d�¦  «        ‚t          |¦  «        }t	          ‰|¦  «        \  }	}
|                     |
¦  «         ˆˆˆ ˆˆfd„}|�r£t          ‰¦  «        �r“t          d„ t          ‰||¦  «        D ¦   «         d„ ¬¦  «        }t          |¦  «        dk    �rT|d         \  }}‰ 
                    |¦  «         t          |d¬	¦  «        5 }|                     ¦   «         }d
d
d
¦  «         n# 1 swxY w Y   |dd
…         D ]ì\  }}‰ 
                    |¦  «         t          |||¬¦  «        }t          |||¬¦  «        }||k    r¨t          ||||d¬¦  «        }t          t          j        |¦  «        › dt          j        |¦  «        › d�|z   dt          j        |¦  «        › dt          j        |¦  «        › dt          j        |¦  «        › dt          j        |¦  «        › d�	z   ¦  «        ‚Œít!          ‰||‰j
        ¦  «        \  }}t#          |||¦  «        Š ‰ |j        |j        fS )zOUpdate the notebook with the inputs and outputs of the most recent paired filesz is not a paired notebookc                 ó˜   •— | ‰k    r‰S  ‰dt          j        | ¦  «        › �¦  «         ‰                     | ¦  «          ‰| |¬¦  «        S )Nz[jupytext] Loading ræ   )r  r  r  )rÜ   rq   r–   rÌ   r   rí   r!  s     €€€€€r;   Úread_one_filez+load_paired_notebook.<locals>.read_one_fileÁ  s]   ø€ Ø�7Š?ˆ?ØˆOàˆÐ5¥%¤+¨dÑ"3Ô"3Ð5Ð5Ñ6Ô6Ð6Ø×1Ò1°$Ñ7Ô7Ð7Øˆy˜ 3Ð'Ñ'Ô'Ð'r=   c              3   óB   K  — | ]\  }}t          |¦  «        ¯||fV — Œd S r'  )r  )rp   r*  rs  s      r;   r,  z'load_paired_notebook.<locals>.<genexpr>Ì  s;   è è € Ð}Ð}Ñ%6 X¨wÕarÐs{Ña|Ôa|Ð}ˆh˜Ð Ð}Ð}Ð}Ð}Ð}Ð}r=   c                 ó.   — | d         d         dk    rdndS )Nr   rm   r�   r   r¤   )Úxs    r;   ú<lambda>z&load_paired_notebook.<locals>.<lambda>Í  s   € ˜q œt KÔ0°HÒ<Ð<˜!˜!À!€ r=   )rq  r   r   r-   rø   NrØ   Tr¡   z and z are inconsistent.
z?
Please revert JUST ONE of the files with EITHER
    git reset z && git checkout -- z
OR
    git reset r’   )r4  r  r  r   r$   rò   r  r„   r&   r´   r  r	  r   r   r
   r5  r'   r(   rÜ   )r   rq   rÙ   r™   rÌ   r–   rå   r!  rí   r:   Úfmt_with_prefix_suffixr¢  Únb_files_in_git_indexÚpath0Úfmt0r  Útext0r*  rs  rŸ   Úalt_textr¼   ÚinputsÚoutputss   `   `` ``               r;   r3  r3  ®  s  øøøøø€ ð ð UÝ ¥E¤K°Ñ$8Ô$8Ð!SÐ!SÐ!SÑTÔTÐTå(¨Ñ1Ô1€GÝ 9¸'À7Ñ KÔ KÑ€AÐØ‡J‚JÐ%Ñ&Ô&Ð&ð(ð (ð (ð (ð (ð (ð (ð (ð (ð ñ Õ,¨WÑ5Ô5ñ å &Ø}Ð}½,ÀwÐPSÐU\Ñ:]Ô:]Ð}Ñ}Ô}ØCÐCð!
ñ !
ô !
Ðõ
 Ð$Ñ%Ô%¨Ò)Ñ)Ø/°Ô2‰KˆE�4Ø×5Ò5°eÑ<Ô<Ð<Ý�e gÐ.Ñ.Ô.ð "°"ØŸš™	œ	�ð"ð "ð "ñ "ô "ð "ð "ð "ð "ð "ð "øøøð "ð "ð "ð "à%:¸1¸2¸2Ô%>ð ð Ñ!�˜'Ø!×9Ò9¸(ÑCÔCÐCÝ˜(¨¸Ð?Ñ?Ô?�Ý! "¨$°vÐ>Ñ>Ô>�Ø˜uÒ$Ð$Ý" 8¨U°H¸eÐQUÐVÑVÔV�DÝ.Ý œ; xÑ0Ô0Ð_Ð_µu´{À5Ñ7IÔ7IÐ_Ð_Ð_ØñðhÝ).¬°XÑ)>Ô)>ðhð hÝTYÔT_Ð`hÑTiÔTiðhð hå).¬°UÑ);Ô);ðhð håQVÔQ\Ð]bÑQcÔQcðhð hð hñhñô ð ð %õ 0°¸¸gÐGXÔGpÑqÔq�O€FˆGÝ˜ ¨-Ñ8Ô8€Hà�V”[ '¤,Ð.Ð.s   Ã/DÄDÄDFc                 ó  — t          | t          ¦  «        sJ ‚|sEt          j                             d                     d                     | ¦  «        ¦  «        ¦  «         t          j        | fi |�%t          t          j
        t          j
        ¬¦  «        ni ¤Ž}|                     |¬¦  «        \  }}|r6|s4|s2t          j                             |                     d¦  «        ¦  «         |r2t          j                             |                     d¦  «        ¦  «         |j        rhdd                     | ¦  «        › d|j        › �}|rd	nd
}	t          j                             d|rdnd› d|› |	› d�¦  «         |st          |j        ¦  «        ‚|S )z=Execute the desired command, and pipe the given input into itz[jupytext] Executing {}
r?   N)r,   rã   )Úinputr-   zThe command 'z' exited with code rS   z4 (use --warn-only to turn this error into a warning)z[jupytext] ÚWarningÚErrorrû   r’   )Ú
isinstanceÚlistr”   r,   r   r‚   rƒ   r/   r1   Údictr0   r2   r5   rÉ   r3   r4   )
Úcommandr°  ÚcapturerÆ   r“   Úprocessr9   rÕ   r¥   Úhints
             r;   Úexec_commandrº  é  s£  € å�g�tÑ$Ô$Ð$Ð$Ð$Øð PÝŒ
×ÒÐ4×;Ò;¸C¿HºHÀWÑ<MÔ<MÑNÔNÑOÔOÐOÝÔØðð àBGÐBS�4•z”­j¬oÐ>Ñ>Ô>Ð>ÐY[ðð €Gð ×"Ò"¨Ð"Ñ/Ô/�H€CˆØ
ð .�7ð . 5ð .ÝŒ
×Ò˜Ÿš GÑ,Ô,Ñ-Ô-Ð-Ø
ð .ÝŒ
×Ò˜Ÿš GÑ,Ô,Ñ-Ô-Ð-àÔð 1ØX˜cŸhšh wÑ/Ô/ÐXÐXÀGÔDVÐXÐXˆØÐZˆrˆrÐ$ZˆÝŒ
×ÒÐ[°IÐ'J y yÀ7Ð[Ð[ÈcÐ[ÐSWÐ[Ð[Ð[Ñ\Ô\Ð\Øð 	1Ý˜WÔ/Ñ0Ô0Ð0à€Jr=   ú
py:percentTc                 ó¶  ‡— |dv r|dz   }n	|dv r|dz   }t          || j        d¬¦  «        }t          || j        d¦  «        }t          | |¦  «        }t	          j        |¦  «        }d|v �r|�|d
z   }t          dd||d         |d¬¦  «        }		 t          di |	¤ŽŠn1# t          $ r$ |	 	                    d¦  «         t          di |	¤ŽŠY nw xY w	 ‰ 
                    |¦  «         ‰                     ¦   «          t          ˆfd„|D ¦   «         |||¬¦  «         |s| t          j        ‰j        ¦  «         S t!          ‰j        |¬¦  «        }
t          j        ‰j        ¦  «         n # t          j        ‰j        ¦  «         w xY wt          ||                     d¦  «        |||¬¦  «        }|s| S |s2t$          j         
                    d                     |¦  «        ¦  «         t+          |                     d¦  «        |¦  «        }
|d         dk    rt/          |
| |¦  «        }
d| j        v r| j        d         |
j        d<   n|
j         	                    dd	¦  «         |
S )z…Pipe the notebook, in the desired representation, to the given command. Update the notebook
    with the returned content if desired.)ÚblackÚflake8Úautopep8z -)ÚpytestÚunittestz {}F)Úauto_ext_requires_language_infor~   ú{}Nr—   zw+Úutf8rm   )Úmoderù   rð   ÚsuffixÚdirÚdeleterù   c                 ó.   •— g | ]}|d k    r|n‰j         ‘ŒS )rÃ  )rè   )rp   rS  Útmps     €r;   ú
<listcomp>z!pipe_notebook.<locals>.<listcomp>.  s'   ø€ ÐEÐEÐE°c˜˜tš˜��¨¬ÐEÐEÐEr=   )r·  r“   rÆ   ræ   r-   )r·  rÆ   r“   z™[jupytext] The command '{}' had no output. As a result, the notebook is empty. Is this expected? If not, use --check rather than --pipe for this command.r�   r˜   r¤   )r   rž   r   r   r  rA   rµ  r   Ú	TypeErrorr6  r   rË   rº  r  r  rè   r   Úencoder”   rÉ   r‚   r   r5   r   )r   r¶  rq   rò   r“   rð   rñ   rÆ   r•   Útmp_file_argsÚpiped_notebookÚ
cmd_outputrÊ  s               @r;   r:  r:    sÙ  ø€ ð Ð1Ð1Ð1Ø˜D‘.ˆˆØ	Ð*Ð	*Ð	*Ø˜E‘/ˆå
˜s HÔ$5ÐW\Ð
]Ñ
]Ô
]€CÝ
˜˜hÔ/°Ñ
>Ô
>€CÝ�(˜CÑ Ô €DåŒk˜'Ñ"Ô"€GØˆw€�ØÐØ˜c‘\ˆFÝØØØØ�{Ô#ØØð
ñ 
ô 
ˆð	6Ý$Ð5Ð5 }Ð5Ð5ˆCˆCøÝð 	6ð 	6ð 	6à×Ò˜jÑ)Ô)Ð)Ý$Ð5Ð5 }Ð5Ð5ˆCˆCˆCð	6øøøð	 Ø�IŠI�d‰OŒOˆOØ�IŠI‰KŒKˆKåØEÐEÐEÐE¸WÐEÑEÔEØØØ#ð	ñ ô ð ð ð  Øõ ŒI�c”hÑÔÐÐõ " #¤(°Ð4Ñ4Ô4ˆNåŒI�c”hÑÔÐÐø�BŒI�c”hÑÔÐÐøøøå!ØØ�KŠK˜Ñ Ô ØØØð
ñ 
ô 
ˆ
ð ð 	ØˆOàð 	ÝŒJ×Òð]ß]cÒ]cÐdkÑ]lÔ]lñô ð õ
 ˜z×0Ò0°Ñ9Ô9¸3Ñ?Ô?ˆà
ˆ;Ô˜8Ò#Ð#Ý4°^ÀXÈsÑSÔSˆð �XÔ&Ð&Ð&Ø.6Ô.?À
Ô.KˆÔ 
Ñ+Ð+àÔ×#Ò# J°Ñ5Ô5Ð5àÐs%   ÂB Â+C	ÃC	ÃAE" Ä2E" Å"E=c                 óZ   — d}| j         D ] }|j        dk    r|j        |k    r dS |dz  }Œ!dS )zfReturns True if all the code cells have an execution count, ordered from 1 to N with no missing numberr   r„  FT)ÚcellsÚ	cell_typeÚexecution_count)r   Úexpected_execution_countÚcells      r;   r<  r<  Z  sM   € à ÐØ”ð *ð *ˆØŒ>˜VÒ#Ð#ØÔ#Ð'?Ò?Ð?Ø�u�uØ$¨Ñ)Ð$øØˆ4r=   c                 óÈ   — |D ]^}t           j                             |¦  «        s dS t          |¦  «        }d„ |j        D ¦   «         }d„ | j        D ¦   «         }||k    r dS Œ_dS )z-The source for the code cells has not changedTc                 ó2   — g | ]}|j         d k    ¯|j        ‘ŒS ©r„  ©rÓ  Úsource©rp   rÖ  s     r;   rË  z+code_cells_have_changed.<locals>.<listcomp>n  s&   € ÐPÐPÐP˜t°t´~ÈÒ7OÐ7OˆtŒ{Ð7OÐ7OÐ7Or=   c                 ó2   — g | ]}|j         d k    ¯|j        ‘ŒS rÙ  rÚ  rÜ  s     r;   rË  z+code_cells_have_changed.<locals>.<listcomp>o  s&   € ÐRÐRÐR˜t¸¼È6Ò9QÐ9QˆtŒ{Ð9QÐ9QÐ9Qr=   F)r  rÜ   r(  r   rÒ  )r   rP  rÌ   Únb_refÚrefÚnews         r;   r=  r=  e  s‚   € àð ð ˆÝŒw�~Š~˜gÑ&Ô&ð 	Ø�4�4å�g‘”ˆð QÐP v¤|ÐPÑPÔPˆØRÐR x¤~ÐRÑRÔRˆà�#Š:ˆ:Ø�4�4ð ð ˆ5r=   r'  )NFFF)r»  TFNNF)Zry  rU   rÅ   rˆ   r  rD  r  r/   r”   r¬   r   Útempfiler   Útypingr   Únbformat.signr   Úcombiner   r
   r	   r   rÙ   r   r   r™   r   r   r   r   r   r   r   r   r   Úheaderr   r˜   r   r   r   r   r   r   Úkernelsr   r   r    Ú	languagesr!   r&   r"   r#   r$   r%   Úpairsr'   Ú
sync_pairsr(   r)   rª   r*   r<   rE   rX   r�   rÇ   r°   r  rµ   rÃ   r2  r¯   r4  r5  r  r‡  r†   rƒ  r…  rC   r  r.  r  rŸ  r3  rº  r:  r<  r=  r¤   r=   r;   ú<module>rê     sæ  ðØ 'Ð 'à €€€Ø €€€Ø €€€Ø 	€	€	€	Ø 	€	€	€	Ø €€€Ø Ð Ð Ð Ø 
€
€
€
Ø €€€Ø Ð Ð Ð Ð Ð Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø Ð Ð Ð Ð Ð à (Ð (Ð (Ð (Ð (Ð (à 0Ð 0Ð 0Ð 0Ð 0Ð 0Ø LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LØ :Ð :Ð :Ð :Ð :Ð :Ð :Ð :ð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð %Ð $Ð $Ð $Ð $Ð $ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð RÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QÐ QØ )Ð )Ð )Ð )Ð )Ð )ðð ð ð ð ð ð ð ð ð ð ð ð ð ð -Ð ,Ð ,Ð ,Ð ,Ð ,Ø -Ð -Ð -Ð -Ð -Ð -Ð -Ð -Ø  Ð  Ð  Ð  Ð  Ð  ðð ð ðð ð ð	Vð 	Vð 	Vð#ð #ð #ð #ðDf* $ð f*ð f*ð f*ð f*ð f*ðRið ið iðXð ð ð"ð ð ð .ð .ð .ðð ð ð,	ð 	ð 	ðCð Cð Cð Cð C˜ñ Cô Cð Cðfð fð fð fð f˜:ñ fô fð fðWð Wð Wðð ð ð2"˜ð " ¨¤ð "ð "ð "ð "ðNð Nð Nð Nð N 7ñ Nô Nð Nð<ð <ð <ð <ð <ñ <ô <ð <ðB Ð ð8/ð ð8/ð (ð8/ð 8/ð 8/ð 8/ðvð ð ð ð8 	ØØ
ØØØðUð Uð Uð Uðpð ð ðð ð ð ð r=   