cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.