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.

Extension not loading in jupyterlab 3

See original GitHub issue

In Jupyterlab 3.0.4 with Jupytext 1.9.1 on Ubuntu 20.04.1 LTS the filemanager does not appear to be loading. Specifically the log line that says the jupytext file manager loads in not showing up. I can use the console commands to pair a notebook but no additional files are saved. The GUI also does not show previously paired files as notebooks either.

I can use the most recent version of jupytext with jupyter notebook just fine. I can also downgrade to lab 2.2 and the old plugin and it works fine as well.

I have tried all variations of enabling and configuration files listed in the install documentation and nothing has worked. I am fairly sure there is a bug here but there’s no error message so it is a bit hard to say.

Let me know if there’s any more information I can provide.

Here’s a little bit of additional debug info:

g@g-ThinkPad-P51:~$ jupyter labextension list
JupyterLab v3.0.4
/home/g/.local/share/jupyter/labextensions
        jupyterlab-jupytext v1.3.0 enabled OK (python, jupytext)
        @jupyter-widgets/jupyterlab-manager v3.0.0 enabled OK (python, jupyterlab_widgets)

Other labextensions (built into JupyterLab)
   app dir: /home/g/.local/share/jupyter/lab

Contents of .jupyter/jupyter_notebook_config.json:

{
  "NotebookApp": {
    "nbserver_extensions": {
      "jupytext": true
    }
  }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:27 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
gstorercommented, Dec 2, 2021

The issue is solved for me with jupyter_core==4.9.1

2reactions
mwoutscommented, Oct 5, 2021

@sbrunk , I confirm that I am able to reproduce the issue and your resolution.

On Ubuntu 20.04, I have run

sudo apt-get install pip
pip install jupytext
pip install jupyter
export PATH=$PATH:~/.local/bin

With the above I do get the configuration files for Jupytext in ~/.local/etc/jupyter

$ tree ~/.local/etc/jupyter/
/home/marc/.local/etc/jupyter/
├── jupyter_notebook_config.d
│   ├── jupyterlab.json
│   └── jupytext.json
├── jupyter_server_config.d
│   ├── jupyterlab.json
│   ├── jupytext.json
│   └── nbclassic.json
└── nbconfig
    └── notebook.d
        └── jupytext.json

4 directories, 6 files

but as you said, they are not effective because that path is not listed in jupyter --paths:

$ jupyter --paths
config:
    /home/marc/.jupyter
    /usr/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter
data:
    /home/marc/.local/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
runtime:
    /home/marc/.local/share/jupyter/runtime

The workaround cp -r $HOME/.local/etc/jupyter/* $HOME/.jupyter/ does work.

Another possibility seems to be

export JUPYTER_CONFIG_PATH="${HOME}/.local/etc/jupyter"

I think I’ll open an issue on the Jupyter project to see what they recommend (I’ll also ask if ${HOME}/.local/etc/jupyter is a standard config location, or not)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extensions — JupyterLab 3.6.0a5 documentation
An extension contains one or more plugins that extend JupyterLab. There are two types of JupyterLab extensions: a source extension (which requires a...
Read more >
Failed to load the jupyterlab-git server extension on Ubuntu ...
To confirm that the server extension is installed, run: jupyter server extension list.
Read more >
Enabling Jupyter Notebook extensions - The Littlest JupyterHub
However, this interface only makes the extension available to the user, not all users on a hub. Instead, to make contributed extensions available...
Read more >
jupyterlab/jupyterlab - Gitter
They are not going to update extensions inside the docker image so I'm not sure if retrieving the ... What will installing extensions...
Read more >
HOWTO: Use Extensions with JupyterLab
If home directory is NOT set, try removing the corresonding directory, e.g. if you are using JupyterLab 2.2, remove the entire directory $HOME/.jupyter/lab/2.2 ......
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