Skip to content
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

Support use of em-forge wasm files in standalone JupyterLite deployment #31

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

ianthomas23
Copy link
Member

The recent changes in cockle to support use of Emscripten-forge wasm files in the terminal (jupyterlite/cockle#61) work fine in the cockle and terminal repositories but do not work in a standalone JupyterLite deployment as they rely on cockle being available locally in node_modules. This is a workaround to support that use case by checking if the required cockle file is installed locally in node_modules and if it is not, it installs it in a temporary directory .cockle_temp. This is not a good workaround as it unnecessarily installs a set of npm dependencies, but it is better to have such standalone deployments working than not, and we can revisit this later with a better solution.

After merging this will need a new release of the terminal packages so that it can be tried out in a standalone deployment.

@ianthomas23 ianthomas23 added the enhancement New feature or request label Oct 29, 2024
Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
jupyterlite-terminal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 3:27pm

@ianthomas23 ianthomas23 merged commit 8f8a93f into main Oct 29, 2024
11 checks passed
@ianthomas23 ianthomas23 deleted the add-on-outside-repo branch October 29, 2024 15:53
@ianthomas23
Copy link
Member Author

Following this there is a successful deployment on vercel at https://jlite-vercel.vercel.app/lab/index.html, repo is https://github.com/ianthomas23/jlite-vercel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant