Skip to content

Commit 5e42b00

Browse files
authored
Merge pull request #1214 from Gupta-02/feat/interactive-python-editor
Feat/interactive python editor
2 parents 5e6ae10 + 843604f commit 5e42b00

File tree

5 files changed

+311
-4
lines changed

5 files changed

+311
-4
lines changed

docs/interactive-python-editor.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
id: interactive-python-editor
3+
title: Interactive Python Editor
4+
---
5+
6+
import InteractivePythonEditor from '@site/src/components/InteractivePythonEditor';
7+
8+
This page demonstrates the new interactive Python editor component. You can edit code on the left, see highlighted code on the right, and run it directly in the browser using Pyodide.
9+
10+
<InteractivePythonEditor />
11+
12+
Notes:
13+
- The editor loads Pyodide from a CDN — the first run will take a few seconds while the WebAssembly engine downloads.
14+
- This component is intentionally dependency-free (uses Prism for highlighting and Pyodide for execution via CDN). If you'd like tighter integration (Monaco, local Pyodide mirror, or server-side execution), I can update it.

0 commit comments

Comments
 (0)