How to setup R using conda

Recently I’ve been working with some of the statistics staff at the University of Manchester on sports analytics. Specifically we’ve been looking for useful models in football data. People from this background normally use R to analyze data and fit models.

Normally I would use Python for this kind of task but, since there was already a considerable amount of code in R, it made sense for me to do some work in R. The people at Continuum Analytics (who make the brilliant Anaconda Python distribution) recently announced support for R using their package manager conda. However, it wasn’t easy to find instructions to get a fully working environment, so here is what I did.

Continue reading “How to setup R using conda”

Emacs and Anaconda Python

Recently I posted a blog about using Emacs and Python together. It was about having setting in your .emacs file allowing Emacs to interact with the default Python and SciPy/NumPy from the Ubuntu repositories, which is out of date. After changing Python version to Anaconda Python this broke all my Emacs setup! It was a real pain to fix so I’ve collected the main ideas here.

Anaconda Python

To use the latest versions of the Python packages like SciPy and NumPy I downloaded the Anaconda Python distribution. It includes lots of the most useful Python packages for scientific computing by default such as

  • Numba and Cython for speeding up code.
  • SymPy for symbolic computation.
  • F2Py for converting Fortran code.
  • IPython for a better interactive experience.
  • mpi for parallel computing.
  • PEP8 and PyFlakes to enforce coding standards.

I’d really recommend it as an easy way to get a good Python install. You can also pay extra for upgrades like linking NumPy with MKL for enhanced speed (which is free for academics).

Continue reading “Emacs and Anaconda Python”

Fixing the August LP107T presentation pointer in Linux.

The problem

Before my first major conference as a PhD student I was looking for a cheap presentation pointer. After a little searching I bought the August LP107T because it’s cheap, has a built-in timer and claims full Linux compatability.

Unfortunately this last part isn’t quite true: kernel update 2.6.37 introduced support for the Yurex leg shake sensor which uses the same Vendor ID and Product ID as the pointer, overwriting the original driver.

There is an old bug report for this here but it still isn’t fixed as far as I can tell.

lp_107t_buttons.jpg New button maps for the LP107T (can be changed).

Continue reading “Fixing the August LP107T presentation pointer in Linux.”