Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git extension not showing up when running jupyter server extension list #937

Closed
sarahspak opened this issue May 19, 2021 · 11 comments
Closed
Labels

Comments

@sarahspak
Copy link

Description

I ran pip install jupyterlab-git, and I see the frontend extension , but cannot see the server extension (see screenshots below).

labextension is present
Screen Shot 2021-05-19 at 1 59 01 PM

server extension is missing
Screen Shot 2021-05-19 at 2 00 37 PM

Reproduce

pip install jupyterlab-git
jupyter server extension list

Expected behavior

Expect to see jupyterlab-git server extension

Context

  • Python package version:
pip freeze | grep jupyter
jupyter-client==6.1.12
jupyter-core==4.7.1
jupyter-packaging==0.10.2
jupyter-server==1.7.0
jupyter-server-mathjax==0.2.2
jupyterlab==3.0.16
jupyterlab-git==0.30.1
jupyterlab-pygments==0.1.2
jupyterlab-server==2.5.2
jupyterlab-widgets==1.0.0
  • pip show jupyterlab-git
Name: jupyterlab-git
Version: 0.30.1
Summary: A JupyterLab extension for version control using git
Home-page: https://github.com/jupyterlab/jupyterlab-git.git
Author: Jupyter Development Team
Author-email: None
License: BSD-3-Clause
Location: /Users/spak/.pyenv/versions/3.9.1/envs/jlab3_extension_dev/lib/python3.9/site-packages
Requires: nbformat, jupyter-server, pexpect, nbdime, packaging
Required-by: 
  • Extension version:
        @jupyterlab/git v0.30.1 enabled OK
  • Git version:
git version 2.31.1
  • Operating System and its version:
    Mac OS Catalina 10.15.7 (19H1030)
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Web Browser Output
Paste the output from your browser web console here.
@sarahspak sarahspak added the bug label May 19, 2021
@welcome
Copy link

welcome bot commented May 19, 2021

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@krassowski
Copy link
Member

Looks suspiciously similar to an issue we are having over at https://github.com/krassowski/jupyterlab-lsp/issues/598 - also on Mac.

Could you please try running:

jupyter server extension enable --py jupyterlab-git

or

jupyter server extension enable --sys-prefix --py jupyterlab-git

And see if it shows up on the list afterwards?

@sarahspak
Copy link
Author

@krassowski neither of those commands worked; still seeing the following error message:
X Validation failed: The module 'jupyterlab-git' could not be found. Are you sure the extension is installed?

Screen Shot 2021-05-20 at 11 08 14 AM

@krassowski
Copy link
Member

Sorry, it should be:

jupyter server extension enable --py jupyterlab_git

(underscore not hyphen). Does this one help?

@sarahspak
Copy link
Author

unfortunately not :(

@krassowski
Copy link
Member

Is the message the same or different?

@sarahspak
Copy link
Author

Looks to be the same
Screen Shot 2021-05-20 at 1 56 07 PM

@sarahspak
Copy link
Author

noticed that it's writing the config to /usr/local/Cellar/jupyterlab/3.0.14/libexec/etc/jupyter but I use pyenv (environment is called jlab3_extension_dev. Should it be writing to:
~/.pyenv/versions/jlab3_extension_dev/etc/jupyter instead?

@sarahspak
Copy link
Author

some more digging:
when I run which jupyter, I get

/usr/local/bin/jupyter

but when I run pyenv which jupyter, I get

/Users/spak/.pyenv/versions/jlab3_extension_dev/bin/jupyter

@krassowski
Copy link
Member

That's strange. I also use pyenv but for me it is:

(my-env) $ which jupyter
/home/krassowski/.pyenv/shims/jupyter
(my-env) $ pyenv which jupyter
/home/krassowski/.pyenv/versions/my-env/bin/jupyter

Though I have no idea how things are supposed to work on Mac sorry :(

@sarahspak
Copy link
Author

sarahspak commented May 20, 2021

Ok I think I figured it out - I deleted this directory /usr/local/Cellar/jupyterlab/3.0.14/libexec/etc/jupyter, and now things are working as expected

which jupyter
/Users/spak/.pyenv/shims/jupyter

Many thanks @krassowski , will go ahead and close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants