Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 04:55 AM
Found a solution executing a notebook, using the databricks api to download the notebook content as bytes :
1. set environment variables DATABRICKS_HOST and DATABRICKS_TOKEN
2.
w = WorkspaceClient()
with w.workspace.download(notebook_path) as n:
notebook_content = n.read()
exec(notebook_content, globals())