Skip to content

Port to jupyterlab? #6

@lambdamusic

Description

@lambdamusic

Unfortunately this doesn't work out of the box with jupyterlab (see jupyterlab/jupyterlab#1818).

I managed go get the script to load by first loading jquery like this

%%javascript
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = 'https://code.jquery.com/jquery-3.4.1.min.js';
    document.head.appendChild(script);

And then

%%javascript  $.getScript('https://kmahelona.github.io/ipython_notebook_goodies/ipython_notebook_toc.js')

However the TOC is not correct. The markdown headers from all the notebooks I have open (in different tabs) are meshed together.

Haven't had time to debug it properly.. maybe you have some ideas though :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions