<?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: dbutils or other magic way to get notebook name or cell title inside notebook cell in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34971#M25664</link>
    <description>&lt;P&gt;Did this helped you? if it did, could you mark it as best response?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 00:01:51 GMT</pubDate>
    <dc:creator>jose_gonzalez</dc:creator>
    <dc:date>2021-11-24T00:01:51Z</dc:date>
    <item>
      <title>dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34963#M25656</link>
      <description>&lt;P&gt;Not sure it exists but maybe there is some trick to get directly from python code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;NotebookName&lt;/LI&gt;&lt;LI&gt;CellTitle&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just working on some logger script shared between notebooks and it could make my life a bit easier &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:16:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34963#M25656</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-11-17T14:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34964#M25657</link>
      <description>&lt;P&gt;Hey there! Thanks for your question. We'll see what the community comes up with first. Thanks in advance for your patience!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 19:57:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34964#M25657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-17T19:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34965#M25658</link>
      <description>&lt;P&gt;I am sure there is a trick but I doubt it is the best way:&lt;/P&gt;&lt;P&gt;the actual notebooks store each cell as # COMMAND ------ and markdown as #&amp;nbsp;MAGIC&amp;nbsp;%md.&lt;/P&gt;&lt;P&gt;So you could fetch the actual notebook code and start rebuilding it in python with a loop/count over COMMAND or MAGIC.&lt;/P&gt;&lt;P&gt;But as I said: seems overkill. Databricks can parse it nicely so there has to be a way.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 08:36:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34965#M25658</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-11-18T08:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34966#M25659</link>
      <description>&lt;P&gt;Maybe you can use displayHTML instead of markdown?  Like that you actually have it as code:&lt;/P&gt;&lt;P&gt;displayHTML("insert text here").&lt;/P&gt;&lt;P&gt;It is not as clean as markdown though.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 09:06:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34966#M25659</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-11-18T09:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34967#M25660</link>
      <description>&lt;P&gt;@Werner Stinckens​&amp;nbsp; I will experiment on that in few weeks using your ideas. I need it only when exception occur in notebook so maybe it will not be so big overkill. I will back to you.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 11:35:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34967#M25660</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-11-18T11:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34968#M25661</link>
      <description>&lt;P&gt;you could also use the log analytics of your cloud provider.&lt;/P&gt;&lt;P&gt;For Azure f.e. we send all databricks logs to Log Analytics. I suppose on AWS/GCP there is also a similar thing.&lt;/P&gt;&lt;P&gt;(https://docs.microsoft.com/en-us/azure/databricks/administration-guide/account-settings/azure-diagnostic-logs)&lt;/P&gt;&lt;P&gt;Or send logs to some location which you can then parse with python&lt;/P&gt;&lt;P&gt;(&lt;A href="https://docs.microsoft.com/en-us/azure/databricks/clusters/configure#cluster-log-delivery" alt="https://docs.microsoft.com/en-us/azure/databricks/clusters/configure#cluster-log-delivery" target="_blank"&gt;https://docs.microsoft.com/en-us/azure/databricks/clusters/configure#cluster-log-delivery&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 13:11:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34968#M25661</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-11-18T13:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34969#M25662</link>
      <description>&lt;P&gt;Hi @Hubert Dudek​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following command will print the path where your notebook is located. If you split the returned string and only select the last string, then you will be able to get the notebook name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;notebook_name = dbutils.notebook.entry_point.getDbutils().notebook().getContext().notebookPath().get()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 16:24:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34969#M25662</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2021-11-18T16:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34970#M25663</link>
      <description>&lt;P&gt;wow will test it tomorrow &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; haven't known about dbutils.notebook.entry_point&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 16:40:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34970#M25663</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-11-18T16:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34971#M25664</link>
      <description>&lt;P&gt;Did this helped you? if it did, could you mark it as best response?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 00:01:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34971#M25664</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2021-11-24T00:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34972#M25665</link>
      <description>&lt;P&gt;haven't tested yet (you now tomorrow in dev world can be quite long time) but I've selected your answer as the best&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 11:13:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34972#M25665</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-11-24T11:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34973#M25666</link>
      <description>&lt;P&gt;@Hubert Dudek​&amp;nbsp;- If I haven't told you, you are awesome!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 13:19:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34973#M25666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T13:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34974#M25667</link>
      <description>&lt;P&gt;Thank you. You too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 13:20:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/34974#M25667</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-11-24T13:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/99705#M40066</link>
      <description>&lt;P&gt;I got the solution to work in terms of printing the notebook that I was running; however, what if you have notebook A that calls a function that prints the notebook name, and you run notebook B that %runs notebook A?&amp;nbsp; I get the notebook B's name when I want notebook A's name.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 20:22:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/99705#M40066</guid>
      <dc:creator>rtullis</dc:creator>
      <dc:date>2024-11-21T20:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/138950#M51060</link>
      <description>&lt;P&gt;Do you know how can I capture the title of the cell using code?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 17:05:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/138950#M51060</guid>
      <dc:creator>montoyesco</dc:creator>
      <dc:date>2025-11-13T17:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils or other magic way to get notebook name or cell title inside notebook cell</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/138952#M51061</link>
      <description>&lt;P&gt;The code from jose_gonzalez captures the notebook name only. I need to capture the cell title (see screenshot).&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21675iB6D9F7F77327E345/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 17:14:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-or-other-magic-way-to-get-notebook-name-or-cell-title/m-p/138952#M51061</guid>
      <dc:creator>montoyesco</dc:creator>
      <dc:date>2025-11-13T17:14:42Z</dc:date>
    </item>
  </channel>
</rss>

