Select to view content in your preferred language

Can I connect to a different GIS Portal from an ArcGIS Notebook?

1555
2
10-31-2019 02:53 PM
DavidJohnson5
Esri Contributor

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?

0 Kudos
2 Replies
ImranKhan_P
Regular Contributor

Hi David Johnson,

In an ArcGIS Notebook you can connect to any instance of the ArcGIS Enterprise which is publicly accessible.

 

Searching for content in a GIS Instance of ArcGIS Enterprise

 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.

0 Kudos
DavidJohnson5
Esri Contributor

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!