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

How do I clear all output results in a notebook?

KendraVant
New Contributor II

I'm building notebooks for tutorial sessions and I want to clear all the output results from the notebook before distributing it to the participants.

This functionality exists in Juypter but I can't find it in Databricks. Any pointers?

5 REPLIES 5

Arun_KumarPT
New Contributor II

Hi Kendrav,

I used to export the notebook after my work. The exported notebooks will not have any output messages. You can distribute the exported notebooks.

Hi Arunkumar. Unfortunately that doesn't seem to work for me. Did you do anything special before you exported? I still find all the results display when I import a notebook from someone else.

Arun_KumarPT
New Contributor II

's3Connection' is a scala notebook.

For export,

0693f000007OrmiAAC

For import,

0693f000007OrmjAAC

Thanks Arumkumar. Hopefully simpler functionality is on it's way.

schnee1
New Contributor III

I recently watched a webinar in which @rxin clear the results from the Javascript Console (in Chrome)

View -> Developer -> JavaScript Console

and then type "notebook.clearResults()"

The webinar was about Spark 2.0, which was great, but that little bit of JavaScript was a gem. Databricks should expose that in the UI somewhere.

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.