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

python input() fucntion does not work. #8

Open
moonpiedumplings opened this issue May 22, 2023 · 1 comment
Open

python input() fucntion does not work. #8

moonpiedumplings opened this issue May 22, 2023 · 1 comment

Comments

@moonpiedumplings
Copy link

moonpiedumplings commented May 22, 2023

As an experiment, I am playing around with embedding an icp editor into my blog: https://moonpiedumplings.github.io/quartotest/posts/interactive-python-tutorial/

And it works great, even though not all python functions work, but that is understandable given the limitations of pyodide. But the input function works in jupyterlites pyodide based repl: https://jupyterlite.github.io/demo/repl/index.html?kernel=python, so this doesn't appear to be a limitation of the software pyodide, only the frontend used to implement it.

Is there a similar project, maybe designed for embeds? Like, an embeddable, client side ran python playground. I feel like it should exist, I am just struggling to find it. I've found this as well: https://github.com/modularizer/pyprez, but it has issues with usability and consistency.

@lucademenego99
Copy link
Owner

Hey there, thank you so much for testing icp-bundle!

Regarding the input functionality, adding it is not as straightforward as it seems because execution takes place within a Worker, which doesn't have access to the parent DOM. I would love to work on it myself, but unfortunately, I don't have time at the moment.

That being said, I encourage you and others to submit pull requests. Your contributions would be more than welcome!

Once again, thank you for your interest in icp-bundle!

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

No branches or pull requests

2 participants