<?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 can I embed image to my notebook? in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/how-can-i-embed-image-to-my-notebook/m-p/23197#M1312</link>
    <description>&lt;P&gt;If the image is a result of, for example, a plotting library's output, it should just render as-is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's not, then one simple approach is to write a markdown (%md) cell and include a link to the image: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;![](url of the image)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Of course this requires that the image be available somewhere to link to. You &lt;I&gt;can&lt;/I&gt; write images to /FileStore on DBFS, and they become available at a URL in your workspace starting with /files. Note that this isn't exactly secure though, as anyone in the workspace could potentially see that file. In some cases that's fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For small images, you could encode the bytes of the PNG (for example) image in base64 and then construct a a "data:" URI with that image data. That becomes a self-contained URI you can render in HTML in a markdown cell like any other image. That's only a good idea for pretty small images though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jun 2021 18:17:07 GMT</pubDate>
    <dc:creator>sean_owen</dc:creator>
    <dc:date>2021-06-17T18:17:07Z</dc:date>
    <item>
      <title>How can I embed image to my notebook?</title>
      <link>https://community.databricks.com/t5/machine-learning/how-can-i-embed-image-to-my-notebook/m-p/23196#M1311</link>
      <description />
      <pubDate>Thu, 17 Jun 2021 16:16:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/how-can-i-embed-image-to-my-notebook/m-p/23196#M1311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-17T16:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I embed image to my notebook?</title>
      <link>https://community.databricks.com/t5/machine-learning/how-can-i-embed-image-to-my-notebook/m-p/23197#M1312</link>
      <description>&lt;P&gt;If the image is a result of, for example, a plotting library's output, it should just render as-is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's not, then one simple approach is to write a markdown (%md) cell and include a link to the image: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;![](url of the image)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Of course this requires that the image be available somewhere to link to. You &lt;I&gt;can&lt;/I&gt; write images to /FileStore on DBFS, and they become available at a URL in your workspace starting with /files. Note that this isn't exactly secure though, as anyone in the workspace could potentially see that file. In some cases that's fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For small images, you could encode the bytes of the PNG (for example) image in base64 and then construct a a "data:" URI with that image data. That becomes a self-contained URI you can render in HTML in a markdown cell like any other image. That's only a good idea for pretty small images though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 18:17:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/how-can-i-embed-image-to-my-notebook/m-p/23197#M1312</guid>
      <dc:creator>sean_owen</dc:creator>
      <dc:date>2021-06-17T18:17:07Z</dc:date>
    </item>
  </channel>
</rss>

