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.

StephanieAlba
Databricks Employee
Databricks Employee

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.

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