I am able to create a connection to an online org from an ArcGIS Notebook. However when I try to connect to a different (not "home") enterprise GIS from an ArcGIS Notebook, I get this error:
URLError: <urlopen error [Errno -2] Name or service not known>
Is this supported?
Hi David Johnson,
In an ArcGIS Notebook you can connect to any instance of the ArcGIS Enterprise which is publicly accessible.
To start with, import the Python API and connect to your GIS
from arcgis.gis import GIS
gis = GIS("http://siteurl.mysite.com/portal", username="xxxxxxxxx")
Before connecting to your GIS in a Notebook check whether you are
1. able to access your portal in a Web Browser such as Chrome, Firefox, IE.
2. providing a proper url of your portal to connect to the GIS Instance.
The portal I was trying to connect to was inside our firewall, while the notebook was in a GIS that is outside the firewall. Makes perfect sense now. Thanks!