News

That’s how to run a Python script in terminal or CMD. It’s a very straightforward process, but it’s extremely handy if you ever want to quickly carry out a bespoke task.
Any Python code is evaluated once the PyScript components finish loading. You can choose whether the output is sent to the DOM (use pyscript.display), or to an embedded terminal.