AnsweredAssumed Answered

ArcGIS Python API not displaying html representation

Question asked by j.buchtaesri-de-esridist Employee on Sep 13, 2016
Latest reply on Sep 15, 2016 by j.buchtaesri-de-esridist

I currently have two conda environments configured for use with ArcGIS Python API installed on my machine.

The first one is based on a full Anaconda install, the later one is based on ArcGIS Pro's Python environment.

 

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.

 

For example, the following script shows a nice Picture in the Anaconda environment:

from arcgis.gis import *
gis = GIS()
from IPython.display import display, display_html
item = gis.content.search('Flights')[0]
display(item)

 

 

However, the ArcGIS Pro based environment just prints this line:

<Item title:"flight AH 5017" type:Web Map owner:mista_moneybags>

 

If I change display(item) to display_html(item), the output is all empty.
However, if I change to

display_html(item._repr_html_(), raw=True)

the output is all fine.

 

So the HTML-Rendering basically works, as well as the object is able to represent itself as HTML.

 

Any ideas, why the standard display() / display_html() does not work as expected?

 

Kind Regards

Jens

Outcomes