voila-dashboards / voici

Voici turns any Jupyter Notebook into a static web application
https://voici.readthedocs.io/
Other
145 stars 8 forks source link

Cant open a file (csv, png) because the tree organisation of Voici's Build is unknow #40

Closed Peter-Fialaire closed 1 year ago

Peter-Fialaire commented 1 year ago

Description

Good morning I used the Voici template to create my repository that will allow me to support my Github page. In the 'content' folder I put my Notebook, but also useful files: csv and png. My problem is that I can't open those files: open("title.csv".. I get a FileNotFoundError. I guess Voici builds another tree and puts my csv and png files in an other folder (files?). I tried a lot of combination to open my file like: "../../files/file.csv" but it didn't work. Could you please help me. THANKS image

Reproduce

==> I tried the notebook named 'Voici_test.ipynb' to get all the URL in the Voici Environment.. but it didn't work : I can't see my csv file.

Could you please explain me where Voici put my cvs file wich was initialy in the content folder of my Repo ?

Thank You.

jtpio commented 1 year ago

Thanks @Peter-Fialaire for opening this issue.

I believe this is related to https://github.com/voila-dashboards/voici/issues/3. The service worker (used to make the files available to the kernel in Voici / JupyterLite) does not seem to be loaded at the moment.