jupyterlite / xeus-python-kernel

xeus-python in JupyterLite
https://xeus-python-kernel.readthedocs.io
BSD 3-Clause "New" or "Revised" License
30 stars 19 forks source link

`FileNotFoundError` opening files with pandas that were previously visible #165

Open psychemedia opened 9 months ago

psychemedia commented 9 months ago

I've just started migrating to the xeus-python-kernel and I'm experiencing some unusual behaviour with opening local files using pandas.

I was opening files distributed with the JupyterLite as expected, but then updated the kernel on Github Pages, reloaded the JupyterLite environment, restarted kernels etc and tried to load the same files in from the same notebooks, but now the pandas file reads report as FileNotFoundError [Errno 44] No such file or directory.

The data files are visible in the file browser.

If I open and save the data files as is, they are still not found when I try to load them in.

I could clear the cache / local storage of all files and try a clean start, but the files saved to storage include many changes and would rather not have to export all the files and update the original repo with the changes, or import the files back in. (In part, I'm trying to shakedown the environment for student use and find issues and workarounds before things go live.)

Are there any tricks I could try / debug steps I could take to help identify any glitches?

martinRenou commented 9 months ago

Could you please provide your jupyterlite and jupyterlite-xeus-python versions?

Also, can you try with a private window? Getting rid of the cache may not be enough to workaround this. You may need to also remove any service worker registered.