| title | README |
|---|---|
| author | N_ha |
- Write your Python code in the "Editor" section.
- Enter any standard input in the "Input" section.
- Click the "Run" button or use the shortcut
Ctrl + Shift + Eto execute the code. - Standard output will be displayed in the "Output" section, and standard error will be displayed in the "Error" section.
- To stop execution, click the "Interrupt" button to send a SIGINT signal to the process.
- The editor uses Pyodide to run Python code in the browser, so its behavior may differ from running the same code in a local Python environment.
Ctrl + S: Save to local storage. Changes are usually saved automatically after each edit, so you usually do not need to do this manually.Ctrl + O: Load from local storage.Ctrl + Shift + S: Download as a.pyfile.Ctrl + Shift + O: Upload a.pyfile.Ctrl + M: Create a new file (clear the editor).Ctrl + Shift + E: Execute the code.Ctrl + Shift + F: Format the code and copy it to the clipboard.
-
Clone
git clone https://github.com/N-ha-1050/python-code-editor.git
-
Install dependencies
pnpm i
-
Install git hooks
pnpm lefthook install
-
Run the project
pnpm dev