<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Can I connect to a different GIS Portal from an ArcGIS Notebook? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-connect-to-a-different-gis-portal-from-an/m-p/862606#M4245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to create a connection to an online org from an ArcGIS Notebook.&amp;nbsp; However when I try to connect to a different (not "home") enterprise GIS from an ArcGIS Notebook, I get this error:&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;URLError: &amp;lt;urlopen error [Errno -2] Name or service not known&amp;gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Is this supported?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2019 21:53:34 GMT</pubDate>
    <dc:creator>DavidJohnson5</dc:creator>
    <dc:date>2019-10-31T21:53:34Z</dc:date>
    <item>
      <title>Can I connect to a different GIS Portal from an ArcGIS Notebook?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-connect-to-a-different-gis-portal-from-an/m-p/862606#M4245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to create a connection to an online org from an ArcGIS Notebook.&amp;nbsp; However when I try to connect to a different (not "home") enterprise GIS from an ArcGIS Notebook, I get this error:&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;URLError: &amp;lt;urlopen error [Errno -2] Name or service not known&amp;gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Is this supported?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 21:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-connect-to-a-different-gis-portal-from-an/m-p/862606#M4245</guid>
      <dc:creator>DavidJohnson5</dc:creator>
      <dc:date>2019-10-31T21:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can I connect to a different GIS Portal from an ArcGIS Notebook?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-connect-to-a-different-gis-portal-from-an/m-p/862607#M4246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-userid="47514" data-username="david_johnson-esristaff" href="https://community.esri.com/people/david_johnson-esristaff" target="_blank"&gt;David Johnson&lt;/A&gt;,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;In an ArcGIS Notebook you can connect to any&amp;nbsp;instance of the ArcGIS Enterprise which is publicly accessible.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;IMG __jive_id="471188" alt="Searching for content in a GIS Instance of ArcGIS Enterprise" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/471188_Notebook.PNG" /&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;To start with, import the Python API and connect to your GIS&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;from arcgis.gis import GIS
gis = GIS("http://siteurl.mysite.com/portal", username="xxxxxxxxx")‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Before connecting to your GIS in a Notebook check whether you are&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;1. able to access your portal&amp;nbsp;in a Web Browser such as Chrome, Firefox, IE.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;2. providing a proper url of your portal to connect to the GIS Instance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:41:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-connect-to-a-different-gis-portal-from-an/m-p/862607#M4246</guid>
      <dc:creator>ImranKhan_P</dc:creator>
      <dc:date>2021-12-12T10:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can I connect to a different GIS Portal from an ArcGIS Notebook?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-connect-to-a-different-gis-portal-from-an/m-p/862608#M4247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The portal I was trying to connect to was inside our firewall, while the notebook was in a GIS that is outside the firewall.&amp;nbsp; Makes perfect sense now.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2019 16:50:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-connect-to-a-different-gis-portal-from-an/m-p/862608#M4247</guid>
      <dc:creator>DavidJohnson5</dc:creator>
      <dc:date>2019-11-01T16:50:58Z</dc:date>
    </item>
  </channel>
</rss>

