Update real-time data with Python API | Learn ArcGIS
So .... import arcpy
If it fails, then you don't have it installed properly or are using a notebook that doesn't know where arcpy is.
Are you using arcgis pro's installation of jupyter notebooks? or a standalone jupyter notebook or jupyterab.
Thanks.I do the exercise using a spyder. How do I teach him where the package is?
If you installed spyder shortcuts should appear with the following properties.
If not, create a shortcut using the following parameters.
C:\Install path\bin\Python\envs\arcgispro-py3\pythonw.exe "C:\arc_pro\bin\Python\envs\arcgispro-py3\Scripts\spyder-script.py"
Spyder and its kindred will be found in
\Install path\ is theis the install path for arcgis pro base environment
In you installed in a cloned environment this will need to be changed
....envs\arcgispro-py3\ ..... the last folder .... arcgispro-py3 ... would be your clone name
Retrieving data ...