<?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: Python Notebook: Determine if Processes Completed after/while Running a Cell in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046696#M275</link>
    <description>&lt;P&gt;Zachary... note... ResetProgressor is one of a series of methods, it just happened to be at the top of the table of contents listing for creating and working with progress bars.&lt;/P&gt;&lt;P&gt;Also... Spyder has a Notebook addon which I use when I don't feel like working in Pro, or on browser incarnations of Jupter Notebook, JupyterLab&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 23:20:21 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-04-13T23:20:21Z</dc:date>
    <item>
      <title>Python Notebook: Determine if Processes Completed after/while Running a Cell</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046394#M272</link>
      <description>&lt;P&gt;I recently began using the Pro Notebook.&amp;nbsp; I used to operate like a caveman and simply use a Python interpreter independently of ArcMap.&amp;nbsp; BUT, Pro has the integrated Notebook which is great.&amp;nbsp; I am however curious how to display two things: 1) Generally results after running each cell.&amp;nbsp; 2) Within that, arcpy results.&lt;/P&gt;&lt;P&gt;For instance I write some utility functions like this (obviously something not just wrapping an arcpy function, but just for simplicity)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# located in c:/users/zach/code/arcpy_abstractions.py
def move_feats(fcs_in, fp_out, fcs_name_out):
  arcpy.FeatureClassToFeatureClass_conversion(fcs_in, fp_out, fcs_name_out)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imagine the below code block is a cell in the notebook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sys.path.append('c:/users/zach/code')
from arcpy_abstractons import move_feats
fcs_in = 'path/to/fcs_to_move'
fp_out = 'path/to/another_gdb'
fcs_name_new = 'fcs_renamed'
move_feats(fcs_in, fp_out, fcs_name_name)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, once I run this cell I can immediately run another cell EVEN if the cell and particularly the arcpy function is still processing.&amp;nbsp; Is there a way to show a progress bar or any indication that the cell has completed its operations?&amp;nbsp; I want to move and delete multiple files by basically looping through a pandas dataframe, so I need to know the current progress.&amp;nbsp; I am utilizing logging and print statements, but that's too indirect.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 15:36:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046394#M272</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2021-04-13T15:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook: Determine if Processes Completed after/while Running a Cell</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046563#M273</link>
      <description>&lt;P&gt;The only thing remote applicable from the arcpy-ish world would be the progressbar&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/resetprogressor.htm" target="_blank"&gt;ResetProgressor—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which I doubt would work in a notebook.&lt;/P&gt;&lt;P&gt;It comes up as topics in Jupyter Notebook and Jupyter Lab,&lt;/P&gt;&lt;P&gt;&lt;A href="https://towardsdatascience.com/ever-wanted-progress-bars-in-jupyter-bdb3988d9cfc" target="_blank"&gt;Ever wanted Progress Bars in Jupyter? | Towards Data Science&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/57343134/jupyter-notebooks-not-displaying-progress-bars" target="_blank"&gt;python - Jupyter Notebooks not displaying progress bars - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I haven't explored them... I just get coffee if I suspect something will take some time &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 19:16:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046563#M273</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-13T19:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook: Determine if Processes Completed after/while Running a Cell</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046694#M274</link>
      <description>&lt;P&gt;Thanks Dan!&amp;nbsp; The Reset Progressor seems promising - but it would be nice to have a solution that would work in multiple development environments (for lack of a better...understanding of terminology on my end).&amp;nbsp; At some point I'd like to get over to Spyder or PyCharm.&amp;nbsp; You have advised me in the past on similar endeavors - via forum responses.&amp;nbsp; I'm waiting for a project to end so I can update ArcMap from 10.6 to 10.8 and THEN attempt to fix problems with my Python environment.&amp;nbsp; THEN jump into Spyder (as you prostelytized within the last year or two).&amp;nbsp; The Notebook is really cool, particularly for training coworkers (and myself).&amp;nbsp; Alas, for now print statements and logging for some semblance of real time status...BUT! I'll sprinkle a few ResetProgressor statements in my code and see how that fares for now.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 23:16:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046694#M274</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2021-04-13T23:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook: Determine if Processes Completed after/while Running a Cell</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046696#M275</link>
      <description>&lt;P&gt;Zachary... note... ResetProgressor is one of a series of methods, it just happened to be at the top of the table of contents listing for creating and working with progress bars.&lt;/P&gt;&lt;P&gt;Also... Spyder has a Notebook addon which I use when I don't feel like working in Pro, or on browser incarnations of Jupter Notebook, JupyterLab&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 23:20:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046696#M275</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-13T23:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook: Determine if Processes Completed after/while Running a Cell</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046768#M276</link>
      <description>&lt;P&gt;While the code is still executing, the cell number will be displayed as&lt;/P&gt;&lt;P&gt;In [*]:&lt;/P&gt;&lt;P&gt;When the cell finished running, the number will be displayed as&lt;/P&gt;&lt;P&gt;In [5]:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Personally, I add a print statement to the end of each cell...&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 07:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046768#M276</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-04-14T07:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook: Determine if Processes Completed after/while Running a Cell</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046976#M277</link>
      <description>&lt;P&gt;that's handy!&amp;nbsp; Definitely the case.&amp;nbsp; Thanks Johannes.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 14:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1046976#M277</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2021-04-14T14:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook: Determine if Processes Completed after/while Running a Cell</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1166713#M511</link>
      <description>&lt;P&gt;For what it's worth I had the same issue and just realized you can view the progress of an analysis task run from Notebook code by opening the History on the Analysis ribbon in Pro and then identifying the task in the list and clicking Details.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 16:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/python-notebook-determine-if-processes-completed/m-p/1166713#M511</guid>
      <dc:creator>mattCSimon1</dc:creator>
      <dc:date>2022-04-21T16:52:24Z</dc:date>
    </item>
  </channel>
</rss>

