<?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: R plots not rendering in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157419#M54551</link>
    <description>&lt;P&gt;The built-in png device does not render. The plot object is generated silently, which is the issue. This is the only &lt;EM&gt;direct&lt;/EM&gt; plot support for base R and ggplot2 plots. I have many ggplots built in critical analyses that all require time-intensive workarounds until this issue is resolved.&lt;/P&gt;&lt;P&gt;Now displayHTML still works like before, but is so much less economical in code. Interactive plots and dashboards are a different use-case, and I also use these daily and understandably have to deploy them through JavaScript and html service.&lt;/P&gt;&lt;P&gt;That said, a work around for the current png device problem which requires retooling our notebooks is to wrap (base R plots / ggplots / dygraphs / plotly/ etc) in shiny apps. Clumsy, but still works. BTW, this has long been the case with plotly outputs - cannot be rendered directly in R notebooks like they can in python notebooks.&lt;/P&gt;&lt;P&gt;And in the very worst case, if we desperately need those plots, the other bandaid is&amp;nbsp;&lt;SPAN&gt;R df → Spark df → temp view → pandas df → matplotlib. Ugh! I know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But please DataBricks, restore our direct png renders&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2026 14:42:39 GMT</pubDate>
    <dc:creator>plankton</dc:creator>
    <dc:date>2026-05-21T14:42:39Z</dc:date>
    <item>
      <title>R plots not rendering</title>
      <link>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157353#M54536</link>
      <description>&lt;P&gt;Has anyone been experiencing the issue of R plots not rendering in notebooks, starting a few days ago?&lt;/P&gt;&lt;P&gt;t's not related to splarkly or plotly, or specifc data types, or anything. For example in base R: plot(1:3, 5:7) calculates without error, but does not display a graphic. Re-starting cluster, re-attaching cluster to notebook, etc. make no difference.&lt;/P&gt;&lt;P&gt;It's an R thing because running&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%python&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; matplotlib.pyplot &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; plt&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;plt.&lt;/SPAN&gt;&lt;SPAN&gt;plot&lt;/SPAN&gt;&lt;SPAN&gt;([&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;], [&lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt;])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;display&lt;/SPAN&gt;&lt;SPAN&gt;(plt)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;does what you'd expect.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 May 2026 19:26:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157353#M54536</guid>
      <dc:creator>plankton</dc:creator>
      <dc:date>2026-05-20T19:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: R plots not rendering</title>
      <link>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157400#M54545</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/230822"&gt;@plankton&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I tried this in my local workspace, and it seems to work. Can you also share a snapshot? I don't see any reported issues internally either.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashwin_DSA_0-1779361645739.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/27198i65277049E61A87AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ashwin_DSA_0-1779361645739.png" alt="Ashwin_DSA_0-1779361645739.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 11:08:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157400#M54545</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-05-21T11:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: R plots not rendering</title>
      <link>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157405#M54546</link>
      <description>&lt;P&gt;You have misunderstood and have run a piece of code OP confirmed DOES work. The issue is with R plots not displaying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having the same issues with R plots failing to display.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 11:40:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157405#M54546</guid>
      <dc:creator>LiamM87</dc:creator>
      <dc:date>2026-05-21T11:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: R plots not rendering</title>
      <link>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157410#M54549</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/230904"&gt;@LiamM87&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Apologies. I misread the ask. I have now tested an R sample, and that works for me too.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what I tested.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;%r
# Minimal R graphics diagnostics for Databricks notebooks

cat("R version:", R.version.string, "\n")
cat("Capabilities:\n")
print(capabilities())

cat("\nCurrent graphics device before plotting:\n")
print(dev.list())

# 1) Base plot
plot(1:3, 5:7, main = "Base R plot", col = "blue", pch = 19)

cat("\nGraphics device after base plot:\n")
print(dev.list())

# 2) Explicitly force a new page, then another base plot
plot.new()
plot.window(xlim = c(1, 3), ylim = c(5, 7))
points(1:3, 5:7, col = "red", pch = 19)
title("Explicit plot.new / plot.window")

# 3) ggplot2 test, if installed
if (requireNamespace("ggplot2", quietly = TRUE)) {
  p &amp;lt;- ggplot2::ggplot(
    data.frame(x = 1:3, y = 5:7),
    ggplot2::aes(x, y)
  ) +
    ggplot2::geom_point(color = "darkgreen", size = 3) +
    ggplot2::ggtitle("ggplot2 test")
  print(p)
} else {
  cat("\nggplot2 not installed\n")
}

# 4) Device-to-file test: proves R graphics itself is working even if inline render is broken
png("/tmp/r_plot_test.png", width = 800, height = 600)
plot(1:3, 5:7, main = "PNG device test", col = "purple", pch = 19)
dev.off()

cat("\nPNG written to /tmp/r_plot_test.png\n")&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;%r
png("/dbfs/FileStore/r_plot_test.png", width = 800, height = 600)
plot(1:3, 5:7, main = "PNG device test", col = "purple", pch = 19)
dev.off()

