joyceerhl / vscode-pyolite

Run Python code in Jupyter notebooks on github.dev and vscode.dev/github
https://marketplace.visualstudio.com/items?itemName=joyceerhl.vscode-pyodide
75 stars 16 forks source link

Pyodide on `github.dev` does not write files back to Github repo. #7

Open dynamicwebpaige opened 2 years ago

dynamicwebpaige commented 2 years ago

Expected behavior I created a couple of files during my Pyodide session with [github.dev]() -- a SQLite database (population.db), as well as an interactive visualization using Plotly (ML-vis.html). When using os.listdir(), I am able to view these files in the session; but do not see them in my Github repo when I refresh the files list.

Experienced behavior See above; have created files, but do not see them present in my Github repo. Should they be cp-ed to one of the subdirectories below?

Reproducible link https://github.dev/dynamicwebpaige/githubdev-notebook-features/blob/main/Overview_of_VSCode_Notebook_Features.ipynb

image

jtpio commented 2 years ago

This sounds similar to what has been discussed in https://github.com/jupyterlite/jupyterlite/discussions/91.

With the files being created in the Pyodide virtual file system. Ideally it would be great to have a way to make them visible to the host. https://github.com/jupyterlite/jupyterlite/discussions/91#discussioncomment-1137213 has some pointers on how to get them exposed in IndexedDB.

It would indeed be great to be able to generate files on github.dev and check them in seamlessly!