2

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?

user8270077
  • 4,621
  • 17
  • 75
  • 140

3 Answers3

5

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.

cwalvoort
  • 1,851
  • 1
  • 18
  • 19
1

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
Andre9
  • 43
  • 5
0

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

updated_image

bug_spray
  • 1,445
  • 1
  • 9
  • 23
  • Please see my edited question. The button 'enable' appears dimmed and still I don't see these functionalities activated in my JupyterLab notebook. – user8270077 May 18 '20 at 08:27
  • `Enable` is dimmed because when you check the box it automatically becomes enabled. You may have to restart your jupyter server for the changes to take effect. – bug_spray May 18 '20 at 08:50
  • Thank you, I did restart it though. – user8270077 May 18 '20 at 10:36