I recently began using the Pro Notebook. I used to operate like a caveman and simply use a Python interpreter independently of ArcMap. BUT, Pro has the integrated Notebook which is great. I am however curious how to display two things: 1) Generally results after running each cell. 2) Within that, arcpy results.
For instance I write some utility functions like this (obviously something not just wrapping an arcpy function, but just for simplicity)
# 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)
Imagine the below code block is a cell in the notebook
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)
However, once I run this cell I can immediately run another cell EVEN if the cell and particularly the arcpy function is still processing. Is there a way to show a progress bar or any indication that the cell has completed its operations? I want to move and delete multiple files by basically looping through a pandas dataframe, so I need to know the current progress. I am utilizing logging and print statements, but that's too indirect.
Thanks!
Zach