<?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 Latest pushed code is not taken into account by Notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/latest-pushed-code-is-not-taken-into-account-by-notebook/m-p/17767#M11720</link>
    <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I cloned a repo &lt;I&gt;my_repo&lt;/I&gt; in the Dataricks space Repos.&lt;/P&gt;&lt;P&gt;Inside &lt;I&gt;my_repo&lt;/I&gt;, I created a notebook &lt;I&gt;new_experiment&lt;/I&gt; where I can import functions from &lt;I&gt;my_repo&lt;/I&gt;, which is really handy. &lt;/P&gt;&lt;P&gt;When I want to modify a function in &lt;I&gt;my_repo&lt;/I&gt;, I open my local IDE, do the modifications and push them on Github, then I pull the changes on Databricks. The problem is that when I import the function in &lt;I&gt;new_experiment&lt;/I&gt; the changes are not synchronized. &lt;/P&gt;&lt;P&gt;I tried :&lt;/P&gt;&lt;P&gt;%load_ext autoreload %autoreload 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the only solution seems to detach &amp;amp; reattach the cluster, which is a pain as I have to rerun the code from scratch. Is there a better solution? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2022 19:14:40 GMT</pubDate>
    <dc:creator>pgagliardi</dc:creator>
    <dc:date>2022-12-08T19:14:40Z</dc:date>
    <item>
      <title>Latest pushed code is not taken into account by Notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/latest-pushed-code-is-not-taken-into-account-by-notebook/m-p/17767#M11720</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I cloned a repo &lt;I&gt;my_repo&lt;/I&gt; in the Dataricks space Repos.&lt;/P&gt;&lt;P&gt;Inside &lt;I&gt;my_repo&lt;/I&gt;, I created a notebook &lt;I&gt;new_experiment&lt;/I&gt; where I can import functions from &lt;I&gt;my_repo&lt;/I&gt;, which is really handy. &lt;/P&gt;&lt;P&gt;When I want to modify a function in &lt;I&gt;my_repo&lt;/I&gt;, I open my local IDE, do the modifications and push them on Github, then I pull the changes on Databricks. The problem is that when I import the function in &lt;I&gt;new_experiment&lt;/I&gt; the changes are not synchronized. &lt;/P&gt;&lt;P&gt;I tried :&lt;/P&gt;&lt;P&gt;%load_ext autoreload %autoreload 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the only solution seems to detach &amp;amp; reattach the cluster, which is a pain as I have to rerun the code from scratch. Is there a better solution? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 19:14:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/latest-pushed-code-is-not-taken-into-account-by-notebook/m-p/17767#M11720</guid>
      <dc:creator>pgagliardi</dc:creator>
      <dc:date>2022-12-08T19:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Latest pushed code is not taken into account by Notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/latest-pushed-code-is-not-taken-into-account-by-notebook/m-p/59651#M31465</link>
      <description>&lt;P&gt;Use&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;%reload_ext autoreload&lt;/LI-CODE&gt;
&lt;P&gt;instead, it will do your expected behavior.&lt;BR /&gt;You just need to run it once, like&amp;nbsp;&lt;SPAN&gt;%load_ext autoreload %autoreload 2&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 06:39:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/latest-pushed-code-is-not-taken-into-account-by-notebook/m-p/59651#M31465</guid>
      <dc:creator>Jnguyen</dc:creator>
      <dc:date>2024-02-08T06:39:02Z</dc:date>
    </item>
  </channel>
</rss>

