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 remove widgets from a notebook dashboard?

fijoy
Contributor

I'm creating a dashboard from the output of a notebook cell, but noticing that the dashboard displays the the widgets of the notebook in addition to the cell output. How can I remove the widgets from the dashboard?

6 REPLIES 6

karthik_p
Esteemed Contributor

@Fijoy Vadakkumpadanโ€‹ you can use dbutils.widget.remove("widget-name") to reove mwidget

Yes, but that removes the widget from the notebook also. What I want to do is remove it from dashboard but not the notebook whose cell output was added to the dashboard.

The dashboard will be shared with an audience that does not understand all the widgets in my notebook, so I don't want the widgets to be displayed in the dash.

StephanieRivera
Valued Contributor II
Valued Contributor II

I think this is an issue for the engineering team to consider. I'll put in a request.

dbutils.widgets.remove("widget-name")  (don't forget the s in widgets)

Anonymous
Not applicable

Hi @Fijoy Vadakkumpadanโ€‹ 

Thank you for posting your question in our community! We are happy to assist you.

To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?

This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance! 

Nico2
New Contributor II

Did you find any solution for this? I am facing a similar issue wanting to create multiple dashboads on a single notebook where not all widgets are relevant for both dashboards. this makes it difficult for users to understand the dahsboard.