Tag Archives: python

Monte Carlo Integration

Monte Carlo integration uses random numbers to approximate the solutions to integrals. While not as sophisticated as some other numerical integration techniques, Monte Carlo integration is still a valuable tool to have in your toolbox. Monte Carlo integration is one type of Monte Carlo method – a family of techniques which use randomly generated numbers… Read More »

Python Strategy Pattern

The strategy pattern is all about being able to swap complex functionality in and out, without needing to change large amounts of code. This post summarises the strategy pattern in python. Formal, traditional design patterns are not found in python as often as in other languages such as C# or Java. It can still help… Read More »

Wikipedia Data Stream

Streaming data is an important part of modern data processing. If you are just starting out, and perhaps don’t yet work somewhere with access to a big data streaming infrastructure, it can be hard to know where to start. This post talks you through a simple wikipedia data stream example from the wikimedia documentation. Wikipedia… Read More »

Python Tkinter Example

This post works through a simple example of creating a GUI in python using Tkinter. The python tkinter example goes through some simple things that a GUI would need to do such as creating new windows, text input, and labels. This isn’t a tutorial as such, but instead I’ve tried to pick out a few… Read More »