-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch
dbutils.notebook.entry_point...
to return current local noteb…
…ook path from env var (#618) ## Changes * Users are using `dbutils.notebook.entry_point.getDbutils().notebook().getContext().notebookPath().get()` to get the current notebook path in notebooks (referring https://stackoverflow.com/questions/53523560/databricks-how-do-i-get-path-of-current-notebook). * This does not work from our current dbutils proxy. This PR patches this to read from a DATABRICKS_SOURCE_FILE env var when using local dbutils. ## Proposal * Allow users to add their own patches to make is easier for users using dbutils from sdk to workaround such issues in the future. ## Tests * Unit tests - [x] `make test` run locally - [x] `make fmt` applied - [x] relevant integration tests applied --------- Signed-off-by: Kartik Gupta <[email protected]> Co-authored-by: Miles Yucht <[email protected]>
- Loading branch information
1 parent
8d25659
commit 2fc049d
Showing
5 changed files
with
103 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters