%run

The %run command allows you to include another notebook within a notebook.

Description

You can use %run to concatenate notebooks. When you use %run, the called notebook is immediately executed and the functions and variables defined in it become available in the calling notebook.

Sample

%run /Workspace/Users/UserName/MySecondNotebook

Snowflake

This DBX element does not have a direct equivalent, the SMA tool transforms this element into a SQL statement but it has a different behavior from run command.

spark.sql("EXECUTE NOTEBOOK <DATABASE>.<SCHEMA>.MySecondNotebook()")

This element is associated with the EWI SPRKDBX1001.

Last updated