<?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 display markdown output in databricks notebook from a python cell in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32898#M24008</link>
    <description>&lt;P&gt;@Daniel Khodabakhsh​&amp;nbsp;If you are signing in to the ideas portal for the very first time, could you please refer this &lt;A href="https://docs.databricks.com/delegated-auth.html#sign-in-to-the-ideas-portal-the-first-time" target="test_blank"&gt;https://docs.databricks.com/delegated-auth.html#sign-in-to-the-ideas-portal-the-first-time&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;Please let us know if you need further clarification on the same. &lt;/P&gt;</description>
    <pubDate>Sun, 04 Sep 2022 05:16:43 GMT</pubDate>
    <dc:creator>Debayan</dc:creator>
    <dc:date>2022-09-04T05:16:43Z</dc:date>
    <item>
      <title>How to display markdown output in databricks notebook from a python cell</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32892#M24002</link>
      <description>&lt;P&gt;With IPython/Jupyter it's possible to output markdown using the &lt;A href="https://ipython.readthedocs.io/en/stable/api/generated/IPython.display.html#IPython.display.Markdown" alt="https://ipython.readthedocs.io/en/stable/api/generated/IPython.display.html#IPython.display.Markdown" target="_blank"&gt;IPython display module and its `MarkDown`class&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Example markdown output"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1543i0559E99022A3A478/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example markdown output" alt="Example markdown output" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Question&lt;/B&gt;&lt;/P&gt;&lt;P&gt;How can I accomplish this with Azure Databricks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;What I tried&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Databricks `display`&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried using Databrick's display with the IPython Markdown class:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;from IPython.display import Markdown
