jupyterlite/xeus

No file system access

Closed this issue · 5 comments

Description

Trying the demo from https://github.com/jupyterlite/xeus-python-demo, it looks like file system operations are not supported with the service worker giving a 405 response:

image

Reproduce

Open https://jupyterlite.github.io/xeus-python-demo/ and try with:

import os
os.listdir()

Expected behavior

This should return the list of files.

Context

  • JupyterLite version: 0.2.3
  • Operating System and version: Ubuntu 23.10
  • Browser and version: Chromium 121

For reference this was also noticed with jupyterlite/jupyterlite#1316 and jupyterlite-xeus==0.1.8 installed locally.

Investigating this a bit more, this seems to be working fine with a regular (non-private) Firefox 122 tab:

image

So not sure if it's just a local setup / browser issue, or if it's affecting other people too.

for me it works in firefox and in a private chrome window, but in a non-private chrome windows nothing works...kernel is idle but any operation is busy forever. Not sure if this is a caching issue.

Unchecking "Bypass for network" in the dev tools seems to be helping (still in a private window):

image

Not sure if I had this option checked before or not.

Not sure if this is a caching issue.

It might be yes. Hopefully jupyterlite/jupyterlite#1316 will help mitigate this.

Closing in favor of jupyterlite/jupyterlite#1321 as something to be addressed in the JupyterLite repo.