question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jupyter Lab extensions install problem in Ubuntu 16.04

See original GitHub issue

I installed node.js.

In terminal, jupyter labextension install @jupyter-widgets/jupyterlab-manager --debug leads to:

Searching ['/home/simoncor', '/home/simoncor/.jupyter', '/usr/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
Looking for jupyter_config in /etc/jupyter
Looking for jupyter_config in /usr/local/etc/jupyter
Looking for jupyter_config in /usr/etc/jupyter
Looking for jupyter_config in /home/simoncor/.jupyter
Looking for jupyter_config in /home/simoncor
Traceback (most recent call last):

  File "/usr/local/lib/python3.5/dist-packages/jupyterlab/labextensions.py", line 71, in start
    ans = self.run_task()

  File "/usr/local/lib/python3.5/dist-packages/jupyterlab/labextensions.py", line 100, in run_task
    for arg in self.extra_args

  File "/usr/local/lib/python3.5/dist-packages/jupyterlab/labextensions.py", line 100, in <listcomp>
    for arg in self.extra_args

  File "/usr/local/lib/python3.5/dist-packages/jupyterlab/commands.py", line 210, in install_extension
    return handler.install_extension(extension)

  File "/usr/local/lib/python3.5/dist-packages/jupyterlab/commands.py", line 343, in install_extension
    self._ensure_app_dirs()

  File "/usr/local/lib/python3.5/dist-packages/jupyterlab/commands.py", line 995, in _ensure_app_dirs
    os.makedirs(path)

  File "/usr/lib/python3.5/os.py", line 241, in makedirs
    mkdir(name, mode)

PermissionError: [Errno 13] Permission denied: '/usr/local/share/jupyter/lab/extensions'


Errored, use --debug for full output:
PermissionError: [Errno 13] Permission denied: '/usr/local/share/jupyter/lab/extensions'

Very oddly, when I try implementing sudo to give permissions, it says: sudo: jupyter: command not found Yet if I type in jupyter, the command is recognized!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
rcox771commented, Oct 4, 2018

I ran into something similar recently. I just had to chown the directory to reset the permissions.

sudo chown -hR {user} {dir}

0reactions
supercaizehuacommented, Feb 1, 2020

same issues ,sudo chown -hR {user} anaconda3 work

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I return normal sidebar after building Jupyter-lab ...
I'm trying to install TOC extension for Jupyter lab. The issue is the same for for both ways of installation: from command window...
Read more >
Latest JupyterLab topics
Topic Replies Views Activity Mintpy for landslide detection · JupyterLab 0 48 November 26, 2022 Toggle comments shortcut · JupyterLab 0 52 November 23, 2022 Run...
Read more >
HOWTO: Use Extensions with JupyterLab
Manage and install extensions ... If home directory is NOT set, try removing the corresonding directory, e.g. if you are using JupyterLab 2.2,...
Read more >
Install & Run Jupyter Lab on Jetson TK1 as a Remote Machine
If jupyter-lab failed to load jupyterlab-git extension like below, · We need to force reinstall jupyter and jupyer-lab with the following command ...
Read more >
Extensions — JupyterLab 3.6.0b0 documentation
The Extension Manager in JupyterLab and the jupyter labextension install command can install source extension packages from npm. Installing a source extension ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found