Ë
    :vžjà  ã                   ój   — d dl Z d dlmZmZmZmZmZmZmZ d dl	m
Z
 d dlmZ d dlmZ  G d„ de«      Zy)é    N)Ú	HasTraitsÚDictÚUnicodeÚListÚBoolÚobserveÚdefault)Újupyter_path)Ú_i18n)Úurl_path_joinc                   ón  ‡ — e Zd Z edd ed«      ¬«      Z ed ed«      ¬«      Z ed ed«      ¬«      Z eddd¬«      Z	 e
d«      d	„ «       Z e e«       dd
¬«      Zed„ «       Z e e«        ed«      ¬«      Z ed«      d„ «       Z e e«       d ed«      ¬«      Zed„ «       Z e e«       d ed«      ¬«      Zed„ «       Z eddd¬«      Zeˆ fd„«       Z ed«      d„ «       Z e
d«      d„ «       Z edd ed«      ¬«      Z e
d«      d„ «       Z eddd¬«      Z ei d ed«      ¬«      Zˆ xZ S ) ÚNotebookAppTraitsFTzXDeprecated: Use minified JS file or not, mainly use during dev to avoid JS recompilation)ÚconfigÚhelpz@Supply extra arguments that will be passed to Jinja environment.z<Extra variables to supply to jinja templates when rendering.ak  Whether to enable MathJax for typesetting math/TeX

        MathJax is the javascript library Jupyter uses to render math/LaTeX. It is
        very large, so you may want to disable it if you have a slow internet
        connection, or for offline use of the notebook.

        When disabled, equations etc. will appear as their untransformed TeX source.
        Úenable_mathjaxc                 ó   — |d   sd| _         yy)z/set mathjax url to empty if mathjax is disabledÚnewÚ N)Úmathjax_url©ÚselfÚchanges     úe/workspace/moltex-experiments/.pixi/envs/default/lib/python3.12/site-packages/notebook_shim/traits.pyÚ_update_enable_mathjaxz(NotebookAppTraits._update_enable_mathjax'   s   € ð �eŠ}Ø"ˆDÕð ó    zÂExtra paths to search for serving static files.

        This allows adding javascript/css to be available from the notebook server machine,
        or overriding individual files in the IPythonc                 ó   — | j                   S )z)return extra paths + the default location)Úextra_static_paths©r   s    r   Ústatic_file_pathz"NotebookAppTraits.static_file_path4   s   € ð ×&Ñ&Ð&r   z!Path to search for custom.js, css)r   Ústatic_custom_pathc                 óX   — t         j                  j                  | j                  d«      gS )NÚcustom)ÚosÚpathÚjoinÚ
config_dirr   s    r   Ú_default_static_custom_pathz-NotebookAppTraits._default_static_custom_path>   s$   € ô �G‰G�L‰L˜Ÿ™¨(Ó3ð
ð 	
r   zvExtra paths to search for serving jinja templates.

        Can be used to override templates from notebook.templates.c                 ó   — | j                   S )z*return extra paths + the default locations)Úextra_template_pathsr   s    r   Útemplate_file_pathz$NotebookAppTraits.template_file_pathJ   s   € ð ×(Ñ(Ð(r   z6extra paths to look for Javascript notebook extensionsc                 óÌ   — | j                   t        d«      z   }	 ddlm} |j	                  t
        j                  j                   |«       d«      «       |S # t        $ r Y |S w xY w)z3The path to look for Javascript notebook extensionsÚnbextensionsr   )Úget_ipython_dir)	Úextra_nbextensions_pathr
   ÚIPython.pathsr-   Úappendr#   r$   r%   ÚImportError)r   r$   r-   s      r   Únbextensions_pathz#NotebookAppTraits.nbextensions_pathT   sb   € ð ×+Ñ+¬l¸>Ó.JÑJˆð	IÝ5ð �K‰KœŸ™Ÿ™¡_Ó%6¸ÓGÔHØˆøô	 ò 	Øð ˆð		ús   šA Á	A#Á"A#r   z£A custom url for MathJax.js.
        Should be in the form of a case-sensitive url to MathJax,
        for example:  /static/components/MathJax/MathJax.js
        c                 ó    •— t         t        | �
  S )z3Get the static url prefix for serving static files.)Úsuperr   Ústatic_url_prefix)r   Ú	__class__s    €r   r5   z#NotebookAppTraits.static_url_prefixh   s   ø€ ô Ô&¨Ñ?Ð?r   r   c                 óP   — | j                   sy| j                  }t        |ddd«      S )Nr   Ú
