Added example code block to py-repl tag section (#455)

This commit is contained in:
WrigglySplash
2022-06-02 15:10:21 -04:00
committed by GitHub
parent d00171a629
commit 03fee56a54

View File

@@ -210,6 +210,15 @@ In the HTML tag `<py-env>`, paths to local modules are provided in the
## The py-repl tag
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.
```html
<html>
<head>
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
</head>
<py-repl></py-repl>
</html>
```
## The py-config tag