8000 Added example code block to py-repl tag section (#455) · techwithanirudh/pyscript@03fee56 · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit 03fee56

Browse files
Added example code block to py-repl tag section (pyscript#455)
1 parent d00171a commit 03fee56

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/tutorials/getting-started.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,15 @@ In the HTML tag `<py-env>`, paths to local modules are provided in the
210210
## The py-repl tag
211211

212212
The `<py-repl>` tag creates a REPL component that is rendered to the page as a code editor, allowing you to write executable code inline.
213+
```html
214+
<html>
215+
<head>
216+
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
217+
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
218+
</head>
219+
<py-repl></py-repl>
220+
</html>
221+
```
213222

214223
## The py-config tag
215224

0 commit comments

Comments
 (0)
0