In a Notebook, "activeView" just seems to return None.
Is this expected or just a bug? Without the ability to affect the current map, it seems Notebooks are not very useful. Is there a workaround? Python windows are just a major pain compared to Notebooks.
Thanks
In ArcGIS Pro 2.8, this code works in a Python window but not in a notebook.
a = arcpy.mp.ArcGISProject("CURRENT")
v = a.activeView.camera
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
In [25]:
Line 2: v = a.activeView.camera
AttributeError: 'NoneType' object has no attribute 'camera'
---------------------------------------------------------------------------