<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pull workspace url and workspace name using databricks-sdk / programaticaly in notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/pull-workspace-url-and-workspace-name-using-databricks-sdk/m-p/137416#M50740</link>
    <description>&lt;P&gt;Can you give this a shot? Not sure if you've a hard requirement of using SDK.&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;workspace_url = spark.conf.get(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;'spark.databricks.workspaceUrl'&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Getting name is more tricky. You could potentially get it from tags if there is a tagging strategy in place.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Nov 2025 15:29:15 GMT</pubDate>
    <dc:creator>AbhaySingh</dc:creator>
    <dc:date>2025-11-03T15:29:15Z</dc:date>
    <item>
      <title>Pull workspace url and workspace name using databricks-sdk / programaticaly in notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/pull-workspace-url-and-workspace-name-using-databricks-sdk/m-p/136778#M50646</link>
      <description>&lt;P data-unlink="true"&gt;1. How could I pull workspace url (https://adb-XXXXX.XX.....net)&amp;nbsp;&lt;BR /&gt;2. How could I get workspace name visible in top right corner.&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;&lt;BR /&gt;id = WorkspaceClient().get_workspace_id()&lt;/P&gt;&lt;P&gt;but still I am not able to get full workspace url from there. Same for workspace name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 16:17:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pull-workspace-url-and-workspace-name-using-databricks-sdk/m-p/136778#M50646</guid>
      <dc:creator>CaptainJack</dc:creator>
      <dc:date>2025-10-30T16:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pull workspace url and workspace name using databricks-sdk / programaticaly in notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/pull-workspace-url-and-workspace-name-using-databricks-sdk/m-p/137416#M50740</link>
      <description>&lt;P&gt;Can you give this a shot? Not sure if you've a hard requirement of using SDK.&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;workspace_url = spark.conf.get(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;'spark.databricks.workspaceUrl'&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Getting name is more tricky. You could potentially get it from tags if there is a tagging strategy in place.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 15:29:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pull-workspace-url-and-workspace-name-using-databricks-sdk/m-p/137416#M50740</guid>
      <dc:creator>AbhaySingh</dc:creator>
      <dc:date>2025-11-03T15:29:15Z</dc:date>
    </item>
  </channel>
</rss>

