Bart Broere
Bart Broere
Could this be considered again, especially now that Python 2 is some time beyond EOL?
Sorry for not configuring the pre-commit actions yet, I think it shows by the manual fix commits. The test has been added though. I chose headers that hopefully will not...
Nice to hear that this PR could contribute some functionality, and that patching `requests` might be the way to achieve this relatively easily. Shall I continue working on this patch?...
> > we can make calling import pyodide_requests have a side effect of overriding import requests > > Namely by saying > > ```python > import sys > sys.modules["requests"] =...
> If some redirect mechanism is implemented in micropip, so that when `micropip.install('requests')` actually loads `pyodide-requests`, you could work on this completely independently from the pyodide release cycle which would...
> However, overriding the default transport adapter is a viable alternative to a rewrite. Nice! This seems like a very straightforward way to override the behaviour of `requests`, and have...
Yes, I agree that a patch on top of the original requests is probably not the best solution. Closing this PR is fine. As a temporary hack it serves me...
Thanks a lot for these tips! We'll go and find out what works for us. I'm afraid this can't be any out-of-the-box solution, because we most likely want to integrate...
Good idea, I would also like autocompletion in Starboard Notebooks. It seems pyodide already has done some work for autocompleting things that exist in the Python `globals()`: https://pyodide.org/en/stable/usage/api/python-api.html?highlight=complete#pyodide.console.Console.complete Some quick...
For full autocompletion, we could look at how IPython does this: https://ipython.readthedocs.io/en/stable/config/integrating.html#tab-completion We could merge the results of `Console.complete` with the results from calling `__dir__` on objects. This could be...