componentsÚMathJaxz
MathJax.js)r   r5   r   )r   r5   s     r   Ú_default_mathjax_urlz&NotebookAppTraits._default_mathjax_urlm   s,   € à×"Ò"ØØ ×2Ñ2ÐÜÐ.°¸iÈÓVÐVr   c                 ó„   — |d   }|r| j                   sd| _        y | j                  j                  t	        d«      |«       y )Nr   r   zUsing MathJax: %s)r   r   ÚlogÚinfor   )r   r   r   s      r   Ú_update_mathjax_urlz%NotebookAppTraits._update_mathjax_urlt   s6   € à�U‰mˆÙ�t×*Ò*à"ˆDÕà�H‰H�M‰Mœ%Ð 3Ó4°cÕ:r   zTeX-AMS-MML_HTMLorMML-full,Safez5The MathJax.js configuration file that is to be used.Úmathjax_configc                 óT   — | j                   j                  t        d«      |d   «       y )Nz$Using MathJax configuration file: %sr   )r<   r=   r   r   s     r   Ú_update_mathjax_configz(NotebookAppTraits._update_mathjax_config‚   s"   € à�‰�‰ÜÐ8Ó9¸6À%¹=õ	Jr   zZIf True, display a button in the dashboard to quit
        (shutdown the notebook server).z¾Dict of Python modules to load as notebook server extensions.Entry values can be used to enable and disable the loading ofthe extensions. The extensions will be loaded in alphabetical order.)!Ú__name__Ú
__module__Ú__qualname__r   r   Úignore_minified_jsr   Újinja_environment_optionsÚjinja_template_varsr   r   r   r   r   r   Úpropertyr   r    r	   r'   r)   r*   r.   r2   r   r5   r:   r>   r?   rA   Úquit_buttonÚnbserver_extensionsÚ__classcell__)r6   s   @r   r   r      s  ø„ á˜eØ%)Ù#(Ø"|ó$~ô Ðñ !%¨DÙ*/Ð0rÓ*sô!uÐñ ØÙØJóLôÐñ ˜$ tð ô	€Nñ ÐÓñ#ó ð#ñ
 ™g›i°ð$9ô Ðð ñ'ó ð'ñ ™g›iÙ#(Ø"Ió$Kô Ðñ
 Ð!Ó"ñ
ó #ð
ñ
  ¡£	°$Ù%*ð ,Fó &Gô"Ðð ñ)ó ð)ñ #¡7£9°TÙ(-Ø'có)eô%Ðð
 ñ
ó ð
ñ ˜" Tð ô€Kð ó@ó ð@ñ ˆ]ÓñWó ðWñ ˆ]Óñ;ó ð;ñ Ð>ÀtÙ"'Ø!\ó#^ô€Nñ
 ÐÓñJó ðJñ �t Dð+ô€Kñ
 ˜r¨$Ù%*ð ,4ó &5ô!Ôr   r   )r#   Ú	traitletsr   r   r   r   r   r   r	   Újupyter_core.pathsr
   Újupyter_server.transutilsr   Újupyter_server.utilsr   r   © r   r   Ú<module>rQ      s0   ðÛ 	÷÷ ñ õ ,Ý +Ý .ôF!˜	õ F!r   