How do I reference a cell in a IPython notebook markdown?
I know how to make a reference to an external link. But is there a way to assign an ID to a cell and then refer to the cell in the markdown?
Yes, there's way to do just that in IPython.
First, define the destination in the cell you want to link with a html
anchor tag and give it an Id
. For example:
<a id='another_cell'></a>
Note - When you run the above cell in markdown, it will become invisible. You can add some text above the anchor to identify the cell.
Second, create the internal hyperlink to the destination created above using Markdown syntax in another cell and run it:
[Another Cell](#another_cell)
Now, clicking on link should take you to the destination.