escher
escher copied to clipboard
Maps are not loaded in Internet explorer
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?
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?
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!
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:
-
Proxy
withapply
handler, which the exportedBuilder
class/function is an instance of -
Array.prototype.includes
inBuilder#_updateTooltipSetting
(this is the one that throws first)
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.