jupyterlab / jupyterlab-git

A Git extension for JupyterLab
BSD 3-Clause "New" or "Revised" License
1.44k stars 312 forks source link

The versions of the JupyterLab Git server frontend and backend do not match. #908

Closed kurucan closed 3 years ago

kurucan commented 3 years ago

I have successfully installed the git extension on the lab and I see the extension as enabled, but git button is missing in the menu.

My enviroment is lab on TLJH Jupyter Hub Server, is this plugin working over hub? Could that be the issue?

welcome[bot] commented 3 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
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! :wave:
Welcome to the Jupyter community! :tada:

telamonian commented 3 years ago

In whatever env your actual jupyter_server instance (ie the thing that Hub spawns for you) is running, shut down any running jupyter servers and then do the following command:

pip install --upgrade jupyterlab jupyterlab-git

If you're still on jlab 2.x, you might also need to then run:

jupyter lab build

Then start your jupyter server back up (via Hub in your case), and everything should be good

jmbenedetto commented 3 years ago

Hi.

I have the same issue, but I'm in Jupyterlab 3. The versions on both server and front are aligned. I created the evnironment using conda. It is a new environment. No version was defined for any of the packages within the conda yml env file.

Could you please advise?

See bellow the versions:

jupyter_env) jmbenedetto@jmb-latitude:~$ jupyter serverextension list
Config option `kernel_spec_manager_class` not recognized by `ListServerExtensionsApp`.
config dir: /opt/miniconda3/envs/jupyter_env/etc/jupyter
    jupyter_lsp  enabled 
    - Validating...
/opt/miniconda3/envs/jupyter_env/lib/python3.9/site-packages/jupyter_server/transutils.py:13: FutureWarning: The alias `_()` will be deprecated. Use `_i18n()` instead.
  warnings.warn(warn_msg, FutureWarning)
      jupyter_lsp 1.1.4 OK
    jupyterlab  enabled 
    - Validating...
/opt/miniconda3/envs/jupyter_env/lib/python3.9/site-packages/jupyter_server/transutils.py:13: FutureWarning: The alias `_()` will be deprecated. Use `_i18n()` instead.
  warnings.warn(warn_msg, FutureWarning)
      jupyterlab 3.0.12 OK
    jupyterlab_code_formatter  enabled 
    - Validating...
      jupyterlab_code_formatter 1.4.10 OK
    jupyterlab_git  enabled 
    - Validating...
      jupyterlab_git 0.22.0 OK
    nbdime  enabled 
    - Validating...
      nbdime 2.1.0 OK
(jupyter_env) jmbenedetto@jmb-latitude:~$ jupyter labextension list
/opt/miniconda3/envs/jupyter_env/lib/python3.9/site-packages/jupyter_server/transutils.py:13: FutureWarning: The alias `_()` will be deprecated. Use `_i18n()` instead.
  warnings.warn(warn_msg, FutureWarning)
Config option `kernel_spec_manager_class` not recognized by `ListLabExtensionsApp`.
[W 2021-04-05 00:31:25.046 LabApp] Config option `kernel_spec_manager_class` not recognized by `LabApp`.
JupyterLab v3.0.12
/opt/miniconda3/envs/jupyter_env/share/jupyter/labextensions
        @ryantam626/jupyterlab_code_formatter v1.4.10 enabled OK (python, jupyterlab-code-formatter)

Other labextensions (built into JupyterLab)
   app dir: /opt/miniconda3/envs/jupyter_env/share/jupyter/lab
        @jupyterlab/git v0.22.0 enabled  X
        nbdime-jupyterlab v2.0.1 enabled  X

   The following extension are outdated:
        @jupyterlab/git
        nbdime-jupyterlab

   Consider running "jupyter labextension update --all" to check for updates.
fcollonval commented 3 years ago

JupyterLab 3 is not yet supported officially - you can try the beta version for now: https://github.com/jupyterlab/jupyterlab-git/issues/779#issue-705909428