How To
Setting up Python notebooks locally for Machine Learning
This is mainly for students on my machine learning course. I use a lot of Python notebooks either for examples from lectures or for assignments. While there are many options for hosting python notebooks for free remotely, but I prefer to do things locally. If you wish to do the same then please read on. Note that I did home some problems installing
skikit-image
on a new Apple with M1 silicon, but after upgrading the latest version of the operating system and doing and updating myhomebrew
setup everything works. Note that these instructions are for usingpip
. If you are using an alternative package manager such asAnaconda
then you are on your own. I know nothing about setting up Python on a windows machine.Published Jan, 2022Using the Haskell State Monad
A short tutorial on using the built in state monad. I promise you will not build your own state monad.Published Mar, 2021Creating and using Python Virtual Environments
In a lot of my courses I encourage students to use python virtual environments. Virtual environments are a great way of making sure that you have the correct version of packages installed. This is very short cheat sheet on how to set them up. I will assume that we are using Python 3. Luckily Python 3 has virtual environments set up. It is all in the documentation, but then sometimes people are too lazy to google, or do not know what to google for. Of course this assumes that you are a command line person. If you are using some IDE, then you are on your own.
Published Dec, 2020