On The Subject Of Python
-
Polygons with Pythonista Jul 15, 2023I wrote a Pythonista script on my iPhone for my kids to show the internal angles of regular polygons and how adding more sides makes the shape start approximating a circle. In the script, swiping left and right …
-
Graphing with matplotlib Sep 5, 2015Today I wanted to draw some graphs. I started out using Wolfram Alpha’s excellent plot() functionality but wanted something that I would be able to use offline too. Mathematica & Matlab are beyond my …
-
Simple HTTP Server in Python 3 Jan 22, 2015A while ago, I wrote about how to start a web server in an arbitary folder in Python 2. This can be done with Python 3 as well, but the module name has changed: python3 -m http.server
-
Simple HTTP Server in Python Oct 16, 2014Note: This guide is for Python 2. See the follow up post for how to do this with Python 3. The other day my colleague Sam Starling pointed out an incredibly rapid way to start up an http server using Python 2’s …