<?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: Attach notebook to cluster via REST API in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/attach-notebook-to-cluster-via-rest-api/m-p/8792#M4329</link>
    <description>&lt;P&gt;Hi @Vivian Wilfred​, I did try that, but that won't allow you to keep the execution context, so it only partially works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess for now I will use this API and export the executed notebook. &lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 12:44:18 GMT</pubDate>
    <dc:creator>akihiko</dc:creator>
    <dc:date>2023-02-27T12:44:18Z</dc:date>
    <item>
      <title>Attach notebook to cluster via REST API</title>
      <link>https://community.databricks.com/t5/data-engineering/attach-notebook-to-cluster-via-rest-api/m-p/8789#M4326</link>
      <description>&lt;P&gt;Is it possible to attach a notebook to cluster and run it via the REST API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The closest approach I have found is to run a notebook, export the results (HTML!) and import it into the workspace again, but this does not allow us to retain the original execution context. The 1.2 API allows for the creation and manipulation of execution contexts, but I can't figure out how to actual attach a notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My use-case is that we have notebook templates for security incidents that contain some pre-defined cells/queries. We want the system to run these queries before handing the notebook off to an analyst where she can do further analysis. &lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 07:47:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/attach-notebook-to-cluster-via-rest-api/m-p/8789#M4326</guid>
      <dc:creator>akihiko</dc:creator>
      <dc:date>2023-02-24T07:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Attach notebook to cluster via REST API</title>
      <link>https://community.databricks.com/t5/data-engineering/attach-notebook-to-cluster-via-rest-api/m-p/8790#M4327</link>
      <description>&lt;P&gt;Hi @Akihiko Nagata​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think for now we don't have such option available through databricks API.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 08:17:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/attach-notebook-to-cluster-via-rest-api/m-p/8790#M4327</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2023-02-24T08:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Attach notebook to cluster via REST API</title>
      <link>https://community.databricks.com/t5/data-engineering/attach-notebook-to-cluster-via-rest-api/m-p/8791#M4328</link>
      <description>&lt;P&gt;Hi @Akihiko Nagata​&amp;nbsp;, have you checked the jobs API? You can run a job on the existing cluster that can use the notebook of concern. I believe this is the only way.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsRunsSubmit" target="test_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsRunsSubmit&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 14:33:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/attach-notebook-to-cluster-via-rest-api/m-p/8791#M4328</guid>
      <dc:creator>Vivian_Wilfred</dc:creator>
      <dc:date>2023-02-24T14:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Attach notebook to cluster via REST API</title>
      <link>https://community.databricks.com/t5/data-engineering/attach-notebook-to-cluster-via-rest-api/m-p/8792#M4329</link>
      <description>&lt;P&gt;Hi @Vivian Wilfred​, I did try that, but that won't allow you to keep the execution context, so it only partially works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess for now I will use this API and export the executed notebook. &lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 12:44:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/attach-notebook-to-cluster-via-rest-api/m-p/8792#M4329</guid>
      <dc:creator>akihiko</dc:creator>
      <dc:date>2023-02-27T12:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Attach notebook to cluster via REST API</title>
      <link>https://community.databricks.com/t5/data-engineering/attach-notebook-to-cluster-via-rest-api/m-p/85009#M37227</link>
      <description>&lt;P&gt;I'm looking for a way to programmatically copy a notebook in Databricks using the workspace/export and workspace/import APIs. Once the notebook is copied, I want to automatically attach it to a specific cluster using its cluster ID. The challenge is that I can't use Jobs because the notebook contains widgets that require user interaction.&lt;/P&gt;&lt;P&gt;Is there a way to achieve this, or does anyone know of a workaround to programmatically attach a notebook to a cluster after it has been imported?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 21:07:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/attach-notebook-to-cluster-via-rest-api/m-p/85009#M37227</guid>
      <dc:creator>baert23</dc:creator>
      <dc:date>2024-08-27T21:07:38Z</dc:date>
    </item>
  </channel>
</rss>

