cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

How to pragmatically "clear state & cell outputs" in a Databricks notebook?

arda_123
New Contributor III

I am building a dashboard and at the end of I am using a widget to reset it. At that time I want all the outputs to be removed. Is there a way to do this in python?

1 ACCEPTED SOLUTION

Accepted Solutions

Hubert-Dudek
Esteemed Contributor III

View solution in original post

3 REPLIES 3

Hubert-Dudek
Esteemed Contributor III

Thanks @Hubert Dudek​ 

I need to create the dashboard in Notebooks the requirement is as such. Is it to possible to "clear state and cell outputs" using python code in the notebook itself? or even "detach and re-attach cluster" from the notebook using python

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.