cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
cancel
Showing results for 
Search instead for 
Did you mean: 

Anchor links in notebook markdown

hobrob_ex
New Contributor

Does anyone know if there is a way to get anchor links working in Databricks notebooks so you can jump to sections in the same book without a full page refresh? i.e. something that works like the following html:

<a href="#jump_to_target">Jump</a>

...

<p id="jump_to_target">Databricks for the win</p>

I want to create a table of contents for the notebook but if you use cell URLs from three dots > Copy Link in a markdown link the page refreshes in full. Not very slick.

I've read that some markdown flavours automatically create anchor links for headings which you can refer to with [Link text](#heading-text), but that doesn't seem to work in bricks, neither does trying to force the issue by using an html tag with an id.

1 REPLY 1

iyashk-DB
Databricks Employee
Databricks Employee

@hobrob_ex , yes, this is possible, but not like the HTML way; instead, you will have to use the markdown rendering formats.

Add #Heading 1, #Heading 2.. so on in the (+Text) button of the notebook. Once these headings/ sections that you want are configured, use the Table of Contents button on the left side:

Screenshot 2026-01-21 at 9.35.11 PM.png
This works.