escher icon indicating copy to clipboard operation
escher copied to clipboard

Maps are not loaded in Internet explorer

Open willigott opened this issue 6 years ago • 3 comments

I sometimes have to work on systems where Internet explorer is the default browser (which I cannot change). Then the maps are not loaded, e.g.

from escher import Builder

json_repr = 'iMM904.central_carbon_metabolism.json'

b = Builder(map_json=json_repr)
b.display_in_browser(scroll_behavior='zoom')

will just give a white screen. When I access http://127.0.0.1:7655/ in firefox or chrome, it works perfectly fine.

The IE version I have is 11.0.9600.18893.

Is there a(n easy) way to fix this?

willigott avatar Mar 08 '18 14:03 willigott

thanks for reporting this. I have tested in IE in the past, and we run continuous integration tests for our code, but I guess we missed this.

I will try to recreate it.

What Windows OS version are you using there? And which Python version?

zakandrewking avatar Mar 12 '18 15:03 zakandrewking

It is Windows 7 Enterprise, Python 3.6.4. I also used save_html in Python 2 but with the same result (the produced html cannot be opened in IE).

Thanks for looking into this!

willigott avatar Mar 12 '18 16:03 willigott

Hello.

I have encountered a similar issue outside of the jupyter notebooks: the demo website itself (escher.github.io) does not work with IE11.

The reason for this is that some recent JavaScript features (ES2016) are not supported, namely:

Fortunately I managed to get past the blank page using polyfills from the proxy-polifyll and polyfill-array-includes npm packages. I can't assure that everything works, but at least this gets me a browsable map and tooltips.

cebamps avatar Oct 22 '19 12:10 cebamps