Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

An error occurred installing @jupyterlab/toc-extension. #156

Open
BenchHPZ opened this issue Oct 29, 2020 · 19 comments
Open

An error occurred installing @jupyterlab/toc-extension. #156

BenchHPZ opened this issue Oct 29, 2020 · 19 comments

Comments

@BenchHPZ
Copy link

I've just change from jupyter notebook to jupyter lab. When I try to install the toc extension, i got

Extension Installation Error

An error occurred installing @jupyterlab/toc-extension.

Error message:

No version of @jupyterlab/toc-extension could be found that is compatible with the current version of JupyterLab. However, it seems to support a new version of JupyterLab. Consider upgrading JupyterLab.

Conflicting Dependencies:
JupyterLab              Extension      Package
>=2.2.6 <2.3.0          >=3.0.0-beta.8 <4.0.0@jupyterlab/application
>=2.2.4 <2.3.0          >=3.0.0-beta.8 <4.0.0@jupyterlab/docmanager
>=2.2.4 <2.3.0          >=3.0.0-beta.8 <4.0.0@jupyterlab/fileeditor
>=2.2.7 <2.3.0          >=3.0.0-beta.8 <4.0.0@jupyterlab/notebook
>=2.2.4 <2.3.0          >=3.0.0-beta.8 <4.0.0@jupyterlab/rendermime

When I search for the instaleld versions in my device it says that

$ jupyter --version
jupyter core     : 4.6.3
jupyter-notebook : 6.1.4
qtconsole        : 4.7.7
ipython          : 7.18.1
ipykernel        : 5.3.4
jupyter client   : 6.1.7
jupyter lab      : 2.2.9
nbconvert        : 6.0.7
ipywidgets       : 7.5.1
nbformat         : 5.0.8
traitlets        : 5.0.5

which it seems to be compatible.

@KennyNg-19
Copy link

same here

@lresende
Copy link
Member

If you install JupyterLab 3.0, TOC is pre-installed as it moved to be a core-extension.

@numeric-lee
Copy link

numeric-lee commented Apr 20, 2021

@jasongrout similar problem, jupyterlab 1.23.

when I install

Extension Installation Error

An error occurred installing @jupyterlab/toc-extension.
Error message:

No version of @jupyterlab/toc-extension could be found that is compatible with the current version of JupyterLab. However, it seems to support a new version of JupyterLab. Consider upgrading JupyterLab.

Conflicting Dependencies:
JupyterLab              Extension      Package
>=1.2.1 <1.3.0          >=3.0.9 <4.0.0 @jupyterlab/application
>=1.2.1 <1.3.0          >=3.0.9 <4.0.0 @jupyterlab/docmanager
>=1.2.1 <1.3.0          >=3.0.9 <4.0.0 @jupyterlab/fileeditor
>=1.2.2 <1.3.0          >=3.0.9 <4.0.0 @jupyterlab/notebook
>=1.2.1 <1.3.0          >=3.0.8 <4.0.0 @jupyterlab/rendermime

conda update -c conda-forge jupyterlab

fails

Solving environment: | The environment is inconsistent, please check the package plan carefully The following packages are causing the inconsistency: - conda-forge/noarch::jupyter_contrib_core==0.3.3=py_2 - conda-forge/linux-64::ipykernel==5.1.3=py36h5ca1d4c_0 - conda-forge/noarch::qtconsole==4.6.0=py_0 - conda-forge/noarch::jupyter==1.0.0=py_2 - conda-forge/linux-64::notebook==6.0.1=py36_0 - conda-forge/noarch::geoviews-core==1.6.6=py_0 - conda-forge/noarch::jupyterlab_server==1.0.6=py_0 - conda-forge/noarch::jupyter_console==6.0.0=py_0 - conda-forge/noarch::jupyterlab==1.2.3=py_0 - conda-forge/noarch::geoviews==1.6.6=py_0 - conda-forge/linux-64::jupyter_latex_envs==1.4.4=py36_1000 - conda-forge/noarch::ipywidgets==7.5.1=py_0 - conda-forge/noarch::holoviews==1.12.7=py_0 - conda-forge/linux-64::widgetsnbextension==3.5.1=py36_0 - conda-forge/linux-64::jupyter_highlight_selected_word==0.2.0=py36_1000 - conda-forge/noarch::nbdime==2.0.0=py_1 \

