user8270077
user8270077

Reputation: 5071

Activating jupyter_contrib_nbextensions in JupyterLab

I have installed jupyter_contrib_nbextensions using conda, i.e.: conda install -c conda-forge jupyter_nbextensions_configurator

This is what I see:

enter image description here

I don't see extensions I expected to see like toc2 extension.

In fact, I am trying to configure my JupyterLab Notebook to provide the following functionalities:

enter image description here

When I select the functionalities of interest the button "enable" is dimmed.

enter image description here

This is how my JupterLab appears:

enter image description here

What I am missing?

Upvotes: 3

Views: 5091

Answers (3)

Andre9
Andre9

Reputation: 63

Instead of using nbextensions you can use 2 @jupterlab extensions that will have the result that you want. To install the jupyterlab extensions first you will need to Enable Extensions Manager by checking this option on the settings menu.

Then, you need to click on the Extension Manager icon in the left side (as indicated on the figure bellow), agree with the disclaimer and then clikck in the install link after the extension name.

The arrows indicate the steps

The extensions that make what you need are:

  • @jupyterlab/toc-extension
  • @aquirdturtle/collapsible_headings

Upvotes: 1

cwalvoort
cwalvoort

Reputation: 1967

Just in case someone else is looking for this, the nbextensions won't work in JupyterLab. From jupyter-contrib-nbextensions documentation as of 8/31/2021:

Most nbextensions here should work fine with jupyterhub (because jupyterhub spawns regular notebook servers for each individual user), but won’t work with jupyterlab (because the jupyterlab javascript framework is different to notebook’s, and still rapidly changing under active development).

There are extensions available within JupyterLab, and of course, a framework for creating your own extensions.

Upvotes: 8

bug_spray
bug_spray

Reputation: 1516

You have to check the boxes, (or select them and click Enable).

updated_image

Upvotes: 0

Related Questions