<?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 set environment (client) on notebook via API/Terraform provider? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-set-environment-client-on-notebook-via-api-terraform/m-p/104738#M41861</link>
    <description>&lt;P class="_1t7bu9h1 paragraph"&gt;Unfortunately, there is no direct way to set the client version for a notebook task via the Terraform provider or the API without using the UI. The error message suggests that the &lt;CODE&gt;%pip&lt;/CODE&gt; magic command is the recommended approach for installing dependencies within a notebook, but this does not apply to setting the client version.&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;Given the constraints, you might need to consider alternative approaches, such as:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Using a different task type&lt;/STRONG&gt;: If possible, consider using a different task type that allows setting the client version directly.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Pre-configuring the environment&lt;/STRONG&gt;: Set up the environment with the required client version before running the notebook task. This might involve creating a custom cluster with the desired configuration.&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Wed, 08 Jan 2025 16:27:50 GMT</pubDate>
    <dc:creator>Walter_C</dc:creator>
    <dc:date>2025-01-08T16:27:50Z</dc:date>
    <item>
      <title>How to set environment (client) on notebook via API/Terraform provider?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-set-environment-client-on-notebook-via-api-terraform/m-p/104734#M41859</link>
      <description>&lt;P&gt;I am deploying a job with a notebook task via the Terraform provider. I want to set the client version to 2. I do NOT need to install any dependencies. I just want to use the new client version for the serverless compute. How do I do this with the Terraform provider or the API? Going through the UI is not acceptable.&lt;/P&gt;&lt;P&gt;It seems impossible:&lt;/P&gt;&lt;P&gt;│ Error: cannot create job: A task environment can not be provided for notebook task config. Please use the %pip magic command to install notebook-scoped Python libraries and Python wheel packages&lt;/P&gt;&lt;P&gt;The error message is not helpful. There are no magic commands that I can run inside a notebook to change the client version.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 16:16:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-set-environment-client-on-notebook-via-api-terraform/m-p/104734#M41859</guid>
      <dc:creator>korijn</dc:creator>
      <dc:date>2025-01-08T16:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to set environment (client) on notebook via API/Terraform provider?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-set-environment-client-on-notebook-via-api-terraform/m-p/104738#M41861</link>
      <description>&lt;P class="_1t7bu9h1 paragraph"&gt;Unfortunately, there is no direct way to set the client version for a notebook task via the Terraform provider or the API without using the UI. The error message suggests that the &lt;CODE&gt;%pip&lt;/CODE&gt; magic command is the recommended approach for installing dependencies within a notebook, but this does not apply to setting the client version.&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;Given the constraints, you might need to consider alternative approaches, such as:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Using a different task type&lt;/STRONG&gt;: If possible, consider using a different task type that allows setting the client version directly.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Pre-configuring the environment&lt;/STRONG&gt;: Set up the environment with the required client version before running the notebook task. This might involve creating a custom cluster with the desired configuration.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 08 Jan 2025 16:27:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-set-environment-client-on-notebook-via-api-terraform/m-p/104738#M41861</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2025-01-08T16:27:50Z</dc:date>
    </item>
  </channel>
</rss>

