Reputation: 1
Regards
I am creating a databricks notebook using terraform cloud. When the notebook code is in the same directory as the tf there is no problem, it finds it right away. But to organize the repository, the notebook must be in another folder and that is where the problem begins that the notebook cannot be found. the folder path is src/notebook/mynotebook.py. What should I do to correctly reference the route.
could you help me please
options of "source" to can take the notebook
Upvotes: 0
Views: 167
Reputation: 51
You should use %run magic command and run the notebook that you want to reference within the notebook where you want to use the function with code as below
%run ./dir/notebook
Link here - https://docs.databricks.com/en/notebooks/notebook-workflows.html#use-run-to-import-a-notebook
Upvotes: 0