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 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

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