notebook: Does notebook have the function of navigation in a sidebar ?
I usually use notebook to give reports on my experiments. My report is sometimes very long but well structured. The problem is that I have to use mouse wheel to switch between chapters, which is very time consuming.
Is there any way to make a navigation in a sidebar in which each chapter is corresponding to a Heading
in a Markdown
cell ? So I can skip to a chapter quickly.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 14
- Comments: 21 (4 by maintainers)
Thanks @jkokorian for the useful snippet! Instead of running two cells, you can run the following code in a single cell, and that will give you a stationary TOC on the side of the page:
If anyone is interested, I finally re-wrote the code for this sidebar navigation in a way that it is always present in Jupyter Notebook. This is a huge improvement over the snippet I wrote here a couple of years ago - the sidebar is resizable, items get added immediately when created and it fits better inside of the window. Please see: https://github.com/shoval/jupyter-navbar . I would appreciate your comments, bug reports, requests, etc.
@shoval Your navbar it’s really nice. Do you know if it’s possible to have it via conda and/or pip?
@shoval really good work. I like it ~~