I've been trying to get the basic example to work in Jupyterlite, just changing micropip to instead use the %pip magic:
%pip install -q pyodide-http requests
import pyodide_http
pyodide_http.patch_all() # Patch all libraries
import requests
response = requests.get('http://raw.githubusercontent.com/statsbomb/open-data/master/data/lineups/15946.json')
The cells run without errors, but the response object has a status code of 0, and response.content is empty. Am I missing something?
The result is the same running locally using jupyter lite serve, and on GitHub Pages.
I've been trying to get the basic example to work in Jupyterlite, just changing
micropipto instead use the%pipmagic:The cells run without errors, but the response object has a status code of 0, and
response.contentis empty. Am I missing something?The result is the same running locally using
jupyter lite serve, and on GitHub Pages.