Git Product home page Git Product logo

Comments (5)

ian-r-rose avatar ian-r-rose commented on July 16, 2024 1

@mlucool This was an early feature request for this extension (back when it was a lot simpler, I might add :) ), c.f. #15. The idea was to programmatically generate headers, possibly interpolating the contents of some kernel variables.

I'm don't think I agree that it is at odds with the plugin, generating headers with code seems like a reasonable thing to do. I do think we could expose an option so that users can choose whether they want to generate entries from code cell outputs.

from jupyterlab-toc.

ian-r-rose avatar ian-r-rose commented on July 16, 2024

Interesting, thanks for the info @kenjioman.
cc @markellekelly and @zuoyuanh, something to consider in the work you are doing...

from jupyterlab-toc.

mlucool avatar mlucool commented on July 16, 2024

Why would cell output be considered part of the table of contents? Feels somewhat at odds with the plugin

from jupyterlab-toc.

mlucool avatar mlucool commented on July 16, 2024

The linked issue seems to imply one type of cell render (Markdown) and not all HTML should act as a TOC. Could we restrict this further in some way so that all HTML isn't picked up? Given the different usecases, the idea of a setting (per notebook? globally?) is a good option. Would it default on or off?

The collapse cell feature has some bugs with this. Try with this example:
image

from jupyterlab-toc.

mlucool avatar mlucool commented on July 16, 2024

#54 may also be worth thinking about at the same time

from jupyterlab-toc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.