also tried
jupyter labextension install jupyterlab-toc

extension manger is enabled and I have other extensions installed

@fcollonval
Copy link
Member

fcollonval commented Apr 21, 2021

@numeric-lee for JupyterLab 1 and 2, the correct extension name is

jupyter labextension install @jupyterlab/toc

@numeric-lee
Copy link

numeric-lee commented Apr 21, 2021

@fcollonval
Thanks so much. That solution unfortunately doesnt work, at least for me
Any other suggestions?

$ jupyter labextension install @jupyterlab/toc

Errored, use --debug for full output:
ValueError: Please install nodejs 5+ and npm before continuing. nodejs may be installed using conda or directly from the nodejs website.
le@b4d54aa411df �data

cannot install the dependencies

$ conda install -c conda-forge nodejs
Collecting package metadata: done
Solving environment: | Killed
le@b4d54aa411df �data

From the jupyterlab UI, when I type your suggested extension to the searchbox, it finds only toc-extension
image

installing that from the UI fails with the same error as from the command line
image

@numeric-lee
Copy link

I was at least able to install the @aquirdturtle/collapsible_headings extension which has slightly similar funcitonality.

@fcollonval
Copy link
Member

fcollonval commented Apr 28, 2021

$ conda install -c conda-forge nodejs
Collecting package metadata: done
Solving environment: | Killed

You need to figure out why this is not working because without nodejs, you won't be able to install JupyterLab extensions for version prior to v3.

I was at least able to install the @aquirdturtle/collapsible_headings

This is suprising because, you could only install it if nodejs was installed.

You could try forcing the extension version; for JupyterLab v1, the latest compatible version is

jupyter labextension install "@jupyterlab/[email protected]"

@jupyterlab/toc-extension is only available on JupyterLab v3

@numeric-lee
Copy link

image

@telamonian
Copy link
Member

@numeric-lee Your environment is borked, you need to fix that first. Try this suggestion from SO to get a recent-enough version of nodejs installed:

conda install nodejs -c conda-forge --repodata-fn=repodata.json --debug

If that doesn't work, your only option may be to move on and start a new conda env.

Once you have node installed, my strong recommendation would be to first upgrade to the latest 3.x jupyterlab. jlab 1.2.3 is practically ancient at this point; there have been literally thousands of fixes and improvements made since v1.2.3 was released 2+ years ago. It also has the TOC builtin.

Still, if you really want to, once you have node installed, the:

jupyter labextension install @jupyterlab/toc

command should then run correctly.

@sushmit86
Copy link

Any updates on this one? I am also getting the same error

@fcollonval
Copy link
Member

Any updates on this one? I am also getting the same error

@sushmit86 if you are using JupyterLab 3, the extension is built-in and don't need to be installed.

@numeric-lee
Copy link

numeric-lee commented Jul 23, 2021 via email

@sushmit86
Copy link

@fcollonval I am on Jupyter lab3

@SylvainCorlay
Copy link
Member

@sushmit86 you don't need this extension in lab 3.0 which already includes the jupyterlab-toc feature.

Jupyterlab-toc is for jupyterlab 2.0 only and the repository has been archived.

@sushmit86
Copy link

@SylvainCorlay and @fcollonval Thanks for the help, I figured out it was an environment issue.

@HalleypC
Copy link

I had this issue as well and realized from the 2021 comments that it's already build in to lab 3. Unfortunately when I click install nothing happens. Not sure what to do at this point?
image

@krassowski
Copy link
Member

@HalleypC you don't need to click install, because as you mention it is already build in. The sidebar tab above the extensions manager includes the TOC panel; for overview of functions see the documentation: https://jupyterlab.readthedocs.io/en/stable/user/toc.html

@HalleypC
Copy link

wow ha, can you tell how new I am? Thank you @krassowski !

@jupyterlab jupyterlab locked as resolved and limited conversation to collaborators Jul 25, 2022
@jupyterlab jupyterlab unlocked this conversation Jul 25, 2022
@fcollonval
Copy link
Member

Locking as it is now part of JupyterLab (since v3) and users are very likely to use it.

@jupyterlab jupyterlab locked as resolved and limited conversation to collaborators Jul 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants