
    Mhr                        d Z ddlZddlZddlZddlZddlmZmZmZ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mZmZ ddlmZ dd	lmZ dd
l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*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3 ddl4m5Z5 ddl6m7Z7 ddl8m9Z: ddl;m<Z< ddl=m>Z> ddl?m@Z@mAZAmBZBmCZCmDZDmEZE ddlFmGZGmHZHmIZI ddlJmKZK ddlLmMZMmNZN ddlOmPZPmQZQ dZRdZS eTe          ZUdeUd<   deUd<   deUd<   d eUd!<   d"eUd#<   d$eUd%<    eTe	          ZVd&d'd(iid)feVd!<   d&d#d*iid+feVd,<   d&d-d(iid.feVd/<   e#ZW e.            ZXeWeXk    re# d0eX d1ZWd2ZY G d3 d&ee7          ZZ eTe          Z[d4e[d<   d5Z\ eTe	          Z]d6d7d(iid8e\ fe]d7<   d6d9d(iid:fe]d9<   d6d;d(iid<fe]d;<   d6d=d(iid>e\ fe]d=<    G d? d@e'          Z^ G dA d6e          Z_ G dB dCe          Z` G dD dEe          Za G dF dGe          Zb G dH dIe          Zc G dJ dKe          Zd G dL dMe          Ze eTe          Zfefg                    dNdOdPdQdRdSdTdUdVdW	            G dX dYee          Zhehji        xZjZkeldZk    r ej             dS dS )[z#A tornado based Jupyter lab server.    N)
JupyterAppNoStartbase_aliases
base_flags)version_info)flags)url_path_join)LabServerAppLicensesAppWorkspaceExportAppWorkspaceImportAppWorkspaceListApp)get_static_page_config)NotebookConfigShimMixin)BoolInstanceTypeUnicodedefault   )__version__)DEV_DIRHERE
AppOptionsbuildclean
ensure_appensure_core
ensure_devget_app_dirget_app_versionget_user_settings_dirget_workspaces_dirpjoinwatch	watch_dev)
CoreConfig)DebugLogFileMixin)MANAGERS)PluginManager)ReadOnlyExtensionManager)CheckForUpdateCheckForUpdateABCCheckForUpdateHandlerNewsHandlercheck_update_handler_pathnews_handler_path)BuilderBuildHandler
build_path)ErrorHandler)ExtensionHandlerextensions_handler_path)PluginHandlerplugins_handler_pathzYou're running JupyterLab from source.
If you're working on the TypeScript sources of JupyterLab, try running

    jupyter lab --dev-mode --watch


to have the system incrementally watch and build JupyterLab for you, as you
make changes.
zH
Running the core application with no additional extensions or settings
zLabBuildApp.app_dirapp-dirzLabBuildApp.namenamezLabBuildApp.versionversionzLabBuildApp.dev_buildz	dev-buildzLabBuildApp.minimizeminimizez DebugLogFileMixin.debug_log_pathzdebug-log-pathLabBuildApp	dev_buildTzBuild in development mode.Fz#Do not minimize a production build.zno-minimizesplice_source*Splice source packages into app directory.splice-sourcez (dev), z (app)a  Build failed.
Troubleshooting: If the build failed due to an out-of-memory error, you
may be able to fix it by disabling the `dev_build` and/or `minimize` options.

If you are building via the `jupyter lab build` command, you can disable
these options like so:

jupyter lab build --dev-build=False --minimize=False

You can also disable these options for all JupyterLab builds by adding these
lines to a Jupyter config file named `jupyter_config.py`:

c.LabBuildApp.minimize = False
c.LabBuildApp.dev_build = False

If you don't already have a `jupyter_config.py` file, you can create one by
adding a blank file of that name to any of the Jupyter config directories.
The config directories can be listed by running:

jupyter --paths

Explanation:

- `dev-build`: This option controls whether a `dev` or a more streamlined
`production` build is used. This option will default to `False` (i.e., the
`production` build) for most users. However, if you have any labextensions
installed from local files, this option will instead default to `True`.
Explicitly setting `dev-build` to `False` will ensure that the `production`
build is used in all circumstances.

