https://github.com/alankrantas/monaco-python-live-editor
Write and run Python/machine learning packages online
https://github.com/alankrantas/monaco-python-live-editor
coding-tool machine-learning monaco-editor online-editor python-machine-learning python3 react vite
Last synced: 2 days ago
JSON representation
Write and run Python/machine learning packages online
- Host: GitHub
- URL: https://github.com/alankrantas/monaco-python-live-editor
- Owner: alankrantas
- License: mit
- Created: 2024-06-10T03:32:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-01T04:18:33.000Z (7 days ago)
- Last Synced: 2025-10-01T06:15:49.135Z (7 days ago)
- Topics: coding-tool, machine-learning, monaco-editor, online-editor, python-machine-learning, python3, react, vite
- Language: TypeScript
- Homepage: https://alankrantas.github.io/monaco-python-live-editor/
- Size: 464 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Monaco Python Live Editor
> Try it [here](https://alankrantas.github.io/monaco-python-live-editor/).
A simple demonstration to wrap [`@monaco-editor/react`](https://www.npmjs.com/package/@monaco-editor/react) combined with [`Pyodide`](https://pyodide.org/en/stable/index.html) to create a basic online Python editor component with a few additional packages supported. The React app is [created/built by Vite](https://vitejs.dev/) and deployed to GitHub Pages using Github Actions.
`preload_packages.jsonn` defines the Python packages that would be pre-loaded. Pyodide will also automatically install [supported external packages](https://pyodide.org/en/stable/usage/packages-in-pyodide.html) found in imports.
## Development
### `yarn`
Install dependencies.
### `yarn dev` or `yarn start`
Start the dev server.
### `yarn build`
Build a production at `./dist`.
### `yarn preview` or `yarn serve`
Serve and view the built production.
### `yarn commit`
Commit changes.