displayHTML('&amp;lt;img src="/files/r_plot_test.png" width="700"&amp;gt;')&lt;/LI-CODE&gt;
&lt;P&gt;And the output did render correctly.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashwin_DSA_0-1779367956491.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/27202i6C00C1672278A959/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ashwin_DSA_0-1779367956491.png" alt="Ashwin_DSA_0-1779367956491.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, I did see another internal user raise a similar issue. So, this could be a recent regression. I will watch that issue and share any developments.&amp;nbsp;&lt;/P&gt;
&lt;P class="wnfdntf _1ibi0s3f5 _1ibi0s3ce _1ibi0s3ea" data-pm-slice="1 3 []"&gt;Could you confirm what compute you're using: serverless or all-purpose/classic, and which Databricks Runtime version? If this is serverless, that may explain it, since R isn't supported there.&lt;/P&gt;
&lt;P&gt;A few quick checks that would also help:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Does it happen in more than one browser?&lt;/LI&gt;
&lt;LI&gt;Does it reproduce in a brand-new notebook?&lt;/LI&gt;
&lt;LI&gt;If you run a simple %r cell with just plot(1:3, 5:7), do you see the same behaviour?&lt;/LI&gt;
&lt;LI&gt;If you write the plot to a file and display that file, does it render?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 12:54:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157410#M54549</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-05-21T12:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: R plots not rendering</title>
      <link>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157411#M54550</link>
      <description>&lt;P&gt;I have the same issue, both in Chrome and Safari, in all notebooks including new ones,&amp;nbsp;&lt;SPAN&gt;plot(1:3, 5:7) does not display anything. Device to file example from the message above works.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 13:07:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157411#M54550</guid>
      <dc:creator>riabenko</dc:creator>
      <dc:date>2026-05-21T13:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: R plots not rendering</title>
      <link>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157419#M54551</link>
      <description>&lt;P&gt;The built-in png device does not render. The plot object is generated silently, which is the issue. This is the only &lt;EM&gt;direct&lt;/EM&gt; plot support for base R and ggplot2 plots. I have many ggplots built in critical analyses that all require time-intensive workarounds until this issue is resolved.&lt;/P&gt;&lt;P&gt;Now displayHTML still works like before, but is so much less economical in code. Interactive plots and dashboards are a different use-case, and I also use these daily and understandably have to deploy them through JavaScript and html service.&lt;/P&gt;&lt;P&gt;That said, a work around for the current png device problem which requires retooling our notebooks is to wrap (base R plots / ggplots / dygraphs / plotly/ etc) in shiny apps. Clumsy, but still works. BTW, this has long been the case with plotly outputs - cannot be rendered directly in R notebooks like they can in python notebooks.&lt;/P&gt;&lt;P&gt;And in the very worst case, if we desperately need those plots, the other bandaid is&amp;nbsp;&lt;SPAN&gt;R df → Spark df → temp view → pandas df → matplotlib. Ugh! I know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But please DataBricks, restore our direct png renders&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 14:42:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157419#M54551</guid>
      <dc:creator>plankton</dc:creator>
      <dc:date>2026-05-21T14:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: R plots not rendering</title>
      <link>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157420#M54552</link>
      <description>&lt;P&gt;forgot these:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Issue occurs in old and new notebooks.&lt;/LI&gt;&lt;LI&gt;Runtime:&amp;nbsp;14.3 LTS (includes Apache Spark 3.5.0, Scala 2.12)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 21 May 2026 14:48:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157420#M54552</guid>
      <dc:creator>plankton</dc:creator>
      <dc:date>2026-05-21T14:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: R plots not rendering</title>
      <link>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157423#M54554</link>
      <description>&lt;P&gt;The device to file workaround doesn't work for complex plots from&amp;nbsp;&lt;SPAN&gt;ggarrange.&amp;nbsp;&lt;BR /&gt;I also stopped seeing plots in all old notebooks.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this is fixed soon.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 15:02:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157423#M54554</guid>
      <dc:creator>riabenko</dc:creator>
      <dc:date>2026-05-21T15:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: R plots not rendering</title>
      <link>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157452#M54559</link>
      <description>&lt;P&gt;One very inadequate workaround is to use the focus mode (Ctrl + Alt + o) on a cell to see that cell and output, which will show the R plot even if it doesn't show in the notebook per se. It very much does not replace the purpose of having notebooks, but at least you can see your plots one at a time.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 21:22:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157452#M54559</guid>
      <dc:creator>TomB</dc:creator>
      <dc:date>2026-05-21T21:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: R plots not rendering</title>
      <link>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157463#M54566</link>
      <description>&lt;P&gt;Nice one! This never occured to me. You're right, a small peek is better than complete blindness.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 02:50:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/r-plots-not-rendering/m-p/157463#M54566</guid>
      <dc:creator>plankton</dc:creator>
      <dc:date>2026-05-22T02:50:57Z</dc:date>
    </item>
  </channel>
</rss>

