<?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: ArcPro 3.3 custom python toolbox does not register refreshes after editing python source code in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635164#M97439</link>
    <description>&lt;P&gt;I ran into that scenario with various python ides (eg. spyder etc) when I hadn't set up the python editor in the project backstage&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/editing-script-tool-code.htm" target="_blank"&gt;Edit script tool code—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When I wanted to edit a toolbox script, I would right-click on the tool and select Edit.&amp;nbsp; If memory serves this would allow for a refresh whereas if I just launched the ide and edited the script a refresh didn't occur.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Experiment and see if that is the case for VS Code... it works for Spyder for sure&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jul 2025 20:40:09 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2025-07-22T20:40:09Z</dc:date>
    <item>
      <title>ArcPro 3.3 custom python toolbox does not register refreshes after editing python source code</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635124#M97435</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I am modifying a custom python toolbox in ArcGIS Pro 3.3, and I am running into issues getting the toolbox to recognize any changes. I make edits in VS Code, save the edits, right click on toolbox, and then click refresh. However, I do not see the changed reflected the next time I open the tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an error I got about RemoveSpatialIndex:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MBocek_0-1753210419164.png" style="width: 487px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136947i2F5111C64E3AB96D/image-dimensions/487x95?v=v2" width="487" height="95" role="button" title="MBocek_0-1753210419164.png" alt="MBocek_0-1753210419164.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I had commented it out before saving and then refreshing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MBocek_1-1753210457112.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136948iE24FA317F006E58D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MBocek_1-1753210457112.png" alt="MBocek_1-1753210457112.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've also tried clearing the cache from Pro Options and that doesn't work.&amp;nbsp;I can get the tool to register edits after I quit Pro and reopen it. Has anyone else ran into this? or is there a step I've missed in the workflow?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 18:57:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635124#M97435</guid>
      <dc:creator>MBocek</dc:creator>
      <dc:date>2025-07-22T18:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro 3.3 custom python toolbox does not register refreshes after editing python source code</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635163#M97438</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/795061"&gt;@MBocek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you create a new toolbox with a different name and then link it to the Pro project is the outcome the same? Also, I would check to see if the toolbox is in Onedrive, that could potentially cause syncing issues to occur on the toolbox itself.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 20:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635163#M97438</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-07-22T20:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro 3.3 custom python toolbox does not register refreshes after editing python source code</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635164#M97439</link>
      <description>&lt;P&gt;I ran into that scenario with various python ides (eg. spyder etc) when I hadn't set up the python editor in the project backstage&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/editing-script-tool-code.htm" target="_blank"&gt;Edit script tool code—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When I wanted to edit a toolbox script, I would right-click on the tool and select Edit.&amp;nbsp; If memory serves this would allow for a refresh whereas if I just launched the ide and edited the script a refresh didn't occur.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Experiment and see if that is the case for VS Code... it works for Spyder for sure&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 20:40:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635164#M97439</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-07-22T20:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro 3.3 custom python toolbox does not register refreshes after editing python source code</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635226#M97445</link>
      <description>&lt;P&gt;Hey Dan,&lt;/P&gt;&lt;P&gt;I added VS Code to the Script Editor in the Pro options. I was able to open the .pty file in VS Code, edit, and then refresh in Pro. However, any helper .py files that I am importing to the main python toolbox do not get refreshed. The 'edit' option always opens the .pyt file only. It's an improvement, but I'll keep trying to see if I can refresh all scripts.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 22:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635226#M97445</guid>
      <dc:creator>MBocek</dc:creator>
      <dc:date>2025-07-22T22:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro 3.3 custom python toolbox does not register refreshes after editing python source code</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635227#M97446</link>
      <description>&lt;P&gt;Hello Cody,&lt;/P&gt;&lt;P&gt;I have noticed this behavior with at least 2 python toolboxes. I don't recall having this issue in Pro 2.x, but I wasn't as advanced in coding either. The toolboxes have been saved to a shared drive. In theory, it would be nice to use the toolboxes on different machines via the shared drive, but I can try the C drive to see if that helps at all.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 22:23:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635227#M97446</guid>
      <dc:creator>MBocek</dc:creator>
      <dc:date>2025-07-22T22:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro 3.3 custom python toolbox does not register refreshes after editing python source code</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635289#M97448</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;Why use python toolbox when regular toolbox where the python script saved separately is so much better.&lt;/P&gt;&lt;P&gt;You can use IDLE like pycharm to edit your code.&lt;/P&gt;&lt;P&gt;you just save the script and the toolbox see it immediately without need of any refresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can run it within the IDLE for testing using the debug tools and you can use source control to keep history.&lt;/P&gt;&lt;P&gt;None of this is easy to do in python toolbox.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 05:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635289#M97448</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-07-23T05:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro 3.3 custom python toolbox does not register refreshes after editing python source code</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635584#M97470</link>
      <description>&lt;P&gt;I think there is some confusion of what a python toolbox is on my end. I am referring to a toolbox (.pyt) that calls python scripts (.py) that are outside of the original .pyt file. How is that different than what you've described?&lt;/P&gt;&lt;P&gt;For running the tool, are you suggesting running the python toolbox from terminal in IDE? What benefits would IDLE have over VS Code or Pycharm? I would prefer to run the toolbox in Pro to validate the shapefile uploads and the attribute table, but that is something I could explore if it is more responsive than Pro.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 17:02:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635584#M97470</guid>
      <dc:creator>MBocek</dc:creator>
      <dc:date>2025-07-23T17:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro 3.3 custom python toolbox does not register refreshes after editing python source code</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635823#M97504</link>
      <description>&lt;P&gt;I am using atbx file, that is the default toolbox.&lt;/P&gt;&lt;P&gt;This toolbox have no python code in it (The validation code does not published anyway).&lt;/P&gt;&lt;P&gt;I found it the easiest way.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 05:04:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1635823#M97504</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-07-24T05:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro 3.3 custom python toolbox does not register refreshes after editing python source code</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1637381#M97649</link>
      <description>&lt;P&gt;I have a similar setup (a main .pyt toolbox that loads individual tools from separate .py files) and encountered this issue years ago.&amp;nbsp; I don't remember exactly how I landed on it (probably from &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/refresh-python-script-with-arcgis-pro-tool/td-p/101940" target="_blank" rel="noopener"&gt;old&lt;/A&gt; &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/need-to-restart-pro-every-time-i-edit-a-toolbox-s/td-p/1223626" target="_blank" rel="noopener"&gt;threads&lt;/A&gt;) but this approach did fix the issue for me.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#import base modules and define path to individual tool scripts
import sys
import os
import arcpy
from importlib import reload

# Assuming you have a folder named toolboxscripts in the same directory as your .pyt file
sys.path.append(os.path.join(os.path.dirname(__file__), "toolboxscripts"))

#import the individual tool scripts, forcing a reload of any imported tools/modules
    #otherwise you would have to restart Arc each time you edited an individual tool script
    #this way you just have to right click -&amp;gt; Refresh the toolbox
    
import filename1
reload(filename1)
from filename1 import ToolName1

import filename2
reload(filename2)
from filename2import ToolName2

class Toolbox(object):
    def __init__(self):
        self.tools  =  [ToolName1,
                        ToolName2]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 17:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1637381#M97649</guid>
      <dc:creator>BrennanSmith1</dc:creator>
      <dc:date>2025-07-29T17:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro 3.3 custom python toolbox does not register refreshes after editing python source code</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1665260#M100088</link>
      <description>&lt;P&gt;That worked. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 20:05:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpro-3-3-custom-python-toolbox-does-not-register/m-p/1665260#M100088</guid>
      <dc:creator>MBocek</dc:creator>
      <dc:date>2025-11-12T20:05:21Z</dc:date>
    </item>
  </channel>
</rss>

