https://github.com/inquilabee/python-in-browser
Run Python in browser using pyodide
https://github.com/inquilabee/python-in-browser
Last synced: 2 months ago
JSON representation
Run Python in browser using pyodide
- Host: GitHub
- URL: https://github.com/inquilabee/python-in-browser
- Owner: inquilabee
- Created: 2024-01-31T21:06:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-31T21:15:54.000Z (over 1 year ago)
- Last Synced: 2025-01-31T02:07:12.243Z (4 months ago)
- Language: JavaScript
- Size: 84 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Code Editor with Python Support
This is a feature-rich web-based code editor with Python language support. It includes features such as executing Python code using Web Workers, FontAwesome icons, support for multiple editor instances, and a guide on how to run a simple Python server for testing purposes.
## Features
- Python code editor with syntax highlighting.
- Execute Python code using Web Workers for parallel processing.
- Display the output in a terminal-like interface.
- Copy code to the clipboard.
- Clear the editor.
- FontAwesome icons for a visually appealing interface.
- Support for multiple editor instances.
- Customize the editor with simple/blank Python code, custom code, or a Gist link.## Usage
1. Include the necessary libraries and styles
CDN for Font Awesome, CodeMirror, JQuery and other libraries. See `python-editor.html` for reference.2. Create a container for the Python editor:
```html
```3. Run a simple Python server for testing:
Open a terminal and run the following command:
```bash
python -m http.server
```This command starts a simple HTTP server on your machine. Open your web browser and navigate to `http://localhost:8000` to test the code editor.
## Dependencies
- FontAwesome (6.5)
- jQuery
- CodeMirror
- Python execution environment (pyodide)Feel free to customize and extend the functionality according to your needs. Happy coding!