<?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 The notebook in ArcGIS Pro kept recalling previous results even I haved cleared caches in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1481809#M84014</link>
    <description>&lt;P&gt;Hi I encountered a werid situation as follows:&lt;/P&gt;&lt;P&gt;1. I set my working space by using the code following code and then using UpdateCursor api:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;import arcpy
from pprint import pprint

# Setting the default location for geoprocessing tool inputs and outputs.
arcpy.env.workspace = r"original_path\....gdb"
arcpy.env.overwriteOutput = True

merge_chinesefields = ["CHINESENAME","CHINESESTREETNAME"]

with arcpy.da.UpdateCursor("test", merge_chinesefields) as cursor:
    for row in cursor:
        print (row)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I closed ArcGIS Pro and changed my whole working folder from "original_path\....gdb" to a new place as "new_path\....gdb"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I reopened the ArcGIS Project file from the new folder and then re-runed the exactly same code as above without changing the workspace. Therefore, in this time the code was still&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;arcpy.env.workspace = r"original_path\....gdb"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. The werid thing is that although I did not change the workspace path, the code still worked and succesfully printed each row of the table. The code did not report error like:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Input Workspace: Dataset original_path\....gdb does not exist or is not supported&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. It seemed that the notebook can memory previous results and recall the previous results without noticing&amp;nbsp; path change. Therefore, I tried the command of "&lt;SPAN&gt;arcpy.management.ClearWorkspaceCache()&lt;/SPAN&gt;" as well as the process "Options - Display - Clear Cache Now". But the kernel can still run without errors and return the previous print result to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone encounter the same problem before? Is it because ArcGIS Pro somehow automatically generate a connection to my folder whereever it is stored in my computer?&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 05:58:42 GMT</pubDate>
    <dc:creator>clai</dc:creator>
    <dc:date>2024-05-31T05:58:42Z</dc:date>
    <item>
      <title>The notebook in ArcGIS Pro kept recalling previous results even I haved cleared caches</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1481809#M84014</link>
      <description>&lt;P&gt;Hi I encountered a werid situation as follows:&lt;/P&gt;&lt;P&gt;1. I set my working space by using the code following code and then using UpdateCursor api:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;import arcpy
from pprint import pprint

# Setting the default location for geoprocessing tool inputs and outputs.
arcpy.env.workspace = r"original_path\....gdb"
arcpy.env.overwriteOutput = True

merge_chinesefields = ["CHINESENAME","CHINESESTREETNAME"]

with arcpy.da.UpdateCursor("test", merge_chinesefields) as cursor:
    for row in cursor:
        print (row)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I closed ArcGIS Pro and changed my whole working folder from "original_path\....gdb" to a new place as "new_path\....gdb"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I reopened the ArcGIS Project file from the new folder and then re-runed the exactly same code as above without changing the workspace. Therefore, in this time the code was still&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;arcpy.env.workspace = r"original_path\....gdb"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. The werid thing is that although I did not change the workspace path, the code still worked and succesfully printed each row of the table. The code did not report error like:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Input Workspace: Dataset original_path\....gdb does not exist or is not supported&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. It seemed that the notebook can memory previous results and recall the previous results without noticing&amp;nbsp; path change. Therefore, I tried the command of "&lt;SPAN&gt;arcpy.management.ClearWorkspaceCache()&lt;/SPAN&gt;" as well as the process "Options - Display - Clear Cache Now". But the kernel can still run without errors and return the previous print result to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone encounter the same problem before? Is it because ArcGIS Pro somehow automatically generate a connection to my folder whereever it is stored in my computer?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 05:58:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1481809#M84014</guid>
      <dc:creator>clai</dc:creator>
      <dc:date>2024-05-31T05:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: The notebook in ArcGIS Pro kept recalling previous results even I haved cleared caches</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1486793#M84291</link>
      <description>&lt;P&gt;Here's another example of Notebooks remembering things you'd prefer they didn't&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Once you assign a value to a variable in an ArcGIS Pro notebook, it will remember and use that variable for the remainder of that session until you close ArcGIS Pro.&amp;nbsp;It's super easy to demonstrate. It is even better if you do the same thing side by side in IDLE.&lt;BR /&gt;&lt;BR /&gt;In IDLE create, and reference a variable:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicZatorsky_AEC_0-1717717592450.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106423iD0E40FFE1FEC170B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicZatorsky_AEC_0-1717717592450.png" alt="MicZatorsky_AEC_0-1717717592450.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then, edit the code to delete the variable and re-run.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicZatorsky_AEC_1-1717717644610.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106424i3FE36F53E639E3C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicZatorsky_AEC_1-1717717644610.png" alt="MicZatorsky_AEC_1-1717717644610.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;X is not defined.&lt;/STRONG&gt;&amp;nbsp; Good!&lt;BR /&gt;&lt;BR /&gt;Let's try the same experiment in a Notebook.&amp;nbsp;First, when the variable exists:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicZatorsky_AEC_2-1717717777857.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106425iE7111F71E0D69C0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicZatorsky_AEC_2-1717717777857.png" alt="MicZatorsky_AEC_2-1717717777857.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then, when it does &lt;U&gt;not&lt;/U&gt; exist&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicZatorsky_AEC_3-1717717832409.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106427i460B55DF0971EFE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MicZatorsky_AEC_3-1717717832409.png" alt="MicZatorsky_AEC_3-1717717832409.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It remembers.&amp;nbsp; Refactoring code to rename variables in a Notebook is fraught with danger.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 23:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1486793#M84291</guid>
      <dc:creator>MicZatorsky_AEC</dc:creator>
      <dc:date>2024-06-06T23:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: The notebook in ArcGIS Pro kept recalling previous results even I haved cleared caches</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1496972#M84913</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/414513" target="_self"&gt;&lt;SPAN class=""&gt;MicZatorsky,&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Yes, I think that's exactly what I encountered in ArcGIS Notebook. And even I closed ArcGIS Pro and re-opened it, Notebook still remembered what I deleted. I don't know how I can clear its memories. Do you have any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 07:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1496972#M84913</guid>
      <dc:creator>clai</dc:creator>
      <dc:date>2024-06-25T07:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: The notebook in ArcGIS Pro kept recalling previous results even I haved cleared caches</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1497448#M84945</link>
      <description>&lt;P&gt;No, but I've yet to notice this persist between sessions.&amp;nbsp; A restart usually fixes it.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 04:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1497448#M84945</guid>
      <dc:creator>MicZatorsky_AEC</dc:creator>
      <dc:date>2024-06-26T04:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: The notebook in ArcGIS Pro kept recalling previous results even I haved cleared caches</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1498052#M85001</link>
      <description>&lt;P&gt;You mean restarting the ArcGIS Pro software?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 04:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1498052#M85001</guid>
      <dc:creator>clai</dc:creator>
      <dc:date>2024-06-27T04:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: The notebook in ArcGIS Pro kept recalling previous results even I haved cleared caches</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1498570#M85029</link>
      <description>&lt;P&gt;Standalone Jupyter notebooks have a 'Kernel &amp;gt; Restart" menu option, but Pro does not, so you have to restart Pro.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 19:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/the-notebook-in-arcgis-pro-kept-recalling-previous/m-p/1498570#M85029</guid>
      <dc:creator>MicZatorsky_AEC</dc:creator>
      <dc:date>2024-06-27T19:08:44Z</dc:date>
    </item>
  </channel>
</rss>