- `minimize`: This option controls whether your JS bundle is minified
during the Webpack build, which helps to improve JupyterLab's overall
performance. However, the minifier plugin used by Webpack is very memory
intensive, so turning it off may help the build finish successfully in
low-memory environments.
c                      e Zd ZeZdZeZeZ e	e
d          Z eddd          Z eddd          Z eddd	          Z ed
ddd          Z eddd          Z eddd          Z eddd          Zd Zd
S )r>   z
    Build the JupyterLab application

    The application is built in the JupyterLab app directory in `/staging`.
    When the build is complete it is put in the JupyterLab app `/static`
    directory, where it is used to serve the application.
    T
allow_none zThe app directory to build inconfighelp
JupyterLabz!The name of the built applicationz$The version of the built applicationNzWhether to build in dev mode. Defaults to True (dev mode) if there are any locally linked extensions, else defaults to False (production mode).)rE   rH   rI   z:Whether to minimize a production build (defaults to True).Fz4Whether to clean before building (defaults to False)rA   c                    | j         pt                      }t          || j        | j        | j                  }| j                            dt                      |                                 5  | j	        r-| j                            d|            t          |           | j                            d|            	 | j        d n| j         }t          | j        | j        ||| j                   n3# t          $ r&}| j                            t"                     |d }~ww xY w	 d d d            d S # 1 swxY w Y   d S )N)app_dirloggercore_configr@   zJupyterLab z	Cleaning app_optionszBuilding in )r;   r<   rP   
productionr=   )rL   r    r   logrN   r@   infor<   debug_logging	pre_cleanr   r?   r   r;   r=   	Exceptionerrorbuild_failure_msg)selfrL   rP   rQ   es        Q/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/jupyterlab/labapp.pystartzLabBuildApp.start   s   ,/+-- 8(,	
 
 
 	-G--...!! 	 	~ /3'33444+....HMM222333%)^%;TTT^AS
 L +)!]        0111	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	s7   .AD74C65D76
