<?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: Real-time output missing when using “Upload and Run File” from VS Code in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/139972#M4524</link>
    <description>&lt;P&gt;Yes, prints and loggings are viewable in driver logs as they happen. If the same file is run in databricks Web UI they are viewable on output window as they happen as well. But, when run through VS code, unfortunately they are not visible in the debug console (but they are in the driver logs), as can be demonstrated with the example above.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Nov 2025 20:50:18 GMT</pubDate>
    <dc:creator>tinodj</dc:creator>
    <dc:date>2025-11-21T20:50:18Z</dc:date>
    <item>
      <title>Real-time output missing when using “Upload and Run File” from VS Code</title>
      <link>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/139858#M4506</link>
      <description>&lt;P class=""&gt;I am running Python files on a Databricks cluster using the VS Code Databricks extension, specifically the “Upload and Run File” command.&lt;/P&gt;&lt;P class=""&gt;I cannot get real-time output in the Debug Console. I have checked the official docs:&lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/vscode-ext/tutorial" target="_self"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/vscode-ext/tutorial&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://github.com/databricks/databricks-vscode/blob/release-v2.10.3/packages/databricks-vscode/DATABRICKS.quickstart.md#running-pxspark-code" target="_self"&gt;https://github.com/databricks/databricks-vscode/blob/release-v2.10.3/packages/databricks-vscode/DATABRICKS.quickstart.md#running-pxspark-code&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;but these do not address the issue.&lt;/P&gt;&lt;P class=""&gt;The behavior I see is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;While the script is running, no output is shown in the Debug Console.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;When the script finishes, all output appears at once.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;If the script fails with an exception, only the error is shown and none of the printed output appears.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;This makes it very difficult to test and debug. If this is expected behavior, I would like to know what the recommended or best-practice workflow is for running and testing a standalone Python file on a Databricks cluster with live output.&lt;/P&gt;&lt;P class=""&gt;Below is a minimal example based on Databricks’ own sample script. I added a loop with prints and sleeps to demonstrate the missing streaming output:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from pyspark.sql import SparkSession
from pyspark.sql.types import *

spark = SparkSession.builder.getOrCreate()

schema = StructType([
    StructField('CustomerID', IntegerType(), False),
    StructField('FirstName', StringType(), False),
    StructField('LastName', StringType(), False)
])

data = [
    [1000, 'Matthijs', 'Oosterhout-Buntjes'],
    [1001, 'Joost', 'van Brunswijk'],
    [1002, 'Stan', 'Bokenkamp']
]

customers = spark.createDataFrame(data, schema)
customers.show()

import time
for i in range(100):
    print(f'{i}-Output')
    time.sleep(1)

time.sleep(10)
raise Exception("Demo failure")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 23:08:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/139858#M4506</guid>
      <dc:creator>tinodj</dc:creator>
      <dc:date>2025-11-20T23:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Real-time output missing when using “Upload and Run File” from VS Code</title>
      <link>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/139962#M4521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/198476"&gt;@tinodj&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Are you using the &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/vscode-ext/databricks-connect" target="_self"&gt;Databricks Connect&lt;/A&gt; integration in conjunction with the VS Code extension? I think you should be able to get better debugging results with this enabled.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 18:57:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/139962#M4521</guid>
      <dc:creator>stbjelcevic</dc:creator>
      <dc:date>2025-11-21T18:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Real-time output missing when using “Upload and Run File” from VS Code</title>
      <link>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/139968#M4522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/167034"&gt;@stbjelcevic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! With Databricks Connect part of the code runs locally. And this is not always the best scenario to debug the code, or am I wrong? For example when reading some local files mounted on the cluster, or running remote services available only from the cluster, etc. I would like to test when code runs on the cluster in full.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 19:22:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/139968#M4522</guid>
      <dc:creator>tinodj</dc:creator>
      <dc:date>2025-11-21T19:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Real-time output missing when using “Upload and Run File” from VS Code</title>
      <link>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/139969#M4523</link>
      <description>&lt;P&gt;Ahh yes, you are right about that.&amp;nbsp;There isn’t a “run all non-Spark code remotely” mode in Databricks Connect today, but&amp;nbsp;it appears to be a commonly requested enhancement and is currently tracked internally.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you checked the Databricks UI for the job run to see if the printed outputs show up there? I understand you want local development, but I am trying to figure out if your expected print statements/logs are viewable anywhere to begin with.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 19:49:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/139969#M4523</guid>
      <dc:creator>stbjelcevic</dc:creator>
      <dc:date>2025-11-21T19:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Real-time output missing when using “Upload and Run File” from VS Code</title>
      <link>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/139972#M4524</link>
      <description>&lt;P&gt;Yes, prints and loggings are viewable in driver logs as they happen. If the same file is run in databricks Web UI they are viewable on output window as they happen as well. But, when run through VS code, unfortunately they are not visible in the debug console (but they are in the driver logs), as can be demonstrated with the example above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 20:50:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/139972#M4524</guid>
      <dc:creator>tinodj</dc:creator>
      <dc:date>2025-11-21T20:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Real-time output missing when using “Upload and Run File” from VS Code</title>
      <link>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/148692#M4894</link>
      <description>&lt;P&gt;Hello Any solutions for this ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Without it it's almost useless since it's not possible to have logs printed out&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 13:00:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/148692#M4894</guid>
      <dc:creator>Dali1</dc:creator>
      <dc:date>2026-02-18T13:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Real-time output missing when using “Upload and Run File” from VS Code</title>
      <link>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/148747#M4901</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216600"&gt;@Dali1&lt;/a&gt;&amp;nbsp;I have even tried to describe &amp;nbsp;&lt;A href="https://github.com/databricks/databricks-vscode/issues/1813" target="_blank"&gt;https://github.com/databricks/databricks-vscode/issues/1813&lt;/A&gt;&amp;nbsp;&amp;nbsp;and to fix on &lt;A href="https://github.com/databricks/databricks-vscode/pull/1814" target="_blank"&gt;https://github.com/databricks/databricks-vscode/pull/1814&lt;/A&gt;, unfortunately no one seems to be interested in this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 21:57:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/real-time-output-missing-when-using-upload-and-run-file-from-vs/m-p/148747#M4901</guid>
      <dc:creator>tinodj</dc:creator>
      <dc:date>2026-02-18T21:57:23Z</dc:date>
    </item>
  </channel>
</rss>

