1

I have been learning vpython, and I am making a lunar lander copy for a school project. I was wondering if there is any way to embed a vpython canvas or window on a webpage. Thanks!

1 Answer 1

1

At glowscript.org you can export your program to JavaScript and embed it in a web page. On the page where you edit your GlowScript VPython progrm, click "Shae or export this program". However, because at glowscript.org your Python code is transpiled to JavaScript, you can't import arbitrary Python modules.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.