dbutils.notebook.exit

The dbutils.notebook.exit allows to exit a notebook with a value.

Description

You can use dbutils.notebook.exit to terminate the execution on the current notebook and optionally return a value to the calling notebook notebooks.

Sample

df = spark.createDataFrame([[1.0, 2.1], [3.3, 4.5]])
df.show()
dbutils.notebook.exit("Exiting from My second Notebook")

Snowflake

This DBX element does not have a direct equivalent and it is not required in Snowflake, the SMA tool transforms this element by removing it from the cells.

df = spark.createDataFrame([[1.0, 2.1], [3.3, 4.5]])
df.show()

This element does not have an associated EWI.

Last updated

Revision created