Hi,
I recently upgraded to ArcGIS Pro 3.0 and one of my old notebooks just hang and will never stop. The notebook is to export all layouts in a project, and I use the layout name for the export. I later did some tests and found the issue is due to getting the layout name. Not sure if this only happens to me (not able to try this on a different machine or reinstall it to test it out). With the following lines of code, my ArcGIS Pro 3.0 will hang at the last line - I can still navigate between different tabs, and close tabs, but cannot interrupt the kernel or close the software, basically causing the software unusable. Have to end the software in task manager. It doesn't matter if I run the following code in a notebook or python interactive window
aprx = arcpy.mp.ArcGISProject("CURRENT")
layouts = aprx.listLayouts()
l = layouts[0]
print(l.name)