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.

Server extension doesn't seem to be loading (jlab 3.0)

See original GitHub issue

Checklist prior to opening an issue

  • I have followed fully the installation steps laid out in the documentation site.
  • I have restarted jupyterlab.
  • I have read the FAQ section in the documentation site.

Describe the bug The ser extension doesn’t seem to be loading in jupyter lab 3.0.

Diagnostic commands When I open jupyter lab in the browser I get the error message “Unable to find server plugin version, this should be impossible,open a GitHub issue if you cannot figure this issue out yourself.” In the terminal I see the following lines regarding the extension (with --debug):

[D 2021-01-02 14:47:45.920 ServerApp] Path @ryantam626/jupyterlab_code_formatter/static/remoteEntry.5c93eb886a3b8e74175b.js served from /home/darkxhunter/.local/share/jupyter/labextensions/@ryantam626/jupyterlab_code_formatter/static/remoteEntry.5c93eb886a3b8e74175b.js
[D 2021-01-02 14:47:45.921 ServerApp] 200 GET /lab/extensions/@ryantam626/jupyterlab_code_formatter/static/remoteEntry.5c93eb886a3b8e74175b.js (::1) 1.21ms
[D 2021-01-02 14:47:46.329 ServerApp] Path @ryantam626/jupyterlab_code_formatter/static/160.8feff4fb8d6302eb02fa.js served from /home/darkxhunter/.local/share/jupyter/labextensions/@ryantam626/jupyterlab_code_formatter/static/160.8feff4fb8d6302eb02fa.js
[D 2021-01-02 14:47:46.329 ServerApp] 200 GET /lab/extensions/@ryantam626/jupyterlab_code_formatter/static/160.8feff4fb8d6302eb02fa.js (::1) 0.85ms
[W 2021-01-02 14:47:48.916 ServerApp] 404 GET /jupyterlab_code_formatter/version?1609609668137 (::1) 615.31ms referer=http://localhost:8888/lab
  • pip freeze | grep jupyter
jupyter-client==6.1.7
jupyter-console==6.2.0
jupyter-core==4.7.0
jupyter-server==1.1.3
jupyterlab==3.0.0
jupyterlab-code-formatter==1.4.1
jupyterlab-pygments==0.1.2
jupyterlab-server==2.0.0
  • jupyter labextension list
JupyterLab v3.0.0
/home/darkxhunter/.local/share/jupyter/labextensions
        @ryantam626/jupyterlab_code_formatter v1.4.1 enabled OK (python, jupyterlab-code-formatter)
  • jupyter serverextension list
config dir: /home/darkxhunter/.jupyter
    jupyterlab_code_formatter  enabled 
    - Validating...
      X is jupyterlab_code_formatter importable?

Additional context I’m using everything from user directory, not a virtualenv. Python 3.9 in OpenSUSE Tumbleweed. I also completely cleaned the jupyter installation (removing ~/.jupyter, ~/.local/share/jupyter and ~/.local/etc/jupyter, then reinstalling again jupyter and the extension), obtaining the same result.

Any ideas? Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
dialvarezscommented, Jan 6, 2021

I was able to getting it work finally! With jupyterlab 3, the command to enable the extension is

jupyter server extension enable jupyterlab_code_formatter

With the space between “server” and “extension”. Using serverextension enables the extension using the “old” way (creating jupyter_notebook_config.json), with the new one a json file is added to jupyter_server_config.d (link). In my case was neccesary to add the --user option. A tricky one…

Executing jupyter server extension list, the output is

Config dir: /home/darkxhunter/.jupyter
    jupyterlab_code_formatter enabled
    - Validating jupyterlab_code_formatter...
      jupyterlab_code_formatter 1.4.1 OK

Config dir: /usr/etc/jupyter

Config dir: /usr/local/etc/jupyter

And everything is working as expected.

I also noticed in the documentation that in __init__.py the function to make the extension discoverable should be called _jupyter_server_extension_points (link), but it seems to work with _paths for now, so it shouldn’t be a problem, specially if it breaks the instalation in jlab < 3.0.0.

1reaction
okkymabruricommented, Jan 6, 2021

@dialvarezs Thanks jupyter server extension enable jupyterlab_code_formatter --user also work for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extensions — JupyterLab 3.6.0b0 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 jupyterlab-git server extension - Stack Overflow
It seems to have been fixed in master, so should be work fine once the new version for JupyterLab 3.0 gets released in...
Read more >
jupyterlab/jupyterlab - Gitter
Hi ! I created a light and dark themes (source extensions) that use a common css that is provided by a 3rd source...
Read more >
JLab Desktop Support - JLab Computer Center - Jefferson Lab
The IT Division Helpdesk provides support for all Jefferson Lab (JLab) CUE systems. CUE is an acronym for Common User Environment and is...
Read more >
Why Visual Studio Code Live Server Not Working? - YouTube
Live Server extension works fine with most of the machines but some of you might face an issue, it's not working perfectly on...
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