Databricks link to cells using markdown

Viewed 112

From Databricks documentation, I understand that we can link to other notebooks from a notebook as below:

%md
<a href="$./myNotebook">Link to notebook in same folder as current notebook</a>
<a href="$../myFolder">Link to folder in parent folder of current notebook</a>
<a href="$./myFolder2/myNotebook2">Link to nested notebook</a>

How can I link to a cell in the same notebook?

1 Answers

When in cell, note the URL - it has the form like:

https://<url>/?o=147804121238830#notebook/128991821126784/command/252704521328130
                                                                  ^^^^^^^^^^^^^^^
                                                                  this is cell id

When you change the cell that id will change correspondingly. So you can link to a cell using this. Just note that this is not an anchor - when it opens, it will do so in new tab.

Related