Navigation inside a notebook
Is there a way inside a notebook to make reference to a graphic or a calculation to navigate later to it and back.
Is there a way inside a notebook to make reference to a graphic or a calculation to navigate later to it and back.
You can use Markdown and HTML.
For example, if you add a Markdown cell (Cell → Cell Type → Markdown) then you can add headings
# Chapter 1
Some text.
## Subsection 1.1
Some more text.
which will render approximately like this:
Chapter 1
Some text.
Subsection 1.1
Some more text.
but the Jupyter notebook also adds links which you can see by hovering over the headings.
Then you can link to these headings in a Markdown cell using the link syntax:
See [Subsection 1.1](#Subsection-1.1).
By using HTML you can also link to places which are not headings, e.g. if you make a div
with an id
<div id="Example-1">
<b>Example 1.</b> $3^2 + 4^2 = 5^2$.
</div>
then you can link to it by [Example 1](#Example-1)
in a Markdown cell.
In a sens perfect, but I wonder if this is an uni-direction trick. It works if the reference is in the bottom of what is referenced. Is it true ? After some try it's a bi-directional command.
Asked: 5 years ago
Seen: 372 times
Last updated: May 18 '20