cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to include notebook dashboards in repos (github)?

Jan_A
New Contributor III

Goal: I would like to have dashboard in notebooks to be added to repos (github)

When commit and push changes to github, the dashboard part is not included. Is there a way to include the dashboard in the repo?

When later pull data, only notebook code is present the dashboard is missing.

1 ACCEPTED SOLUTION

Accepted Solutions

Hubert-Dudek
Esteemed Contributor III

There is API to get dashboards. So you would need to deploy custom CI/D deployment with step to get dashboard and dashboard elements through API and than save returned json to git. You could also deploy some script to azure funtion or aws lambda to do that.

View solution in original post

3 REPLIES 3

Navya_R
Databricks Employee
Databricks Employee

Hi

There is currently no method to include dashboards/widgets in repos. This is by design since the notebook representation in git is SOURCE which does not preserve widget or dashboard parameters. The same has been outlined here:

https://docs.databricks.com/repos.html#incoming-changes-clear-the-notebook-state

Jan_A
New Contributor III

OK, thanks for you reply 🙂

Hubert-Dudek
Esteemed Contributor III

There is API to get dashboards. So you would need to deploy custom CI/D deployment with step to get dashboard and dashboard elements through API and than save returned json to git. You could also deploy some script to azure funtion or aws lambda to do that.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group