<?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 Python API not displaying html representation in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-not-displaying-html/m-p/865063#M4371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens, Similar to your other post, can you put this in the Early Adopter Community forums?&amp;nbsp;&lt;A class="jivelink10" href="https://earlyadopter.esri.com" title="https://earlyadopter.esri.com"&gt;https://earlyadopter.esri.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2016 15:30:44 GMT</pubDate>
    <dc:creator>ChristianWells</dc:creator>
    <dc:date>2016-09-13T15:30:44Z</dc:date>
    <item>
      <title>ArcGIS Python API not displaying html representation</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-not-displaying-html/m-p/865062#M4370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I currently have two conda environments configured for use with ArcGIS Python API installed on my machine.&lt;/P&gt;&lt;P&gt;The first one is based on a full Anaconda install, the later one is based on ArcGIS Pro's Python environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The installation based on ArcGIS Pro has the following issue when working with the ArcGIS Python API in Jupyter Notebook: Objects do not show their HTML representation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the following script shows a nice Picture in the Anaconda environment:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;
gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; IPython&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;display &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; display&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; display_html
item &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Flights'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
display&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;item&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the ArcGIS Pro based environment just prints this line:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;lt;Item title:"flight AH 5017" type:Web Map owner:mista_moneybags&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change display(item) to display_html(item), the output is all empty.&lt;BR /&gt;However, if I change to&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;display_html(item._repr_html_(), raw=True)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the output is all fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the HTML-Rendering basically works, as well as the object is able to represent itself as HTML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas, why the standard display() / display_html() does not work as expected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-not-displaying-html/m-p/865062#M4370</guid>
      <dc:creator>JensBuchta</dc:creator>
      <dc:date>2021-12-12T10:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python API not displaying html representation</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-not-displaying-html/m-p/865063#M4371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens, Similar to your other post, can you put this in the Early Adopter Community forums?&amp;nbsp;&lt;A class="jivelink10" href="https://earlyadopter.esri.com" title="https://earlyadopter.esri.com"&gt;https://earlyadopter.esri.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 15:30:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-not-displaying-html/m-p/865063#M4371</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2016-09-13T15:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python API not displaying html representation</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-not-displaying-html/m-p/865064#M4372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I haven't seen the Beta Program as&amp;nbsp;I first launched the Early Adopter platform and ArcGIS Python API was not listed under Beta Opportunities. I've just overseen the "Join the Beta" link on&amp;nbsp;&lt;A class="" href="https://developers.arcgis.com/python/" style="color: #2989c5;" title="https://developers.arcgis.com/python/"&gt;ArcGIS API for Python | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furhtermore, the link "Forum" on&amp;nbsp;&lt;A class="" href="https://developers.arcgis.com/python/" style="color: #2989c5;" title="https://developers.arcgis.com/python/"&gt;ArcGIS API for Python | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;links to this GeoNet area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very confusing but posting in EAP makes absolutely sense, so thanks for the hint.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 07:26:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-not-displaying-html/m-p/865064#M4372</guid>
      <dc:creator>JensBuchta</dc:creator>
      <dc:date>2016-09-15T07:26:53Z</dc:date>
    </item>
  </channel>
</rss>

