i dont cant take the source from my notebook with terraform

100 Views Asked by At

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

1

There are 1 best solutions below

0
Abby On

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