jupyterlite / xeus

JupyterLite loader for Xeus kernels
https://jupyterlite-xeus.readthedocs.io
BSD 3-Clause "New" or "Revised" License
20 stars 11 forks source link

No file system access #75

Closed jtpio closed 6 months ago

jtpio commented 6 months ago

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

jtpio commented 6 months ago

For reference this was also noticed with https://github.com/jupyterlite/jupyterlite/pull/1316 and jupyterlite-xeus==0.1.8 installed locally.

jtpio commented 6 months ago

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.

DerThorsten commented 6 months ago

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.

jtpio commented 6 months ago

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.

jtpio commented 6 months ago

Not sure if this is a caching issue.

It might be yes. Hopefully https://github.com/jupyterlite/jupyterlite/pull/1316 will help mitigate this.

Closing in favor of https://github.com/jupyterlite/jupyterlite/issues/1321 as something to be addressed in the JupyterLite repo.