โ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?
Monday
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.
Thursday
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.
Monday
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!
Excited to expand your horizons with us? Click here to Register and begin your journey to success!
Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!