<?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: Databricks Repo in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/databricks-repo/m-p/35674#M154</link>
    <description>&lt;P&gt;Define an environment in a requirements.txt file in the repo. Then just run pip install -r requirements.txt from a notebook to install the packages and create the environment for the notebook.&lt;/P&gt;&lt;P&gt;Using Repos is practically the same as the Workspace, except it is linked to git (so you need to commit/push/pull) and the paths are different.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 13:12:15 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2023-06-28T13:12:15Z</dc:date>
    <item>
      <title>Databricks Repo</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-repo/m-p/35668#M153</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;What is the correct way to install packages from requierements.txt within databricks repo. Do I need to add some utils notebooks with additional scripts to my repo and run them before any of the script from the file? I suppose adding pip install on every file is a bit extreme so what is correct approach to this?&lt;/P&gt;&lt;P&gt;Would greatly appreciate any help, since it is my first time working with databricks throught repo&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 12:02:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-repo/m-p/35668#M153</guid>
      <dc:creator>dbsnoo</dc:creator>
      <dc:date>2023-06-28T12:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Repo</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-repo/m-p/35674#M154</link>
      <description>&lt;P&gt;Define an environment in a requirements.txt file in the repo. Then just run pip install -r requirements.txt from a notebook to install the packages and create the environment for the notebook.&lt;/P&gt;&lt;P&gt;Using Repos is practically the same as the Workspace, except it is linked to git (so you need to commit/push/pull) and the paths are different.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 13:12:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-repo/m-p/35674#M154</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-06-28T13:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Repo</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-repo/m-p/35681#M156</link>
      <description>&lt;P&gt;Appreciate your response,&amp;nbsp;&lt;/P&gt;&lt;P&gt;pip install -r requirements.txt worked when I created new notebook and run some code there, but not for the files in the repo. When I try to run '*.py' file in my repo through databricks run command, I get '&lt;SPAN class=""&gt;ModuleNotFoundError'. M&lt;/SPAN&gt;&lt;SPAN class=""&gt;aybe I am just misunderstanding the concept here, and you are not suppose to run those files directly in databricks and if you do, it is better to have them as notebook files as opposed to '.py.'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;As a side note,&amp;nbsp;I was reading on global init script and wondering if that would be a way to run my files within databricks.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Maybe someone could point me to some information (docs, video or anything) about working in databricks repo that goes beyond integration&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 14:11:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-repo/m-p/35681#M156</guid>
      <dc:creator>dbsnoo</dc:creator>
      <dc:date>2023-06-28T14:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Repo</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-repo/m-p/35683#M157</link>
      <description>&lt;P&gt;The .py files are very handy if you create classes etc.&amp;nbsp; They contain modules which you can import into a notebook with the import statement.&amp;nbsp; They are not meant to be run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 14:16:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-repo/m-p/35683#M157</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-06-28T14:16:33Z</dc:date>
    </item>
  </channel>
</rss>

