Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

codefolding on google colab

I've tried enabling code folding on google colab with

!jupyter nbextension enable codefolding/main

based on this answer and using the command line found here

However the response on colab is

Enabling notebook extension codefolding/main...
      - Validating: problems found:
        - require?  X codefolding/main

Is it possible to do codefolding on colab?

like image 629
Vlad Avatar asked Nov 26 '22 00:11

Vlad


1 Answers

It seems you didn't perform the second step of the installation process after !pip install jupyter_contrib_nbextensions. Install javascript and css files also.

!jupyter contrib nbextension install --user

This step copies the nbextensions' javascript and css files into the jupyter server's search directory, and edits some jupyter config files.

like image 108
kHarshit Avatar answered Dec 06 '22 18:12

kHarshit