Conversation
show()show()
|
Just realized this wasn't actually as simple as I thought, the way Mapbox wants the |
|
In general I don't think we should support suppressing warnings. Instead let's figure out why the warning is thrown and if there is a workaround or upgrade to make. Here's the code we use to display an HTML element in Ipython - mapboxgl-jupyter/mapboxgl/viz.py Line 5 in da68308 Here's the docs for Ipython display - https://ipython.readthedocs.io/en/stable/api/generated/IPython.display.html |
|
yeah, that was my first attempt but it didn't end up working. the function that IPython is trying to force you to use is here: https://github.com/ipython/ipython/blob/56ea43f4378f4a87e3aec4cfae4dca26bb69c2ec/IPython/lib/display.py#L239-L273 it seems that mapbox expects a |
|
Thanks for digging @bnaul . Mapboxgl-Jupyter uses the mapboxgl-jupyter/mapboxgl/viz.py Line 244 in da68308 We could take two approached - change the We can reference folium to see what approach that SDK uses for loading a dynamic HTML component inline with a Notebook cell. |
Not sure if this is only a problem in recent IPython versions but for me every plot is accompanied by:
Seems safe enough...?