<?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: Unable to access Scala and python variables in-between shells in same notebook. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-access-scala-and-python-variables-in-between-shells-in/m-p/14024#M8588</link>
    <description>&lt;P&gt;The context is not shared between Scala and Python so you won't be able to access the same variables directly. However you can use &lt;A href="https://docs.databricks.com/getting-started/spark/dataframes.html#run-sql-queries" alt="https://docs.databricks.com/getting-started/spark/dataframes.html#run-sql-queries" target="_blank"&gt;createOrReplaceTempView&lt;/A&gt; to create a temporary view of your dataframe and read it in the other language with &lt;I&gt;read_df = spark.sql("&amp;lt;sql query reading from view&amp;gt;")&lt;/I&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 18:44:11 GMT</pubDate>
    <dc:creator>tomasz</dc:creator>
    <dc:date>2022-07-11T18:44:11Z</dc:date>
    <item>
      <title>Unable to access Scala and python variables in-between shells in same notebook.</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-access-scala-and-python-variables-in-between-shells-in/m-p/14023#M8587</link>
      <description>&lt;P&gt;I am facing issue in while accessing python data frame in Scala shell and vice versa. I am getting error variable not defined.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 18:26:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-access-scala-and-python-variables-in-between-shells-in/m-p/14023#M8587</guid>
      <dc:creator>Data_Engineer3</dc:creator>
      <dc:date>2022-07-11T18:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access Scala and python variables in-between shells in same notebook.</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-access-scala-and-python-variables-in-between-shells-in/m-p/14024#M8588</link>
      <description>&lt;P&gt;The context is not shared between Scala and Python so you won't be able to access the same variables directly. However you can use &lt;A href="https://docs.databricks.com/getting-started/spark/dataframes.html#run-sql-queries" alt="https://docs.databricks.com/getting-started/spark/dataframes.html#run-sql-queries" target="_blank"&gt;createOrReplaceTempView&lt;/A&gt; to create a temporary view of your dataframe and read it in the other language with &lt;I&gt;read_df = spark.sql("&amp;lt;sql query reading from view&amp;gt;")&lt;/I&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 18:44:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-access-scala-and-python-variables-in-between-shells-in/m-p/14024#M8588</guid>
      <dc:creator>tomasz</dc:creator>
      <dc:date>2022-07-11T18:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access Scala and python variables in-between shells in same notebook.</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-access-scala-and-python-variables-in-between-shells-in/m-p/14025#M8589</link>
      <description>&lt;P&gt;Thanks @Tomasz Bacewicz​&amp;nbsp;, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you mean, even if we use it in same notebook in databricks, it can't share among it, it maintain two different spark context for python and scala.&lt;/P&gt;&lt;P&gt;But I am getting another question like if we create TempView on dataframe, this tempView will maintain on which context level? Could you explain on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 14:54:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-access-scala-and-python-variables-in-between-shells-in/m-p/14025#M8589</guid>
      <dc:creator>Data_Engineer3</dc:creator>
      <dc:date>2022-07-21T14:54:04Z</dc:date>
    </item>
  </channel>
</rss>

