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

mdBook x PyOdide: How to make Python code snippets run using pyodide? #2426

Closed
jymchng opened this issue Aug 13, 2024 · 1 comment
Closed
Labels
C-question Category: A question on how to do something

Comments

@jymchng
Copy link

jymchng commented Aug 13, 2024

Question

Hi,

Thank you for your hard work this. It is a lovely piece of work.

Can you point me to how I can possibly tweak to get runnable code snippets using pyodide?

Pyodide is a wasm binary that is compiled from CPython and is capable of running many Python codes within the browser.

Version

No response

@jymchng jymchng added the C-question Category: A question on how to do something label Aug 13, 2024
@ehuss
Copy link
Contributor

ehuss commented Aug 14, 2024

Hi! Unfortunately other languages aren't supported at this time. You may be able to hack something in with a custom theme (such as writing some custom javascript code which adds the relevant buttons and code to the code blocks).

Closing in favor of #350 which is the general issue for supporting other languages.

@ehuss ehuss closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-question Category: A question on how to do something
Projects
None yet
Development

No branches or pull requests

2 participants