how can I export dashboard to HTML?

dbickshammer
New Contributor II

Now I can successfully export notebook view to HTML using job api (run export).

However how can I export dashboard view which is generated by the tab of 'show in dashboard view' to HTML? the tab is on the right top of the corner in the cell.

I want an automating process to do it.

Hubert-Dudek
Databricks MVP

Use API jobs export (so easiest put on schedule get latest run id and export it)

https://docs.databricks.com/dev-tools/api/latest/jobs.html#runs-export

Request structure

run_id

views_to_export (CODE, DASHBOARDS, or ALL). Defaults to CODE.


My blog: https://databrickster.medium.com/

View solution in original post

kyxam
New Contributor II

Hi @Retired_mod ! I am wondering how to export a dashboard tab from a notebook and I found this old topic.

I am not able to find the "views_to_export" parameter that @Hubert-Dudek refers to in docs. May the docs have been updated and now the parameter is called another way?

Thanks in advance