jupyterlab-desktop icon indicating copy to clipboard operation
jupyterlab-desktop copied to clipboard

After upgrading JupyterLab using pip, I started jupyter-lab from the windows command and got an error.

Open acuenya opened this issue 2 years ago • 5 comments

I updated JupyterLab with pip

pip install JupyterLab --upgrade

after that I tried to start from Windows PS command as always do: jupyter-lab and got the following error

C:\Users\cueny\AppData\Local\Programs\Python\Python39\lib\site-packages\traitlets\traitlets.py:1872: FutureWarning: ServerApp.preferred_dir config is deprecated in jupyter-server 2.0. Use FileContentsManager.preferred_dir instead return self._get_trait_default_generator(names[0])(self) [C 2023-02-13 11:24:56.237 ServerApp] Bad config encountered during initialization: is outside root contents directory

acuenya avatar Feb 13 '23 14:02 acuenya

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

welcome[bot] avatar Feb 13 '23 14:02 welcome[bot]

Did you uninstall the old version first?

If yes, did you run your command line in administrator mode?

It looks like the problem is with the jupyter server. So I would highly recommend updating the server. which you can also do when you remove the current instillation and re-install it.

deepspacewrong avatar Feb 15 '23 03:02 deepspacewrong

First time I installed JupyterLab in upgrade mode with pip: pip install JupyterLab --upgrade

I didn't do it but today I uninstalled JupyterLab, then I installed again as administrator and tried to run it as admin as well getting almost the same:

C:\WINDOWS\system32>jupyter-lab [I 2023-02-15 09:53:36.427 ServerApp] Package jupyterlab took 0.0001s to import [I 2023-02-15 09:53:36.440 ServerApp] Package jupyter_server_fileid took 0.0107s to import [I 2023-02-15 09:53:36.484 ServerApp] Package jupyter_server_terminals took 0.0425s to import [I 2023-02-15 09:53:36.714 ServerApp] Package jupyter_server_ydoc took 0.2295s to import [I 2023-02-15 09:53:36.716 ServerApp] Package nbclassic took 0.0001s to import [W 2023-02-15 09:53:36.725 ServerApp] A _jupyter_server_extension_points function was not found in nbclassic. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. [I 2023-02-15 09:53:36.727 ServerApp] Package notebook_shim took 0.0001s to import [W 2023-02-15 09:53:36.728 ServerApp] A _jupyter_server_extension_points function was not found in notebook_shim. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. [I 2023-02-15 09:53:36.748 ServerApp] jupyter_server_fileid | extension was successfully linked. [I 2023-02-15 09:53:36.764 ServerApp] jupyter_server_terminals | extension was successfully linked. [I 2023-02-15 09:53:36.778 ServerApp] jupyter_server_ydoc | extension was successfully linked. [W 2023-02-15 09:53:36.803 ServerApp] notebook_dir is deprecated, use root_dir [I 2023-02-15 09:53:36.804 ServerApp] jupyterlab | extension was successfully linked. [I 2023-02-15 09:53:36.821 ServerApp] nbclassic | extension was successfully linked. [I 2023-02-15 09:53:37.893 ServerApp] notebook_shim | extension was successfully linked. C:\Users\cueny\AppData\Local\Programs\Python\Python39\lib\site-packages\traitlets\traitlets.py:1872: FutureWarning: ServerApp.preferred_dir config is deprecated in jupyter-server 2.0. Use FileContentsManager.preferred_dir instead return self._get_trait_default_generator(names[0])(self) [C 2023-02-15 09:53:37.901 ServerApp] Bad config encountered during initialization: is outside root contents directory

versions I have installed of several jupyter apps.

jupyter 1.0.0 jupyter-cache 0.5.0 jupyter_client 7.4.9 jupyter-console 6.4.4 jupyter_core 5.2.0 jupyter-events 0.5.0 jupyter-server 1.23.5 jupyter_server_fileid 0.6.0 jupyter_server_ydoc 0.6.1 jupyter-ydoc 0.2.2 jupyterlab 3.6.1 jupyterlab-pygments 0.2.2 jupyterlab_server 2.19.0 jupyterlab-widgets 3.0.2

acuenya avatar Feb 15 '23 12:02 acuenya

@acuenya are you trying to upgrade jupyterlab Python package or the JupyterLab Desktop application? If you want to upgrade the desktop application, you can uninstall using these Windows uninstall instructions and then install the new version using the Windows installer. App UI will prompt if you are using a custom but incompatible Python environment. Desktop App bundles a Python environment installer and will install the Python packages you need to get started with one click.

mbektas avatar Feb 15 '23 15:02 mbektas

Triage notes: This can be improved in documentation for users who are upgrading.

JasonWeill avatar Feb 16 '23 18:02 JasonWeill