Please suggest how to stop the execution of code after a specific cell in a Databricks notebook.
I Tried sys.exit(0)
(Python code) and dbutils.notebook.exit()
on Databricks notebook. However, neither worked.
dbutils.notebook.exit()
does not work because you need to put the string argument, it fails silently without it. To make it work you should write something like:
dbutils.notebook.exit("whatever reason to make it stop")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With