jupyterlite/demo

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

marcocaggioni opened this issue · 2 comments

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

  • Clone this repo
  • Create a new conda environment python 3.10
  • Install requirements.txt
  • run: jupyter lite serve --contents content
  • copy _output folder to server with apache
  • Jupyterlite works fine but the filesystem is not synced. I see in the browser console this error.

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

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

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