On The Subject Of Python

  • Polygons with Pythonista
    Polygons with Pythonista
    I 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
    Graphing with matplotlib
    Today 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
    Simple HTTP Server in Python 3
    A 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
    Simple HTTP Server in Python
    Note: 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 …

/writing · tags · archive · visual · rss