laptop and a wrench

Bug

ArcGIS Notebooks does not honor edits made to a custom Python module referenced if the module is edited with the project open.

ArcGIS Pro
Bug ID Number BUG-000166951
SubmittedApril 23, 2024
Last ModifiedOctober 7, 2024
Applies toArcGIS Pro
Version found3.2.2
Operating SystemN/A
Operating System VersionN/A
StatusDuplicate

Additional Information

Duplicate of BUG-000123059: This has to do with caching imported modules to ArcGIS Pro. This issue can be circumvented by using importlib to force a reload of the module (see added workaround) while efforts are made to fix the related bug.

Workaround

  • Closing and re-opening ArcGIS Pro.
  • Renaming the .py file and the reference to it in the script.

Using importlib allows to reload imported modules. Example: import importlib, import some_module as sm, importlib.reload(sm) # forces reload with every run, so no need to restart ArcGIS Pro.

Steps to Reproduce

Bug ID: BUG-000166951

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options