<?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: how to get dbutils in Runtime 13 in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-get-dbutils-in-runtime-13/m-p/4154#M954</link>
    <description>&lt;P&gt;Hi, please use a Machine Learning DBR (Databricks Runtime X.Y for Machine Learning) that comes with DBUtils preinstalled:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/release-notes/runtime/13.0ml.html" alt="https://docs.databricks.com/release-notes/runtime/13.0ml.html" target="_blank"&gt;Databricks Runtime 13.0 for Machine Learning&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 23:45:22 GMT</pubDate>
    <dc:creator>User16463165548</dc:creator>
    <dc:date>2023-05-22T23:45:22Z</dc:date>
    <item>
      <title>how to get dbutils in Runtime 13</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-get-dbutils-in-runtime-13/m-p/4153#M953</link>
      <description>&lt;P&gt;We're using the following method (generated by using dbx) to access dbutils, e.g. to retrieve parameters from secret scopes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    @staticmethod
    def _get_dbutils(spark: SparkSession) -&amp;gt; "dbutils":
        try:
            from pyspark.dbutils import DBUtils  # type: ignore
&amp;nbsp;
            if "dbutils" not in locals():
                utils = DBUtils(spark)
                return utils
            else:
                return locals().get("dbutils")  # type: ignore
        except ImportError:
            return None  # type: ignore&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, I discovered when running on Databricks Runtime 13 that this no longer works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked release notes for 13, but saw nothing relevant. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we access dbutils in library code in runtime 13?&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 12:54:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-get-dbutils-in-runtime-13/m-p/4153#M953</guid>
      <dc:creator>grazie</dc:creator>
      <dc:date>2023-05-19T12:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to get dbutils in Runtime 13</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-get-dbutils-in-runtime-13/m-p/4154#M954</link>
      <description>&lt;P&gt;Hi, please use a Machine Learning DBR (Databricks Runtime X.Y for Machine Learning) that comes with DBUtils preinstalled:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/release-notes/runtime/13.0ml.html" alt="https://docs.databricks.com/release-notes/runtime/13.0ml.html" target="_blank"&gt;Databricks Runtime 13.0 for Machine Learning&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 23:45:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-get-dbutils-in-runtime-13/m-p/4154#M954</guid>
      <dc:creator>User16463165548</dc:creator>
      <dc:date>2023-05-22T23:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to get dbutils in Runtime 13</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-get-dbutils-in-runtime-13/m-p/4155#M955</link>
      <description>&lt;P&gt;We have something similar in our code. This worked using runtime 13 until last week. Also the Machine Learning DBR doesn't work either.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 14:50:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-get-dbutils-in-runtime-13/m-p/4155#M955</guid>
      <dc:creator>colt</dc:creator>
      <dc:date>2023-05-23T14:50:56Z</dc:date>
    </item>
  </channel>
</rss>

