<?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: Databricks hiding error stack trace when plotting? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-hiding-error-stack-trace-when-plotting/m-p/22519#M15431</link>
    <description>&lt;P&gt;Alright, thank you. &lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 09:45:07 GMT</pubDate>
    <dc:creator>640913</dc:creator>
    <dc:date>2022-11-22T09:45:07Z</dc:date>
    <item>
      <title>Databricks hiding error stack trace when plotting?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-hiding-error-stack-trace-when-plotting/m-p/22516#M15428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been working with data visualisations in Databricks the last week and came across a very peculiar behaviour where it seems like Databricks is actively suppressing errors to the user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;import matplotlib.pyplot as plt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x = [1, 2, 3]&lt;/P&gt;&lt;P&gt;y = [1, 2, 3]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plt.plot(x, y)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x.length&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;produces only the plot as output and I get no information that the code after the plot command has failed. I have attached an image of the output. If I put the `x.length` in its own cell, it will raise the Attribute Error as expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected behaviour would be that the plot &lt;B&gt;and &lt;/B&gt;the Attribute Error is shown. I have attached an image of this when using just ordinary Jupyter Lab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When reading about &lt;A href="https://docs.databricks.com/notebooks/notebooks-use.html?_ga=2.35432097.1642025265.1668411484-449133503.1667467662" alt="https://docs.databricks.com/notebooks/notebooks-use.html?_ga=2.35432097.1642025265.1668411484-449133503.1667467662" target="_blank"&gt;&lt;U&gt;Databricks notebooks&lt;/U&gt;&lt;/A&gt; and errors, I cannot find any information in the documentation that this is expected behaviour. I just searched for "error" but found no indication that Databricks wants to make users aware of this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Have I just configured something incorrectly in my user to create this &lt;B&gt;very unwanted&lt;/B&gt; behaviour? &lt;/LI&gt;&lt;LI&gt;If not, why on earth would Databricks do this? Why is this a feature?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working in DBR 7.3 LTS ML with Spark 3.0.1 and Scala 2.12 (my company is upgrading the version to DBR 10.4 LTS at the start of 2023).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 12:19:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-hiding-error-stack-trace-when-plotting/m-p/22516#M15428</guid>
      <dc:creator>640913</dc:creator>
      <dc:date>2022-11-14T12:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks hiding error stack trace when plotting?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-hiding-error-stack-trace-when-plotting/m-p/22517#M15429</link>
      <description>&lt;P&gt;It might be the DBR version. I ran that code on DBR 11.3 and I got the plot + error. Let me confirm if it's the DBR and get back to you here&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 18:26:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-hiding-error-stack-trace-when-plotting/m-p/22517#M15429</guid>
      <dc:creator>LandanG</dc:creator>
      <dc:date>2022-11-14T18:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks hiding error stack trace when plotting?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-hiding-error-stack-trace-when-plotting/m-p/22518#M15430</link>
      <description>&lt;P&gt;@gagneri​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it looks like the error is hidden in DBR 7.3 LTS but it's fixed in DBR 10.4 LTS and later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a side note, when it comes to migrate runtimes, I'd recommend checking out the &lt;A href="https://docs.databricks.com/release-notes/runtime/10.x-migration.html" alt="https://docs.databricks.com/release-notes/runtime/10.x-migration.html" target="_blank"&gt;migration guide&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 18:36:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-hiding-error-stack-trace-when-plotting/m-p/22518#M15430</guid>
      <dc:creator>LandanG</dc:creator>
      <dc:date>2022-11-14T18:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks hiding error stack trace when plotting?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-hiding-error-stack-trace-when-plotting/m-p/22519#M15431</link>
      <description>&lt;P&gt;Alright, thank you. &lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 09:45:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-hiding-error-stack-trace-when-plotting/m-p/22519#M15431</guid>
      <dc:creator>640913</dc:creator>
      <dc:date>2022-11-22T09:45:07Z</dc:date>
    </item>
  </channel>
</rss>

