15

I just downloaded jupyter lab using pip on my macbook. When I run jupyter lab on my terminal, browser opens with the following error:

JupyterLab Error JupyterLab application assets not found in "/opt/homebrew/Cellar/[email protected]/3.10.6_2/Frameworks/Python.framework/Versions/3.10/share/jupyter/lab" Please run jupyter lab build or use a different app directory

I can run jupyter notebook with no problem.

Note: I can use jupyter lab by running jupyter lab --code-mode

4
  • Do you also use pyenv? Commented Sep 22, 2022 at 7:43
  • No, I don't use pyenv, didn't install it. Commented Sep 23, 2022 at 21:27
  • 3
    I had a similar issue. The problem was that jupyter was configured with an non-existent virtual environment. Compare the output of jupyter --paths with the location of your current Python interpreter which python3. You probably see that the paths under "config" differ from the location of your interpreter. Commented Sep 26, 2022 at 13:26
  • I believe that was the reason. Now that I use conda for environment management, I don't have that problem anymore. Both python3 and jupyter paths are in anaconda folder. Thank you for explaning the reason Commented Sep 29, 2022 at 9:33

2 Answers 2

35

This issue can be resolved by manually set the application directory: jupyter lab --app-dir /opt/homebrew/share/jupyter/lab, replace /opt/homebrew with the actual homebrew path.

Encountered this issue when installing jupyterlab with pip3.

Sign up to request clarification or add additional context in comments.

7 Comments

How to permanently fix this? I.e. setting for app-dir
How do I work out what the correct path should be? (I also got this error when installing with pip3).
Here is permanently fixing solution. Runjupyter lab --generate-config. Then config file is created with printing location of the file(eg. Writing default config to: /Users/blabla/.jupyter/jupyter_lab_config.py). Open the config file and modify content into c.LabApp.app_dir = '/opt/homebrew/share/jupyter/lab'. That's all. @LukaBradeško
On Linux/linuxbrew (Homebrew 4.1.16) was jupyter lab --app-dir /home/linuxbrew/.linuxbrew/share/jupyter/lab
I ran jupyter lab build to get the path before writing in the config. Without doing this, extensions were not getting installed. Hope this helps someone in the future to save time.
|
-1

Please run conda install jupyterlab instead. I tried this on with miniforge (https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh) and it worked.

2 Comments

I don't have any expertise here, so I can't speak to why this answer was downvoted, but this was the only thing that fixed it for me, so- thanks!
it fixed it for me also. Unistalled via "pip uninstall jupyterlab" and installed with conda - now it works

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.