Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter Lab in Anaconda not working :Error executing Jupyter command 'lab': [WinError 5] Access is denied

this is the only error i getI have installed jupyter lab in anaconda using "conda install -c conda-forge jupyterlab" in the anaconda command prompt, but when i try to launch jupyter lab the error mentioned above comes up.

P.S I am able to open Jupyter Notebook through anaconda.

like image 374
kanishk goyal Avatar asked Oct 28 '25 10:10

kanishk goyal


2 Answers

With Anaconda Navigator closed, right click on Anaconda Navigator and click "Run As Administrator"

Then, when you launch JupyterLab it will work.

like image 80
Andrew Avatar answered Oct 30 '25 00:10

Andrew


If you don't have full admin permissions on your machine, one workaround would be to replicate the jupyter-notebook shortcut, but point it to jupyter-lab instead.

To do that:

  • Find the jupyter-notebook shortcut (on Win10 in C:\Users\<yourusername>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit))
  • Make a copy of the Jupyter Notebook shortcut, rename it to Jupyter Lab
  • Right click and open Properties and on the last line where it says C:\ProgramData\Anaconda3\Scripts\jupyter-notebook-script.py "%USERPROFILE%/" change jupyter-notebook-script.py to jupyter-lab-script.py.
like image 43
gherka Avatar answered Oct 30 '25 00:10

gherka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!