News

Save that text to a file, open it in a browser and it runs. Well, of course, no server set-up for you. Presumably, the work is being done on the pyscript.net server which takes a lot of set-up!
SKiDL is very, very cool. It’s a bit of Python code that outputs a circuit netlist for KiCAD. Why is this cool? If you design a PCB in KiCAD, you go through three steps: draw the schematic, a… ...
Python code is enclosed in the script tag with a type="py" attribute. Note that the code should be formatted according to Python’s conventions for indentation, or it won’t run properly.
And there you have it! 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.