<?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 Re: ArcGIS API for Python in Visual Studio Code not showing maps in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-in-visual-studio-code-not/m-p/1034350#M5674</link>
    <description>&lt;P&gt;Moved to:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-python-api/issues/941" target="_blank"&gt;https://github.com/Esri/arcgis-python-api/issues/941&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Mar 2021 07:20:11 GMT</pubDate>
    <dc:creator>MarkusSchenardi</dc:creator>
    <dc:date>2021-03-09T07:20:11Z</dc:date>
    <item>
      <title>ArcGIS API for Python in Visual Studio Code not showing maps</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-in-visual-studio-code-not/m-p/1030924#M5609</link>
      <description>&lt;P&gt;I'm trying to display a map inside a jupyter notebook running in Visual Studio Code (with the python and jupyter extension enabled).&lt;/P&gt;&lt;P&gt;Environment is Python 3.7 or 3.8 and arcgis (API for python) 1.8.4.&lt;/P&gt;&lt;P&gt;I created a new conda env as described here:&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000022005" target="_blank" rel="noopener"&gt;https://support.esri.com/en/technical-article/000022005&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The code is very simple in Jupyter:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;arcgis&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;GIS&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gis&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;GIS(&lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'https://&amp;lt;abc&amp;gt;.maps.arcgis.com'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;username&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;lt;username&amp;gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;password&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;lt;pwd&amp;gt;'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mymap&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;gis.map(&lt;/SPAN&gt;&lt;SPAN&gt;'Zurich'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;mymap&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROBLEM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As soon as a map should be displayed in the widget a white box appears with:&lt;BR /&gt;&lt;EM&gt;Unhandled Error! See the browser console.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="console warning" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7046i023A0F34E1A98976/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2021-02-26_10h30_18.png" alt="console warning" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;console warning&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Messages in the console:&lt;/P&gt;&lt;P&gt;[Embedded Page] WidgetManager: Loading class LayoutModel:@jupyter-widgets/base:1.2.0&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] require promise&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] WidgetManager: Loading class ArcGISMapIPyWidgetModel:arcgis-map-ipywidget:1.8.4&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] Fetch IPyWidget source for arcgis-map-ipywidget&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] require promise&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] WidgetManager: Loading class LayoutModel:@jupyter-widgets/base:1.2.0&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] require promise&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] WidgetManager: Loading class ArcGISMapIPyWidgetModel:arcgis-map-ipywidget:1.8.4&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] Fetch IPyWidget source for arcgis-map-ipywidget&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] require promise&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] WidgetManager: Loading class ArcGISMapIPyWidgetView:arcgis-map-ipywidget:1.8.4&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] Fetch IPyWidget source for arcgis-map-ipywidget&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] require promise&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] WidgetManager: Loading class LayoutView:@jupyter-widgets/base:1.2.0&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] require promise&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] Error on render:&lt;BR /&gt;webviewElement.ts:90 [Embedded Page] Error: Script error for "esri/Map"&lt;BR /&gt;&lt;A href="https://requirejs.org/docs/errors.html#scripterror" target="_blank" rel="noopener"&gt;https://requirejs.org/docs/errors.html#scripterror&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;* The same code runs without problems in condas jupyter notebook&lt;/DIV&gt;&lt;DIV&gt;* The same code also runs in VS Code when using the conda environment installed with ArcGIS Pro&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any suggestions how to fix this problem?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Feb 2021 11:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-in-visual-studio-code-not/m-p/1030924#M5609</guid>
      <dc:creator>MarkusSchenardi</dc:creator>
      <dc:date>2021-02-26T11:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python in Visual Studio Code not showing maps</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-in-visual-studio-code-not/m-p/1031177#M5613</link>
      <description>&lt;P&gt;You might want to post an issue on their github site&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-python-api/issues" target="_blank"&gt;Issues · Esri/arcgis-python-api (github.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 22:12:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-in-visual-studio-code-not/m-p/1031177#M5613</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-02-26T22:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python in Visual Studio Code not showing maps</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-in-visual-studio-code-not/m-p/1034350#M5674</link>
      <description>&lt;P&gt;Moved to:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-python-api/issues/941" target="_blank"&gt;https://github.com/Esri/arcgis-python-api/issues/941&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 07:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-in-visual-studio-code-not/m-p/1034350#M5674</guid>
      <dc:creator>MarkusSchenardi</dc:creator>
      <dc:date>2021-03-09T07:20:11Z</dc:date>
    </item>
  </channel>
</rss>

