-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2fbfe1c
commit dcd425f
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<script type="text/javascript" | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/brython.min.js"> | ||
</script> | ||
<script type="text/javascript" | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/brython_stdlib.js"> | ||
</script> | ||
</head> | ||
|
||
<body onload=brython({"debug":1}) ><!-- remove the 1 to leave debug mode --> | ||
<noscript>Please enable Javascript to view this page correctly</noscript> | ||
|
||
<div id="code" class="codearea" style="border-style: double; max-width: 900px; min-height: 400px;" contenteditable></div> | ||
|
||
<div id="content"></div> | ||
|
||
<script type="text/python3"> | ||
from interpreter import Interpreter | ||
|
||
# Start an interactive interpreter in textarea with id "code" | ||
Interpreter("code") | ||
</script> | ||
|
||
</body> | ||
|
||
</html> |