<?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: How to retrieve current notebook name in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-retrieve-current-notebook-name/m-p/4344153#M5784</link>
    <description>&lt;P&gt;Based on my understanding,&amp;nbsp;Microsoft Fabric doesn’t provide an automatic way to get the current notebook name from within the notebook interface.&lt;/P&gt;
&lt;P&gt;You need to either manually pass the notebook id or hardcode the notebook name&lt;/P&gt;</description>
    <pubDate>Fri, 27 Dec 2024 04:50:28 GMT</pubDate>
    <dc:creator>NandanHegde</dc:creator>
    <dc:date>2024-12-27T04:50:28Z</dc:date>
    <item>
      <title>How to retrieve current notebook name</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-retrieve-current-notebook-name/m-p/4343997#M5781</link>
      <description>&lt;P&gt;How to retrieve the current notebook name&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to hardcode it&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 01:28:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-retrieve-current-notebook-name/m-p/4343997#M5781</guid>
      <dc:creator>A_monged</dc:creator>
      <dc:date>2024-12-27T01:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve current notebook name</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-retrieve-current-notebook-name/m-p/4344153#M5784</link>
      <description>&lt;P&gt;Based on my understanding,&amp;nbsp;Microsoft Fabric doesn’t provide an automatic way to get the current notebook name from within the notebook interface.&lt;/P&gt;
&lt;P&gt;You need to either manually pass the notebook id or hardcode the notebook name&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 04:50:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-retrieve-current-notebook-name/m-p/4344153#M5784</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2024-12-27T04:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve current notebook name</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-retrieve-current-notebook-name/m-p/4344930#M5797</link>
      <description>&lt;P&gt;You should be able to get a stack of useful info from the &lt;EM&gt;notebookutils.runtime.context&lt;/EM&gt; structure.&lt;/P&gt;&lt;P&gt;For example, executing the below:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;print(notebookutils.runtime.context['currentNotebookName'])&lt;/LI-CODE&gt;&lt;P&gt;returns to following imaginatively titled name;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MyAwesomeNotebook&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;The full list of things you can return is;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;'currentNotebookName', 'currentWorkspaceName', 'defaultLakehouseName', 'defaultLakehouseId', 'parentRunId', 'isReferenceRun', 'defaultLakehouseWorkspaceId', 'hcReplId', 'activityId', 'defaultLakehouseWorkspaceName', 'currentWorkspaceId', 'referenceTreePath', 'clusterId', 'poolName', 'environmentId', 'currentNotebookId', 'userId', 'environmentWorkspaceId', 'userName', 'currentRunId', 'isForPipeline', 'rootRunId'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helps at all, please consider &lt;EM&gt;Accepting as a Solution&lt;/EM&gt; so that other users may find it more easily.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 23:17:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-retrieve-current-notebook-name/m-p/4344930#M5797</guid>
      <dc:creator>spencer_sa</dc:creator>
      <dc:date>2024-12-27T23:17:10Z</dc:date>
    </item>
  </channel>
</rss>

