jupyterlite / demo

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

Failed to load packing, micropip, pyparsing #120

Closed MRYingLEE closed 1 year ago

MRYingLEE commented 1 year ago

Description

In my company network, I met this error everytime at pyodide.asm.js:9. But in my home network, everything is fine.

Context

If there is some requirements for network, please state clearly, so I can push IT to fix.

MRYingLEE commented 1 year ago

After a few tests I found the reasons:

  1. The underlying cdn website is blocked.
  2. *. whl files are blocked.

So far, it's not easy to change Security settings.

So, is it possible that all whl files are stored along with static HTMLs and with another extension?

Of course, dynamic importing could be another issue.

Any ideas?

epugh commented 1 year ago

I had the exact same problem... So we did this: https://github.com/o19s/quepid-jupyterlite/blob/main/Dockerfile

And then, I import our whole jupyterlite environment into my application via https://github.com/o19s/quepid/blob/main/bin/setup_jupyterlite

MRYingLEE commented 1 year ago

@epugh Your suggestion is very helpful.

The generated jupyter-lite-build.tgz was used with a local web server successfully.

I will test the possibility to use it on GitHub pages. So that I don't need to set up a web server.

Thanks,