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

pyodide.runPython returns undefined in Nuxt #1

Open
willfranklyn opened this issue Feb 2, 2021 · 1 comment
Open

pyodide.runPython returns undefined in Nuxt #1

willfranklyn opened this issue Feb 2, 2021 · 1 comment

Comments

@willfranklyn
Copy link

Hey! I am trying to add pyodide to a Nuxt project and when I run console.log(pyodide.runPython(print('hello')), it will print out 'hello' but also undefined. It looks like pyodide.runPython is printing the result to the console but the actual console.log is printing out undefined. Any insights on this?

@ArturJS
Copy link

ArturJS commented Mar 11, 2021

@willfranklyn Hmm, looks like it's easier to do this using the https://github.com/gabrielfreire/pyodide-node
I'm planning to do some research on how to migrate pyodide-node to be working in browser environment.
(I know it sounds a bit overcomplicated but in case if nothing worked out with pyodide it can be a workaround)

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