-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Failed to construct 'Worker' -- when trying to use JupyterLite #664
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Hi @sskagemo! thanks for reporting this. Looks like there's a CORS issue stopping the chunks from loading -- that's unexpected but perhaps the unpkg.com route laid out in the docs is going to be problematic for github pages. The best thing to do would be to deploy all the Your script tag would then change to something like:
There is a script available in packages/core/bin/copy-thebe-assets.cjs that can help with the copy step (also see this PR for running that with |
Thank you, I'll try that! |
@sskagemo I've been working on improving this -- still some way to go but see this repo for an example deployment setup https://github.com/stevejpurves/lite-quickstart-example and updated docs https://mystmd.org/thebe/quickstart-lite |
Describe the bug
(Sorry if this is already documented elsewhere, I've tried to look through and search in existing issues and documentation, but I have to admit that this is a bit beyond my field of competence ...)
context
When I try to set up my page at https://sskagemo.github.io/pythonevangelisten.no/blog/2023/07/test-av-thebe-for-interaktiv-kode-i-nettleseren/ (sorry for the Norwegian ...) similar to your demo of JuypyterLite, here https://executablebooks.github.io/thebe/lite.html
expectation
I expected it to work in a similar way
bug
But instead the code-block does not change to interactive mode (I have configured the code-selector with
"selector": "code"
)I've looked into the Chrome developer tools, and in the console I see the following error:
problem
This is a problem for people trying to do what is documented here https://mystmd.org/thebe/quickstart-lite (at least that was what I was trying to do :-))
Reproduce the bug
Test the code on https://sskagemo.github.io/pythonevangelisten.no/blog/2023/07/test-av-thebe-for-interaktiv-kode-i-nettleseren/
List your environment
Chrome Versjon 114.0.5735.199 on Windows 11 Enterprise
The text was updated successfully, but these errors were encountered: