cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

import * from ../my/relative/path

GCera
New Contributor II

I have the following repository structure:
/Repos/main/MyRepo/
 -> run (folder)
 -> setup (folder)
 -> src (folder)
 -> main (notebook)

Now, starting from a notebook in the "src" folder I need to run/import all variables defined in all notebooks stored in "src/etl_notebooks" (e.g. /Repos/main/MyRepo/src/etl_notebooks/bronze_table_x).

How can I do that in a programmatic way (i.e. without typing the full notebook path by myself right into the notebook)?

1 REPLY 1

GCera
New Contributor II

Hi Kaniz! Thank you for your reply - I appreciate your time and effort.

I tried the solution you suggested but incurred in the "Notebook not found" error (please see the attached image) because, I think, it is not possible to use * in the notebook path.

Again, from a notebook in the "src" folder (e.g. /src/etl_sql_query) I am trying to automatically import all notebooks stored in a "/src/etl_notebooks/" folder without typing each and every one of their path.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group