<?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 Running model  in Notebook in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/running-model-in-notebook/m-p/1284795#M68652</link>
    <description>&lt;P&gt;I've got to either be missing something obvious or misunderstanding the use of notebook completely.&lt;/P&gt;&lt;P&gt;I'm trying to string a bunch of simple models together to run in notebook.&lt;/P&gt;&lt;P&gt;They run as expected in Model Builder, but they just return the two print statements within "try" without&amp;nbsp; in the snippet below (path hidden and the &amp;lt;space&amp;gt; didn't past into the spoiler). Various models do different things (table exports, change shapefiles, pull data from different places, etc.) though they reside in the same toolbox. What'd I miss?&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;arcpy.ImportToolbox("&lt;EM&gt;secret path to toolbox...&lt;/EM&gt;", "tbx")&lt;/P&gt;&lt;P&gt;####Table Exports####&lt;/P&gt;&lt;P&gt;#ManatronExportsToAssessorTablesPro&lt;BR /&gt;#will not be needed once everything is converted to Pro&lt;BR /&gt;try:&lt;BR /&gt;print("start ManatronExportsToAssessorTablesPro")&lt;BR /&gt;arcpy.ManatronExportsToAssessorTablesPro_tbx&lt;BR /&gt;print("finish ManatronExportsToAssessorTablesPro")&lt;BR /&gt;except:&lt;BR /&gt;print("failed ManatronExportsToAssessorTablesPro")&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tycho&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2023 16:23:59 GMT</pubDate>
    <dc:creator>TychoGranville</dc:creator>
    <dc:date>2023-05-02T16:23:59Z</dc:date>
    <item>
      <title>Running model  in Notebook</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-model-in-notebook/m-p/1284795#M68652</link>
      <description>&lt;P&gt;I've got to either be missing something obvious or misunderstanding the use of notebook completely.&lt;/P&gt;&lt;P&gt;I'm trying to string a bunch of simple models together to run in notebook.&lt;/P&gt;&lt;P&gt;They run as expected in Model Builder, but they just return the two print statements within "try" without&amp;nbsp; in the snippet below (path hidden and the &amp;lt;space&amp;gt; didn't past into the spoiler). Various models do different things (table exports, change shapefiles, pull data from different places, etc.) though they reside in the same toolbox. What'd I miss?&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;arcpy.ImportToolbox("&lt;EM&gt;secret path to toolbox...&lt;/EM&gt;", "tbx")&lt;/P&gt;&lt;P&gt;####Table Exports####&lt;/P&gt;&lt;P&gt;#ManatronExportsToAssessorTablesPro&lt;BR /&gt;#will not be needed once everything is converted to Pro&lt;BR /&gt;try:&lt;BR /&gt;print("start ManatronExportsToAssessorTablesPro")&lt;BR /&gt;arcpy.ManatronExportsToAssessorTablesPro_tbx&lt;BR /&gt;print("finish ManatronExportsToAssessorTablesPro")&lt;BR /&gt;except:&lt;BR /&gt;print("failed ManatronExportsToAssessorTablesPro")&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tycho&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 16:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-model-in-notebook/m-p/1284795#M68652</guid>
      <dc:creator>TychoGranville</dc:creator>
      <dc:date>2023-05-02T16:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running model  in Notebook</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-model-in-notebook/m-p/1284825#M68663</link>
      <description>&lt;P&gt;you import toolboxes which is fine, but is this supposed to be a model?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcpy.ManatronExportsToAssessorTablesPro_tbx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it definitely won't work since it doesn't need to be prefaced by arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PS,&amp;nbsp; providin proper formatting would be useful&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/t5/python-blog/code-formatting-the-community-version/ba-p/1007633" target="_blank"&gt;Code formatting ... the Community Version - Esri Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 16:58:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-model-in-notebook/m-p/1284825#M68663</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-05-02T16:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Running model  in Notebook</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-model-in-notebook/m-p/1284876#M68675</link>
      <description>&lt;P&gt;Sorry about the indentation. I basically just copied the image from the help doc&amp;nbsp; &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/adding-and-removing-toolboxes.htm" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;and thought it would work if I dumped it into Notepad.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69675iA733E296EC7E49A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I missed the () at the end since none of the models needs an argument - added them and it works. So yep, missed something obvious from not paying attention (as usual).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 18:53:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-model-in-notebook/m-p/1284876#M68675</guid>
      <dc:creator>TychoGranville</dc:creator>
      <dc:date>2023-05-02T18:53:36Z</dc:date>
    </item>
  </channel>
</rss>

