Skip to content

Add outline - mo.outline() #5834

@juanmpga

Description

@juanmpga

Description

In the left-hand side bar there's the option View Outline that shows a nice index which is quite helpful for navigation. The idea is to have something like a mo.outline() or mo.index() that allows to place that same outline in a cell inside the notebook. This would be useful when sharing the notebook as a pdf or html (when the left-hand side bar is no longer available).

Suggested solution

Add mo.outline() or mo.index() with the same output that's currently rendered in View Outline. Ideally the headers would be clickable (redirecting to the relevant section) and in the PDF conversion there would be the page number where the corresponding section begins (but I imagine this can add some complications).

Are you willing to submit a PR?

  • Yes

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions