Closed Bartvvenrooij closed 8 months ago
The nickle fix for now would be to explicitly pin a working version of IPython to the PyPI wheel URL, a la in jupyter_lite_config.json
:
{
"PipliteAddon": {
"piplite_urls": [
"https://files.pythonhosted.org/packages/47/6b/d9fdcdef2eb6a23f391251fde8781c38d42acd82abe84d054cb74f7863b0/ipython-8.18.1-py3-none-any.whl"
]
}
}
Thank you! This fix works for now
Just a small remark: the bug can be reproduced in less steps:
Indeed, no need to create the test.py
script, since the OSError happens so early in the process of the %run
magic that its existence isn't yet checked.
Also, here is a summary of what I got from https://github.com/jupyterlite/demo/issues/139 mentioned by @bollwyvl: for any Jupyterlite deployment derived from the demo, this issue will be only be fixed by the upcoming IPython 8.22.2 release (scheduled for end of March but may arrive sooner), since pinning to an older IPython version is not possible with that setup.
For the reference, IPython 8.22.2 just got released and fixes the problem. Thanks @Carreau!
Description
An OSError occurs when calling a python script with
%load
or%run
from a notebook. It was working before and somewhere in the last 2 weeks it broke without making changes. This is happening on a docker hosted version but also the online example platform on https://jupyterlite.readthedocs.ioReproduce
To reproduce the error you need to create a simple python file and simple notebook
print("Hello world")
%run test.py
I created a jupyter-lite image 2 weeks ago and wanted to use it again but it suddenly failed. I have searched for the error but could not find any information about this error
Expected behavior
It should just run the python script and print Hello world
Context
Browser Output