Ask Your Question
1

Navigation inside a notebook

asked 2020-05-18 11:31:44 +0100

Cyrille gravatar image

Is there a way inside a notebook to make reference to a graphic or a calculation to navigate later to it and back.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2020-05-18 13:43:30 +0100

rburing gravatar image

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.

edit flag offensive delete link more

Comments

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.

Cyrille gravatar imageCyrille ( 2020-05-18 19:22:42 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-05-18 11:31:44 +0100

Seen: 321 times

Last updated: May 18 '20