jupyterlite / demo

JupyterLite demo deployed to GitHub Pages 🚀
https://jupyterlite.github.io/demo
356 stars 192 forks source link

Creating static html file from this repository and host it locally with apache html server #124

Closed marcocaggioni closed 11 months ago

marcocaggioni commented 1 year ago

Description

I apologize, I don't think this is necessarily a bug, but It may help to clarify in the docs if this is expected. I'm trying to create a jupyterlite static html site of this repo and self host with apache web server.

Reproduce

image

*There is no problem if I serve it locally with the jupyter lite serve --contents content that starts a webserver on 8000 port

Expected behavior

Not sure if just by copying the static content and serving with apache is enough for jupyterlite to work. looks like the only think that does not work is the synchronization of the kernel and the jupyterlab filesystem.

jtpio commented 11 months ago

Thanks @marcocaggioni for reporting.

Jupyterlite works fine but the filesystem is not synced. I see in the browser console this error.

Maybe this is related to the browser you are using? https://jupyterlite.readthedocs.io/en/stable/howto/configure/advanced/service-worker.html#limitations

marcocaggioni commented 11 months ago

Thanks this explains the behavior, I did not realize that when not running on localhost the server needs to support https. thanks you for your answer and for all your work!

image