
    Fh                         S r SSKJr  SSKJr  SSKJr  SSKJrJr  SSK	J
r  SSKJrJrJrJr  SS	KJr  SS
KJrJr   " S S\\\5      r\R.                  =rrg)JupyterLab Server Application    )glob)relpath)Any)ExtensionAppExtensionAppJinjaMixin)url_path_join)DictIntegerUnicodeobserve   )__version__)	LabConfigadd_handlersc                   0   \ rS rSrSrSrSrSrSr\	S\
4S j5       r\" SS	S
9rSr\" SSS
9R                  \S9r\" SSSS9r\" SSSS9r\" SSSS9r\" SSSS9r\" SSSS9r\" 0 SSS9rSSS.r\" \" \5      6 S\SS4S j5       rS!S jrS!S jr S!S jr!S r"g)"LabServerApp   z1A Lab Server Application that runs out-of-the-boxjupyterlab_serverz/labr   z	/lab/treereturnc                     U R                   $ )N)nameselfs    hC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\jupyterlab_server/app.pyapp_namespaceLabServerApp.app_namespace   s    yy    z'The default URL to redirect to from `/`)helpT zThe version of the application.)defaultz6Deprecated, use `LabServerApp.blocked_extensions_uris`)configr   z
        A list of comma-separated URIs to get the blocked extensions list

        .. versionchanged:: 2.0.0
            `LabServerApp.blacklist_uris` renamed to `blocked_extensions_uris`
        z6Deprecated, use `LabServerApp.allowed_extensions_uris`z
        "A list of comma-separated URIs to get the allowed extensions list

        .. versionchanged:: 2.0.0
            `LabServerApp.whitetlist_uris` renamed to `allowed_extensions_uris`
        i  z2The interval delay in seconds to refresh the listszThe optional kwargs to use for the listings HTTP requests             as described on https://2.python-requests.org/en/v2.7.0/api/#requests.request)blocked_extensions_uris1.2)allowed_extensions_urisr$   )blacklist_uriswhitelist_urischangeNc                 H   UR                   nU R                  R                  U5      u  p4[        X5      nXQR                  :w  a_  U R
                  R                  SU R                  R                  UUU R                  R                  U5        [        XUR                  5        gg)zobserver for deprecated traitsz7%s.%s is deprecated in JupyterLab %s, use %s.%s insteadN)
r   _deprecated_aliasesgetgetattrnewlogwarning	__class____name__setattr)r   r(   old_attrnew_attrversion	new_values         r   _deprecated_traitLabServerApp._deprecated_traitU   s     ;; 4488BD+	

" HHI'''' DFJJ/ #r   c                    [        U R                  R                  S/ 5      5      nUR                  U R                  5        U R
                  U R                  -    HN  n[        U S3SS9 Vs/ s H"  n[        U R                  [        X25      5      PM$     nnUR                  U5        MP     U R                  R                  S[        U5      05        gs  snf )zeInitialize the settings:

set the static files as immutable, since they should have all hashed name.
static_immutable_cachez
/**/staticT)	recursiveN)setsettingsr+   addstatic_url_prefixlabextensions_pathextra_labextensions_pathr   ujoinlabextensions_urlr   updatelist)r   immutable_cacheextension_pathpathextensions_urls        r   initialize_settings LabServerApp.initialize_settingsj   s    
 dmm//0H"MN 	D223 #558U8UUN !N#3:!>$OOD d,,gd.KLO  
 "">2 V 	6_8MNOs   ,)Cc                 L    U R                   /U l        U R                  /U l        g)zInitialize templates.N)
static_dirstatic_pathstemplates_dirtemplate_pathsr   s    r   initialize_templates!LabServerApp.initialize_templates   s"    !__-#112r   c                 0    [        U R                  U 5        g)zInitialize handlers.N)r   handlersr   s    r   initialize_handlers LabServerApp.initialize_handlers   s    T]]D)r   )rN   rP   )r   N)#r1   
__module____qualname____firstlineno____doc__r   extension_urlapp_namefile_url_prefixpropertystrr   r   default_urlload_other_extensionstagr   app_versionr&   r#   r'   r%   r   listings_refresh_secondsr
   listings_request_optionsr*   r   rE   r   r7   rJ   rQ   rU   __static_attributes__ r   r   r   r      s6   ;DM.H!Os   &'PQK !"#DEIIR]I^K
4VN &
	 
4VN &
	  '#W   $
[  =< d&'(0 0 0 )0(P*3
*r   r   N)rZ   r   os.pathr   typingr   $jupyter_server.extension.applicationr   r   jupyter_server.utilsr	   rB   	traitletsr
   r   r   r   _versionr   rT   r   r   r   launch_instancemainlaunch_new_instancerg   r   r   <module>rq      sL    #
    U 7 5 5 ! -t*)9l t*n *99 9r   