Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
python for web#141188
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Closed
Closed
python for web#141188
+280 −0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Hi, please don't use ChatGPT to create PRs. If you're interested in running Python on the web, you might likePyodide. |
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello, I created a folder called WEB in cpython. Inside this folder, I created a compiler that converts Python code into JavaScript code. Thanks to this compiler, Python code can now run on the web. However, this compiler doesn't include all Python features; it only supports some, such as creating variables, printing to the console, and other features. You can verify this by examining the compiler's source code. To start the compiler, the user presses F12, opens the console, and types Zstart(). All Python files in the project are selected. This is then launched. However, the compiler starts from the project's home page, main.py. It performs the evaluation and produces output within a few seconds. Then, the user types Zinstall() to the console to download the evaluated JavaScript file, allowing the Python code to run on the web.