Pull workspace url and workspace name using databricks-sdk / programaticaly in notebook
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2025 09:17 AM
1. How could I pull workspace url (https://adb-XXXXX.XX.....net)
2. How could I get workspace name visible in top right corner.
I know that easies solution is dbutils.notebook.entry_point.... browserHostName but unfortunetly it is not working in job clusters. I tried use databricks-sdk WorkspaceClient and was able to get workspace id. like this
id = WorkspaceClient().get_workspace_id()
but still I am not able to get full workspace url from there. Same for workspace name.
Labels:
- Labels:
-
Spark