08-21-2015 05:46 PM
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?
07-01-2024 04:19 AM
Yes! Run > Clear > Clear all cell outputs
Fun fact, this feature was made ~10 years ago when we realised all our customer demos looked very messy and had lots of spoilers in them!
08-22-2015 03:53 PM
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.
08-22-2015 04:32 PM
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.
08-22-2015 06:18 PM
08-22-2015 07:44 PM
Thanks Arumkumar. Hopefully simpler functionality is on it's way.
05-09-2016 10:07 AM
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.
06-27-2024 06:42 AM
schnee1's solution seems like it might not work since the function appears to be called client side, but I just tried this in MS Edge on Windows 11 and it seemed to fix the problem where I couldn't clone a Notebook that had too much cell output. Very strange. Also, I agree with schnee1 that the "notebook.clearResults()" function call should be made available as a client-side button.
07-01-2024 04:19 AM
Yes! Run > Clear > Clear all cell outputs
Fun fact, this feature was made ~10 years ago when we realised all our customer demos looked very messy and had lots of spoilers in them!
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