display(Markdown('*some markdown* test'))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but this results in the following error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Exception: Cannot call display(&amp;lt;class 'IPython.core.display.Markdown'&amp;gt;)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;U&gt;IPython `display`&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then tried to use IPython's display:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;from IPython.display import display, Markdown
display(Markdown('*some markdown* test'))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but this just displays the text:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;IPython.core.display.Markdown object&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Example failed ouput"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1550iCDBEA11DCF35AC7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example failed ouput" alt="Example failed ouput" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;IPython `display_markdown`&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried using IPython's `display_markdown`:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;from IPython.display import display_markdown
display_markdown('# Markdown is here!\n*some markdown*\n- and\n- some\n- more')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but this results in nothing showing up:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Failed display_markdown"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1540i4A3CD6F23AE200BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Failed display_markdown" alt="Failed display_markdown" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Looking up documentation&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also tried checking Azure Databricks documentation. At first I visited &lt;A href="https://www.databricks.com/databricks-documentation" alt="https://www.databricks.com/databricks-documentation" target="_blank"&gt;https://www.databricks.com/databricks-documentation&lt;/A&gt; which leads me to &lt;A href="https://docs.microsoft.com/en-ca/azure/databricks/" alt="https://docs.microsoft.com/en-ca/azure/databricks/" target="_blank"&gt;https://docs.microsoft.com/en-ca/azure/databricks/&lt;/A&gt; but I wasn't able to find anything via searching or clicking the links and I usually find Microsoft documentation quite good. However, &lt;A href="https://docs.microsoft.com/en-us/azure/databricks/notebooks/ipython-kernel" alt="https://docs.microsoft.com/en-us/azure/databricks/notebooks/ipython-kernel" target="_blank"&gt;according to this page&lt;/A&gt;, Databricks is using IPython kernel so I guess it's unclear what portions of IPython can be used and which cannot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Checking Databrick's `display` source&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to Databrick's source for the `display` function, it will readily render any object that implements `_repr_html()`.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Databricks display"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1544iFF4BF46FFCEBFBF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Databricks display" alt="Databricks display" /&gt;&lt;/span&gt;However I'm having a hard time being able to get the raw html output that I'm assuming `IPython.display.Markdown` should be able to output. I can only find `_repr_markdown_()` and `_data_and_metadata()` &lt;A href="https://github.com/ipython/ipython/blob/9fba0f5afea7bf015b44899c53425719927b3a7a/IPython/core/display.py#L436" alt="https://github.com/ipython/ipython/blob/9fba0f5afea7bf015b44899c53425719927b3a7a/IPython/core/display.py#L436" target="_blank"&gt;where the former just calls the latter&lt;/A&gt; and the output, at least in Databricks, is just the original raw markdown string.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 17:48:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32892#M24002</guid>
      <dc:creator>Dan-K</dc:creator>
      <dc:date>2022-08-31T17:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to display markdown output in databricks notebook from a python cell</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32894#M24004</link>
      <description>&lt;P&gt;Sorry but you misunderstood my question. I put so much detail into it too &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt; &lt;/P&gt;&lt;P&gt;I want markdown in the &lt;U&gt;output &lt;/U&gt;of a &lt;U&gt;python cell&lt;/U&gt;. Not a &lt;U&gt;markdown cell&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/a/73568603/1250319" alt="https://stackoverflow.com/a/73568603/1250319" target="_blank"&gt;I found a workaround on stack overflow which works&lt;/A&gt;, but this requires importing the markdown library:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot 2022-09-02 175227"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1542i284FA001EACC1045/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-09-02 175227" alt="Screenshot 2022-09-02 175227" /&gt;&lt;/span&gt;Is there a way to create a feature request for this sort of thing to be supported natively in databricks (like it is in jupyter)?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 00:55:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32894#M24004</guid>
      <dc:creator>Dan-K</dc:creator>
      <dc:date>2022-09-03T00:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to display markdown output in databricks notebook from a python cell</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32896#M24006</link>
      <description>&lt;P&gt;Sweet! Thanks @Debayan Mukherjee​, , I think I'll go ahead and do that &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 05:09:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32896#M24006</guid>
      <dc:creator>Dan-K</dc:creator>
      <dc:date>2022-09-04T05:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to display markdown output in databricks notebook from a python cell</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32897#M24007</link>
      <description>&lt;P&gt;Hey @Debayan Mukherjee​&amp;nbsp;I tried accessing the link you provided but it redirects me to a page asking me to enter the workspace domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which workspace domain do I use if I'm using Azure Databricks? I tried 'azure' but this didn't work.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 05:12:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32897#M24007</guid>
      <dc:creator>Dan-K</dc:creator>
      <dc:date>2022-09-04T05:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to display markdown output in databricks notebook from a python cell</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32893#M24003</link>
      <description>&lt;P&gt;Hi, Thanks for reaching out to community.databricks.com.&lt;/P&gt;&lt;P&gt;In a notebook cell, type "%md" and type some markdown and it will render. &lt;/P&gt;&lt;P&gt;Please refer: &lt;A href="https://community.databricks.com/s/question/0D53f00001HKHhNCAX/markup-in-databricks-notebook" target="test_blank"&gt;https://community.databricks.com/s/question/0D53f00001HKHhNCAX/markup-in-databricks-notebook&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 22:01:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32893#M24003</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2022-09-02T22:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to display markdown output in databricks notebook from a python cell</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32895#M24005</link>
      <description>&lt;P&gt;@Daniel Khodabakhsh​&amp;nbsp; I would request to file a feature request in our ideas portal &lt;A href="https://ideas.databricks.com/ideas/" alt="https://ideas.databricks.com/ideas/" target="_blank"&gt;https://ideas.databricks.com/ideas/&lt;/A&gt;, so that you can interact and receive the updates directly with PM team. The ideas portal allows the customers to submit enhancement ideas and other customers to vote on their submitted ideas, and also gives the customers a direct line of communication with PM. You can subscribe to status updates as well.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 05:04:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32895#M24005</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2022-09-04T05:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to display markdown output in databricks notebook from a python cell</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32898#M24008</link>
      <description>&lt;P&gt;@Daniel Khodabakhsh​&amp;nbsp;If you are signing in to the ideas portal for the very first time, could you please refer this &lt;A href="https://docs.databricks.com/delegated-auth.html#sign-in-to-the-ideas-portal-the-first-time" target="test_blank"&gt;https://docs.databricks.com/delegated-auth.html#sign-in-to-the-ideas-portal-the-first-time&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;Please let us know if you need further clarification on the same. &lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 05:16:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-display-markdown-output-in-databricks-notebook-from-a/m-p/32898#M24008</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2022-09-04T05:16:43Z</dc:date>
    </item>
  </channel>
</rss>

