0

Can anyone suggest the syntax to import multiple notebooks using %run command in Databricks?

Right now, am importing through seperate run commands for every notebook like below: %run ./Notebook1 %run ./Notebook2 %run ./Notebook3

I would like to know the syntax to do the import of all the notebooks in single run command

kiruba
  • 129
  • 5

1 Answers1

0

No, this is not supported right now - each %run command needs to be executed separately.

P.S. If you have Databricks code in the Databricks Repo and you're using Python as programming language (or R), then you may switch to use Python modules to modularize code by using Files in Repos functionality.

Here is an example of using both methods (%run and files in repos) to modularize Python code

CHEEKATLAPRADEEP
  • 12,191
  • 1
  • 19
  • 42
Alex Ott
  • 80,552
  • 8
  • 87
  • 132