<?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: Import Function from Notebook to Notebook in ArcGIS Online in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/import-function-from-notebook-to-notebook-in/m-p/1550554#M1489</link>
    <description>&lt;P&gt;Thank you for your suggestion. That is an interesting idea.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 17:50:19 GMT</pubDate>
    <dc:creator>sandra555</dc:creator>
    <dc:date>2024-10-21T17:50:19Z</dc:date>
    <item>
      <title>Import Function from Notebook to Notebook in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/import-function-from-notebook-to-notebook-in/m-p/1549153#M1487</link>
      <description>&lt;P&gt;I want to make a notebook that contains some functions, then use those functions in other notebooks. I have not been able to figure out how to import a function for one notebook into another? I tried:&lt;/P&gt;&lt;P&gt;%run test_function.ipynb&lt;/P&gt;&lt;P&gt;but get this message:&amp;nbsp;&lt;SPAN class=""&gt;Exception&lt;/SPAN&gt;: File `'test_function.ipynb.py'` not found.&lt;/P&gt;&lt;P&gt;The notebooks are in the same "Folder" in ArcGIS online. I would like to know how to import functions for notebooks in the same folder and in different folders.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 17:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/import-function-from-notebook-to-notebook-in/m-p/1549153#M1487</guid>
      <dc:creator>sandra555</dc:creator>
      <dc:date>2024-10-16T17:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Import Function from Notebook to Notebook in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/import-function-from-notebook-to-notebook-in/m-p/1549786#M1488</link>
      <description>&lt;P&gt;Folders in ArcGIS Online are not the same as folders on your computer.&lt;/P&gt;&lt;P&gt;I don't believe it's possible to call functions from one notebook in another notebook in ArcGIS Online. Each notebook operates independently and you would need to copy the functions/code from one notebook to another.&lt;/P&gt;&lt;P&gt;I believe the only real interaction is executing another notebook:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.notebook.html#execute-notebook" target="_blank"&gt;https://developers.arcgis.com/python/latest/api-reference/arcgis.notebook.html#execute-notebook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you have a lot of notebooks and functions used across them you could consider embedding the functions as a script file and then writing a python notebook that downloads the notebook, replaces the script file and then replaces the notebook in ArcGIS Online (effectively maintaining functions across multiple notebooks).&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 01:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/import-function-from-notebook-to-notebook-in/m-p/1549786#M1488</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2024-10-18T01:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Import Function from Notebook to Notebook in ArcGIS Online</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/import-function-from-notebook-to-notebook-in/m-p/1550554#M1489</link>
      <description>&lt;P&gt;Thank you for your suggestion. That is an interesting idea.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 17:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/import-function-from-notebook-to-notebook-in/m-p/1550554#M1489</guid>
      <dc:creator>sandra555</dc:creator>
      <dc:date>2024-10-21T17:50:19Z</dc:date>
    </item>
  </channel>
</rss>

