Other articles


  1. Autocomplete in Python Shell on Windows

    Autocomplete in Python Shell on Windows

    Because I drive myself insane replicating this when I find I want autocomplete on Windows, here are the steps (as of January 2017 anyway):

    • pip install pyreadline
    • pip install ipython[shell]

    Except right now step 2 fails when installing scandir so I grabbed it …

    read more
  2. wxPython on OSX Mavericks with or without Homebrew

    wxPython on OSX Mavericks with or without Homebrew

    Just a short note for anyone else who runs into this nonsense: I could not get the current version of wxPython to install in a useful way using homebrew. brew install wxmac --python --devel to install into my Homebrew-controlled Python install worked …

    read more
  3. Django Profiling Bug

    Django Profiling Bug

    I’m doing some work profiling a large Django application and I was running into this weird error when I tried to aggregate the stats with gather_profile_stats.py which comes with Django. It kept throwing TypeError: zip argument #1 must support iteration if there were two profile …

    read more
  4. MySQL and Python on OSX

    MySQL and Python on OSX

    Because I rarely use MySQL nowadays and because how often do you set up a new machine, this is a reminder to myself on how to get mysql-python installed in a virtualenv

    1. Add /usr/local/mysql/bin to your path (permanently in your .profile)
    2. If …
    read more

social