This is one of the core plugins in PyScript, which is active by default. With it, you can print to
stderr from your python code, and the output will be displayed on the page in
You can control how
<py-terminal> behaves by setting the value of the
terminal configuration in your
Automatically add a
This is the default. Automatically add a
<py-config> terminal = true </py-config> <py-script> print("Hello, world!") </py-script>
This example will create a new
<py-terminal>, the value “Hello, world!” that was printed will show in it.
You can also add one (or more)
<py-terminal> to the page manually.
<py-script> print("Hello, world!") </py-script> <py-terminal></py-terminal>
If you include a
<py-terminal> in the page, you can skip
terminal from your