Visualizing algorithms with Jupyter notebooks

Last couple of days I was looking into some old implementation of k-means clustering that I wrote. At that time I didn't know how to use matplotlib and to display the clusters that were generated and I was printing commands that I was plugging into R. Since then, I've learned how to use Jupyter, so I sat down and imported the code into a Jupyter notebook that's visualizing the algorithm.

Here's the Jupyter notebook. Overall, I quite enjoy how this format mixes the results of code execution with Markdown segments.

social