Hello, I am facing a problem when using JupyterLite (the Browser python environment JupyterLite) when trying to download a file on the web. I tried to use both !wget urltofile (or os.system(‘wget urltofile’)) or urllib.request but without success. It seems the browser version do not allow for external connections.
For instance
!wget https://raw.githubusercontent.com/jorishey1234/glyapp/refs/heads/main/gly_toolbox.py
raise the error : “raise OSError(“Background processes not supported.”)”
And
import urllib
url = 'https://raw.githubusercontent.com/jorishey1234/glyapp/refs/heads/main/'
filename = 'gly_toolbox.py'
urllib.request.urlretrieve(url, filename)
raise the error “URLError: <urlopen error [Errno 23] Host is unreachable>”
An idea to circumvent the problem ?
Thanks a lot,
Joris