<?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: Can we use/import python notebooks in Scala notebooks and use any functions written in Python, vice versa as well? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/can-we-use-import-python-notebooks-in-scala-notebooks-and-use/m-p/22093#M15101</link>
    <description>&lt;P&gt;Yes and no. Yes only in the sense that you can mix Python and Scala code in a notebook. But no you can't directly call Python code from Scala or vice versa - they are just entirely separate languages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is share data across languages via DataFrames. Register one as a temp view and it becomes available to other interpreters. You can also register a UDF in Scala and call it via Spark SQL statements from Python. This works because Python ultimately is wrapping execution in an underlying JVM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe the reverse is true - can't call Python UDFs from Scala.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 10:05:13 GMT</pubDate>
    <dc:creator>sean_owen</dc:creator>
    <dc:date>2021-06-22T10:05:13Z</dc:date>
    <item>
      <title>Can we use/import python notebooks in Scala notebooks and use any functions written in Python, vice versa as well?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-use-import-python-notebooks-in-scala-notebooks-and-use/m-p/22092#M15100</link>
      <description />
      <pubDate>Mon, 21 Jun 2021 02:10:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-use-import-python-notebooks-in-scala-notebooks-and-use/m-p/22092#M15100</guid>
      <dc:creator>Srikanth_Gupta_</dc:creator>
      <dc:date>2021-06-21T02:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use/import python notebooks in Scala notebooks and use any functions written in Python, vice versa as well?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-use-import-python-notebooks-in-scala-notebooks-and-use/m-p/22093#M15101</link>
      <description>&lt;P&gt;Yes and no. Yes only in the sense that you can mix Python and Scala code in a notebook. But no you can't directly call Python code from Scala or vice versa - they are just entirely separate languages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is share data across languages via DataFrames. Register one as a temp view and it becomes available to other interpreters. You can also register a UDF in Scala and call it via Spark SQL statements from Python. This works because Python ultimately is wrapping execution in an underlying JVM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe the reverse is true - can't call Python UDFs from Scala.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 10:05:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-use-import-python-notebooks-in-scala-notebooks-and-use/m-p/22093#M15101</guid>
      <dc:creator>sean_owen</dc:creator>
      <dc:date>2021-06-22T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use/import python notebooks in Scala notebooks and use any functions written in Python, vice versa as well?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-we-use-import-python-notebooks-in-scala-notebooks-and-use/m-p/22094#M15102</link>
      <description>&lt;P&gt;Temp Views and Global Temp Views are the most common way of sharing data across languages within a Notebook/Cluster&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 04:13:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-we-use-import-python-notebooks-in-scala-notebooks-and-use/m-p/22094#M15102</guid>
      <dc:creator>aladda</dc:creator>
      <dc:date>2021-06-23T04:13:02Z</dc:date>
    </item>
  </channel>
</rss>