D& !D!!D&&D77D;>D;)__name__
__module____qualname__r<   descriptionbuild_aliasesaliasesbuild_flagsr   r   r'   rN   r   rL   r;   r   r?   r=   rU   r@   r\        r[   r>   r>      s       GK GE (:$777Kgb,KLLLG7<3VWWWDgb,RSSSG _	  I tI  H d!W  I Dt2^___M    re   zLabCleanApp.app_dirzSWARNING: this will delete all of your extensions, which will need to be reinstalledLabCleanApp
extensions"Also delete <app-dir>/extensions.
settingsAlso delete <app-dir>/settingsstaticAlso delete <app-dir>/staticall1Delete the entire contents of the app directory.
c                   |    e Zd Z ed          Z ed          Z ed          Z ed          Z ed          ZdS )LabCleanAppOptionsFTN)	r]   r^   r_   r   rg   ri   stagingrk   rm   rd   re   r[   rp   rp      sO        eJtE{{Hd4jjGT%[[F
$u++CCCre   rp   c                       e Zd ZeZdZeZeZ e	e
d          Z eddd          Z eddde           Z eddd	          Z eddd
          Z eddde           Zd ZdS )rf   a	  
    Clean the JupyterLab application

    This will clean the app directory by removing the `staging` directories.
    Optionally, the `extensions`, `settings`, and/or `static` directories,
    or the entire contents of the app directory, can also be removed.
    TrD   rF   zThe app directory to cleanrG   Frh   rj   rl   rn   c           	          t          | j        | j        | j        | j        | j        | j        | j                  }t          |           d S )N)rM   rN   rL   rg   ri   rk   rm   rO   )	rp   rR   rN   rL   rg   ri   rk   rm   r   )rY   rP   s     r[   r\   zLabCleanApp.start  sS    (8(L];
 
 
 	+&&&&&&re   N)r]   r^   r_   r<   r`   clean_aliasesrb   clean_flagsr   r   r'   rN   r   rL   r   ext_warn_msgrg   ri   rk   rm   r\   rd   re   r[   rf   rf      s        GK GE (:$777Kgb,HIIIGeD/cUa/c/cdddJtE$-MNNNHT%+IJJJF
$P,PP  C
' 
' 
' 
' 
're   c                       e Zd ZeZdZd ZdS )
LabPathAppaD  
    Print the configured paths for the JupyterLab application

    The application path can be configured using the JUPYTERLAB_DIR
        environment variable.
    The user settings path can be configured using the JUPYTERLAB_SETTINGS_DIR
        environment variable or it will fall back to
        `/lab/user-settings` in the default Jupyter configuration directory.
    The workspaces path can be configured using the JUPYTERLAB_WORKSPACES_DIR
        environment variable or it will fall back to
        '/lab/workspaces' in the default Jupyter configuration directory.
    c                     t          dt                                  t          dt                                  t          dt                                  d S )NzApplication directory:   zUser Settings directory: zWorkspaces directory: )printr    r"   r#   rY   s    r[   r\   zLabPathApp.start-  s_    9+--99:::C*?*A*ACCDDD='9';';==>>>>>re   N)r]   r^   r_   r<   r`   r\   rd   re   r[   rx   rx     s/        GK? ? ? ? ?re   rx   c                   :    e Zd ZeZ ed          d             ZdS )LabWorkspaceExportAppworkspaces_dirc                     t                      S Nr#   r{   s    r[   _default_workspaces_dirz-LabWorkspaceExportApp._default_workspaces_dir6      !###re   Nr]   r^   r_   r<   r   r   rd   re   r[   r}   r}   3  >        GW$ $ $ $ $re   r}   c                   :    e Zd ZeZ ed          d             ZdS )LabWorkspaceImportAppr~   c                     t                      S r   r   r{   s    r[   r   z-LabWorkspaceImportApp._default_workspaces_dir>  r   re   Nr   rd   re   r[   r   r   ;  r   re   r   c                   :    e Zd ZeZ ed          d             ZdS )LabWorkspaceListAppr~   c                     t                      S r   r   r{   s    r[   r   z+LabWorkspaceListApp._default_workspaces_dirF  r   re   Nr   rd   re   r[   r   r   C  r   re   r   c                       e Zd ZeZdZi Zeej                                        d         fed<   eej                                        d         fed<   e	e	j                                        d         fed<    fdZ
 xZS )LabWorkspaceAppz
    Import or export a JupyterLab workspace or list all the JupyterLab workspaces

    There are three sub-commands for export, import or listing of workspaces. This app
        should not otherwise do any work.
    r   exportimportlistc                     	 t                                                       | j                            d           |                     d           n# t
          $ r Y nw xY w|                     d           d S )Nz6One of `export`, `import` or `list` must be specified.r   r   )superr\   rR   rW   exitr   rY   	__class__s    r[   r\   zLabWorkspaceApp.starta  sr    	GGMMOOOHNNSTTTIIaLLLL 	 	 	D			!s   AA 
A A )r]   r^   r_   r<   r`   subcommandsr}   
splitlinesr   r   r\   __classcell__r   s   @r[   r   r   K  s        GK K)4466q9K
 	)4466q9K
 	'2244Q7K
        re   r   c                       e Zd ZeZ eddd          Z eddd          Zi ej	        ddiZ	i ej
        d	d d
diidfiZ
 ed          d             Z ed          d             ZdS )LabLicensesAppFT  Whether to start the app in dev mode. Uses the unpublished local
        JavaScript packages in the `dev_mode` folder.  In this case JupyterLab will
        show a red stripe at the top of the page.  It can only be used if JupyterLab
        is installed as `pip install -e .`.
        rG   rF   z,The app directory for which to show licensesr:   zLabLicensesApp.app_dirdev-modedev_mode2Start the app in dev mode for running from source.rL   c                     t                      S r   )r    r{   s    r[   _default_app_dirzLabLicensesApp._default_app_dir  s    }}re   
static_dirc                 ,    t          | j        d          S Nrk   r$   rL   r{   s    r[   _default_static_dirz"LabLicensesApp._default_static_dir      T\8,,,re   N)r]   r^   r_   r<   r   r   r   rL   r   rb   r   r   r   r   rd   re   r[   r   r   k  s        Gt  H gb,Z[[[G

+ G



D12@
 E WY   W\- - - - -re   r   zServerApp.ipzServerApp.portzServerApp.port_retrieszServerApp.keyfilezServerApp.certfilezServerApp.client_cazServerApp.root_dirzServerApp.browserzServerApp.pylab)	ipportzport-retrieskeyfilecertfilez	client-caznotebook-dirbrowserpylabc            	           e Zd ZeZdZdZdZdZdZe	Z	e	
                    ddi           de	d	<   eZd d
diidfed<   d ddiidfed<   d ddiidfed<   d ddiidfed<   d ddiidfed<   d ddiidfed<   d ddiidfed<   d ddiidfed<   d ddiid fed!<   eej                                        d"         feej                                        d"         feej                                        d"         feej                                        d"         feej                                        d"         feej                                        d"         feej                                        d"         fd#Z ed$dd%&          Z edd'&          Z edd(&          Z ed)dd*&          Z e e            dd+&          Z e e            dd,&          Z ed-dd.&          Z ed-dd/&          Z ed-dd0&          Z ed1dd2&          Z  ed-dd3&          Z! ed-dd4&          Z" ed-dd&          Z# ed-dd5&          Z$ ed-dd6&          Z% ed-dd&          Z& ed7dd8d9          Z' ed-dd:&          Z( e)e*e+dd;<          Z, e-d=          d>             Z. e-d?          d@             Z/ e-dA          dB             Z0 e-dC          dD             Z1 e-dE          dF             Z2 e-dG          dH             Z3 e-dI          dJ             Z4 e-dK          dL             Z5 e-dM          dN             Z6 e-dO          dP             Z7dQ Z8 fdRZ9 fdSZ:dU fdT	Z; xZ<S )VLabApplabrJ   TaB  
    JupyterLab - An extensible computational environment for Jupyter.

    This launches a Tornado based HTML Server that serves up an
    HTML5/Javascript JupyterLab client.

    JupyterLab has three different modes of running:

    * Core mode (`--core-mode`): in this mode JupyterLab will run using the JavaScript
      assets contained in the installed `jupyterlab` Python package. In core mode, no
      extensions are enabled. This is the default in a stable JupyterLab release if you
      have no extensions installed.
    * Dev mode (`--dev-mode`): uses the unpublished local JavaScript packages in the
      `dev_mode` folder.  In this case JupyterLab will show a red stripe at the top of
      the page.  It can only be used if JupyterLab is installed as `pip install -e .`.
    * App mode: JupyterLab allows multiple JupyterLab "applications" to be
      created by the user with different combinations of extensions. The `--app-dir` can
      be used to set a directory for different applications. The default application
      path can be found using `jupyter lab path`.
    a  
        jupyter lab                       # start JupyterLab
        jupyter lab --dev-mode            # start JupyterLab in development mode, with no extensions
        jupyter lab --core-mode           # start JupyterLab in core mode, with no extensions
        jupyter lab --app-dir=~/myjupyterlabapp # start JupyterLab with a particular set of extensions
        jupyter lab --certfile=mycert.pem # use SSL/TLS certificate
    r%   zLabApp.watchzLabApp.app_dirr:   	core_modezStart the app in core mode.z	core-moder   r   r   skip_dev_buildz=Skip the initial install and JS build of the app in dev mode.zskip-dev-buildzStart the app in watch mode.r@   rA   rB   expose_app_in_browserz@Expose the global app instance to browser via window.jupyterapp.zexpose-app-in-browserextensions_in_dev_modez%Load prebuilt extensions in dev-mode.zextensions-in-dev-modecollaborativea  To enable real-time collaboration, you must install the extension `jupyter_collaboration`.
        You can install it using pip for example:

            python -m pip install jupyter_collaboration

        This flag is now deprecated and will be removed in JupyterLab v5.
custom_cssz8Load custom CSS in template html files. Default is Falsez
custom-cssr   )r   r   pathpaths	workspace
workspaceslicensesz/labz'The default URL to redirect to from `/`rG   z8The override url for static lab assets, typically a CDN.z>The override url for static lab theme assets, typically a CDN.Nz,The app directory to launch JupyterLab from.z The directory for user settings.zThe directory for workspacesFa  Whether to start the app in core mode. In this mode, JupyterLab
        will run using the JavaScript assets that are within the installed
        JupyterLab Python package. In core mode, third party extensions are disabled.
        The `--dev-mode` flag is an alias to this to be used when the Python package
        itself is installed in development mode (`pip install -e .`).
        r   aW  Whether to load prebuilt extensions in dev mode. This may be
        useful to run and test prebuilt extensions in development installs of
        JupyterLab. APIs in a JupyterLab development install may be
        incompatible with published packages, so prebuilt extensions compiled
        against published packages may not work correctly.pypizThe extension manager factory to use. The default options are:
        "readonly" for a manager without installation capability or "pypi" for
        a manager using PyPi.org and pip to install extensions.z&Whether to serve the app in watch modezGWhether to skip the initial install and JS build of the app in dev modezJWhether to expose the global app instance to browser via window.jupyterappzEWhether custom CSS is loaded on the page.
    Defaults to False.
    z,https://jupyterlab.github.io/assets/feed.xmlzURL that serves news Atom feed; by default the JupyterLab organization announcements will be fetched. Set to None to turn off fetching announcements.)rE   rI   rH   zGWhether all plugins are locked (cannot be enabled/disabled from the UI)zA callable class that receives the current version at instantiation and calling it must return asynchronously a string indicating which version is available and how to install or None if no update is available. The string supports Markdown format.)default_valueklassrH   rI   rL   c                 \    t                      }| j        rt          }n| j        rt          }|S r   )r    r   r   r   r   )rY   rL   s     r[   r   zLabApp._default_app_dirq  s0    --> 	GG] 	Gre   app_settings_dirc                 ,    t          | j        d          S )Nri   r   r{   s    r[   _default_app_settings_dirz LabApp._default_app_settings_dirz  s    T\:...re   app_versionc                     t           S r   )r   r{   s    r[   _default_app_versionzLabApp._default_app_version~  s    re   cache_filesc                     dS )NFrd   r{   s    r[   _default_cache_fileszLabApp._default_cache_files  s    ure   schemas_dirc                 ,    t          | j        d          S )Nschemasr   r{   s    r[   _default_schemas_dirzLabApp._default_schemas_dir  s    T\9---re   templates_dirc                 ,    t          | j        d          S r   r   r{   s    r[   _default_templates_dirzLabApp._default_templates_dir  r   re   
themes_dirc                 >    | j         rdS t          | j        d          S )NrF   themes)override_theme_urlr$   rL   r{   s    r[   _default_themes_dirzLabApp._default_themes_dir  s$    " 	2T\8,,,re   r   c                 ,    t          | j        d          S r   r   r{   s    r[   r   zLabApp._default_static_dir  r   re   static_url_prefixc                 h    | j         r| j         S d| j         d}t          | j        j        |          S )Nz/static//)override_static_urlr;   ujoin	serverappbase_url)rY   
static_urls     r[   _default_static_url_prefixz!LabApp._default_static_url_prefix  s=    # 	>++0DI000J0*===re   	theme_urlc                 "    | j         r| j         S dS )NrF   )r   r{   s    r[   _default_theme_urlzLabApp._default_theme_url  s    " 	+**rre   c                    | j         s,| j                            t          t          j        z             r!d| _         | j                            d           | j        s,| j                            t          t          j        z             r!d| _        | j                            d           | j
        r(| j         r!| j                            d           d| _
        | j         r(| j        r!| j                            d           d| _         | j        rt          t          d          }|g| _        |g| _        | j        swt!          t          d          }|t#          t          j        j        | j                  v r|gng | _        |t#          t          j        j        | j                  v r|gng | _        d S d S | j         r5t          t          d          }|g| _        |g| _        g | _        g | _        d S | j        g| _        | j        g| _        d S )	NTzRunning JupyterLab in core modezRunning JupyterLab in dev modez3Cannot watch in core mode, did you mean --dev-mode?Fz3Conflicting modes, choosing dev_mode over core_moderk   galata)r   rL   
startswithr   osseprR   rS   r   r   r%   warningr   static_pathstemplate_pathsr   r$   mapr   abspathlabextensions_pathextra_labextensions_pathr   r   )rY   dev_static_dirgalata_extensions      r[   initialize_templateszLabApp.initialize_templates  s   > 	=T\44TBF]CC 	=!DNHMM;<<<= 	<DL33Gbf4DEE 	< DMHMM:;;;: 	$. 	HRSSSDJ> 	#dm 	#HRSSS"DN = 	7"7H55N!/ 0D#1"2D. #(x#8#8  (3rw@W+X+XXX &&& ' (3rw@]+^+^^^ &&& ---  ^ 	7"422N!/ 0D#1"2D&(D#,.D)))!% 1D#'#5"6Dre   c                     t                                                       | j        j                            | j                   d S )N)r   )r   _prepare_templates
jinja2_envglobalsupdater   r   s    r[   r   zLabApp._prepare_templates  s=    ""$$$&&$/&BBBBBre   c                     g } j         j        j                            di           }|                    t           j        d                     |                    d j         o j                    |                    d j         o j                     j        |d<    j         j	        j
        |d<    j        |d<    j         j        |d	<    j         j        j        |d
<   t           j         j        d          r j         j        j        |d<   t#          j        t&                    |d<    j                            dt*                      j                            d j                    j        rF|                    d j         j        j        d          j         j        j        d         dgdf           t3           j         j         j         j        z    j                  }t;           j        |          }t<          t>          d|if}|                    |           d} j        rF j                            t@          !                                           tE           j                   n j        rB j#        s: j$        s3tK           j                    j                            tL                     ng j        rtK           j                   tO           j                  }|r6 fd|D               j(        tR          d|if}|                    |           d} j#        rR j                            d            j        rtU           j                   ntG          |           d|d<   d _+         j        sn|sk j,        }	t[          j.        |	          }
|
, j        /                    d|	 d           ta                       j                            d|	 d           |
1                                } j        .                    di           .                    d i           }|.                    d!d"          }|.                    d#d"          }|r0|r. j        /                    d$           d%d l2} |j3        d&           ti          tk          d' |6                    d(                              ti          tk          d) |6                    d(                              |.                    d*d+          |.                    d,i           d-}to          |d!                   sto          |d#                   r j        8                    d.|            	  |||           }ts          j:        |j;                  }na# tx          $ rT} j        =                    d/|	 d0|1           t}          ||           }ts          j:        |j;                  }Y d }~nd }~ww xY w||d2<   t~          t          d3|if}|                    |           t          d4 |.                    d5i           B                                D                       }|                    t          t          d3t          || jF        d6 7          if           d8 jG        d u i|d9<   |H                    t          t          d: K                    t                    ift          t          d; jG        ifg           d< j         jO        v rk j         jO        }|d<         }||d=<   |d>         |d?<   |d@         |dA<   t          |dB          |dC<   t           j         dD          r j         jQ        |dE<   d"|d<   | j         j        j        d<    jR        H                    |           t                      T                                 d S )FNpage_config_datarm   )rM   levelbuildAvailable
buildCheckdevModetokenexposeAppInBrowser
quitButtonallow_hidden_filesdelete_to_trashnotebookVersionz!JupyterLab extension loaded from z$JupyterLab application directory is z/custom/(.*)(?<!\.js)$static_handler_classstatic_custom_pathr   )r   no_cache_paths)rM   rL   r   r@   rO   builderFc                 D    g | ]}j                             |          S rd   )rR   rW   ).0msgrY   s     r[   
<listcomp>z.LabApp.initialize_handlers.<locals>.<listcomp>  s'    555$$555re   messagesTz!Starting JupyterLab watch mode...z4Extension Manager: No manager defined for provider 'z'.zExtension Manager is 'rH   r
   blocked_extensions_urisrF   allowed_extensions_uriszSimultaneous LabServerApp.blocked_extensions_uris and LabServerApp.allowed_extensions_uris is not supported. Please define only one of those.r   c                 (    t          |           dk    S Nr   lenuris    r[   <lambda>z,LabApp.initialize_handlers.<locals>.<lambda>:      s3xx!| re   ,c                 (    t          |           dk    S r  r  r  s    r[   r  z,LabApp.initialize_handlers.<locals>.<lambda>=  r  re   listings_refresh_secondsi  listings_tornado_options)r  r  r  r  z)Extension manager will be constrained by z,Failed to instantiate the extension manager z$. Falling back to read-only manager.)exc_infoextensionManagermanagerc                     h | ]	\  }}||
S rd   rd   )r  rulevalues      r[   	<setcomp>z-LabApp.initialize_handlers.<locals>.<setcomp>\  s"    bbb+$\abbbbre   lockedExtensions)
lock_rules
all_locked)rP   ext_optionsparentdisablednewsupdate_checkernews_url
hub_prefix	hubPrefixhub_hosthubHostuserhubUserzuser-redirectshareUrlserver_namehubServerName)Ur   web_appri   
setdefaultr   r   rR   r   r   identity_providerr   r   quit_buttoncontents_managerallow_hiddenhasattrr   jsondumpsjpserver_version_inforS   r   rL   r   appendr   r   r   r@   r2   r4   r3   	CORE_NOTEstripr   r%   r   r   DEV_NOTEr   app_urlr5   r&   r   extension_managerEXT_MANAGERSgetrW   NotImplementedErrorloadsysr   setfiltersplitr  debugdataclassesasdictmetadatarV   r   r+   r7   r6   	frozensetitemsr9   r8   r*   lock_all_pluginsr)  extendr0   r.   check_for_updates_classr   r1   r/   tornado_settingsr   r1  handlersr   initialize_handlers)rY   rU  page_configrP   r  build_handlererroredmsgshandlerproviderentry_pointmanager_factoryrH   r  r  rG  listings_configext_managerrN  errext_handlerr"  rT  r*  r   s   `                       r[   rV  zLabApp.initialize_handlers  sa    n,5@@ASUWXX1OOOPPP/T^1C1YDMHYZZZ|-?-UDUVVV!%I#~?EG,0,F()$(N$>L!,0N,K,X()4>24EFF 	]-1^-L-\K)* *.4I)J)J%&B$BBCCCMT\MMNNN? 
	OO-N*34JK $ 6 ?@T U+.% 	 	 	 !8L#<t?VV,	
 
 
 $.kBBB#\Iw3GH&&&> 	HMM)//++,,,!!!!] 	J ($"5 (48$$$h'''! %48$$$dl++D 55555555<
D7IJ(((: 	%HMM=>>>} 6$(####+....05,-$D~ a	g a	-H&*844K"bV^bbbccc)+++CxCCCDDD)..00O]&&x4488LLF&,jj1JB&O&O#&,jj1JB&O&O#' .E  d   


 ,/335L5R5RSV5W5WXX, , ,/335L5R5RSV5W5WXX, , -3JJ7QSZ,[,[,2JJ7QSU,V,V	 	O ?#<=>> ^# 9:C C ^ \?\\]]]	D-ok?DQQ&-k.BCC D D D  q8qqq  !    7{OUYZZ&-k.BCCD /7K*+' K(K
 OOK((( #bb9KR)P)P)V)V)X)Xbbb J OO(!!=(3.8.2.C) ) $($ $ $	  $ $.t}/D"EKOO 2-,d.J.J;.W.W *#&  ( 4>:::#~>),7J'1K$%5j%AK	"%5f%=K	"&+J&H&HK
#t~}55 J/3~/IO,
 $&K  ?J'(:; 	X&&&##%%%%%s   ,&V 
W1A
W,,W1c                     t                                                       | j        rF	 ddl}dS # t          $ r2 | j                            d           t          j        d           Y dS w xY wdS )zMSubclass because the ExtensionApp.initialize() method does not take argumentsr   Na  Jupyter Lab cannot start, because `jupyter_collaboration` was configured but cannot be `import`ed.

To fix this, either:

1) install the extension `jupyter-collaboration`; for example: `python -m pip install jupyter-collaboration`

2) disable collaboration; for example, remove the `--collaborative` flag from the commandline.  To see more ways to adjust the collaborative behavior, see https://jupyterlab-realtime-collaboration.readthedocs.io/en/latest/configuration.html .
r   )	r   
initializer   jupyter_collaborationImportErrorrR   criticalrG  r   )rY   argvre  r   s      r[   rd  zLabApp.initialize  s     	,,,,,,   !!
 
 
 	 	s   0 8A,+A,r   )=r]   r^   r_   r<   r;   app_nameload_other_extensionsr`   examplesrb   r   r   r>   r   rf   rx   r   r   r   r   default_urlr   r   rL   r"   user_settings_dirr#   r~   r   r   r   r   rB  r%   r   r@   r   r   r   r)  rQ  r   r,   r-   rS  r   r   r   r   r   r   r   r   r   r   r   r   r   rV  rd  r   r   s   @r[   r   r     s       GDH !K*H GNN^	
  
 *GIE	K&'%E+
 
J%&<E*
 
$d+,GE
  '413QRE'N	OT*+4E/
 
+T23J&E
!"
 
,d34/'E
"#
 
OT*+	ME/ 
L$'(BE, {6AACCAFG{6AACCAFGZ3>>@@CDj4??AA!DE%'B'M'M'O'OPQ'RS&(C(N(N(P(PQR(ST#^%?%J%J%L%LQ%OP K '&4]^^^K!'U   !N  
 gd4.\]]]G3U   W//11$EcdddN	 	 	I t  H "T>    C   Dt*RSSSETV  N Dt2^___M DY     J DM	 	 	M w6 i	  H tV   #d$ K	   WY   W  / / ! / W]   W]   W]. . . W_- - - W\- - -
 W\- - - W !!> > "!> W[  
,7 ,7 ,7\C C C C CB& B& B& B& B&H         re   r   __main__)m__doc__rL  r:  r   rG  jupyter_core.applicationr   r   r   r   jupyter_server._versionr   r<  jupyter_server.serverappr   jupyter_server.utilsr	   r   jupyterlab_serverr
   r   r   r   r   jupyterlab_server.configr   notebook_shim.shimr   	traitletsr   r   r   r   r   _versionr   commandsr   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   
coreconfigr'   debuglogr(   rg   r)   rC  extensions.managerr*   extensions.readonlyr+   handlers.announcementsr,   r-   r.   r/   r0   r1   handlers.build_handlerr2   r3   r4   handlers.error_handlerr5   "handlers.extension_manager_handlerr6   r7   handlers.plugin_manager_handlerr8   r9   r@  r>  dictra   rc   r<   r   rX   r>   rt   rv   ru   rp   rf   rx   r}   r   r   r   r   rb   r   r   launch_instancemainlaunch_new_instancer]   rd   re   r[   <module>r     s   ) )
      				 



 R R R R R R R R R R R R I I I I I I * * * * * * 7 7 7 7 7 7              < ; ; ; ; ; 6 6 6 6 6 6 < < < < < < < < < < < < < < ! ! ! ! ! !                                 " # " " " " " ' ' ' ' ' ' 0 0 0 0 0 0 - - - - - - 9 9 9 9 9 9                F E E E E E E E E E 0 0 0 0 0 0 Y Y Y Y Y Y Y Y P P P P P P P P	 \""0i *f 0i 4k 2j "D d: [$'( K 
 Z'()M 
 _d+,0 O  o
k99k999G# LA A A A A*/ A A AH \""0i dd:\4()8,88L 
 Z&'$J 
 Xt$%"H 
 UDM"GGGE        '' '' '' '' ''* '' '' ''T? ? ? ? ? ? ? ?*$ $ $ $ $. $ $ $$ $ $ $ $. $ $ $$ $ $ $ $* $ $ $    j   @"- "- "- "- "-[ "- "- "-J $|

  0&(*,&"
 
  N N N N N$l N N Nj $3 3zDFFFFF re   