Files
pyscript/docs/reference/elements/py-repl.md
2022-10-25 19:34:27 -05:00

20 lines
599 B
Markdown

# <py-repl>
The `<py-repl>` element provides a REPL(Read Eval Print Loop) to evaluate multi-line Python and display output.
## Attributes
| attribute | type | default | description |
|----|----|----|----|
| **auto-generate** | boolean | | Auto-generates REPL after evaluation. |
| **exec-id** | string | | The id for logging execution output |
| **root** | string | | Denotes the root element of the REPL |
| **output** | string | |The element to write output into |
## Examples
- `<py-repl>` element set to auto-generate
```html
<py-repl auto-generate="true"> </py-repl>
```