GateNLP/python-gatenlp

When running under pyodide, replace some url opening methods

johann-petrak opened this issue · 0 comments

Support transparent reading from URLs in pyodide by catching any urllib reading exception and trying to import pyodide.
If that succeeds, retry reading using pyodide.open_url(...) instead. This should make it possible to load documents from the web within pyodide or jupyterlite for demo purposes.