Magic run is not working in Databricks?? – Databricks Tips

The magic run can use for running a notebook from another notebook in Databricks. The magic run is %run followed by the other notebook path.
In this example, Demo2 is the name of the Notebook we want to use in the magic run path.

I picked the path from the notebook and put it in the %run:

After running the notebook, goes and run the notebook Demo2.

If Comment adding to the cell of %run, it will fail after the run and not find the notebook path:

I hope Databricks solve it in the new update. But for now %run will fail if a comment adds to the cell.

Did you have this error so far? Comment below.

Leave a comment