Translating Text in Python

Posted by Jack McKew on Fri 29 May 2020 in Data Science • Tagged with datascience, python • 9 min read

Massive thank you to Chema, who translated this article himself into Spanish! Check it out at: https://www.ibidemgroup.com/edu/traduccion-automatica-texto-python/

Working with data in a connected digital world, means you will possibly encounter data in a language outside your own. In this post we'll go into ways to …


Continue reading

Managing Virtual Environments on Windows

Posted by Jack McKew on Thu 30 April 2020 in Python • Tagged with Python • 3 min read

Managing virtual environments for Python on Windows was never straightforward in my experience. There is so many different tools available (which is fantastic!), it's difficult to find the right combination for Python projects. This post is for the combination of tools that work for my application, if there are any …


Continue reading

Packaging Python Packages with Poetry

Posted by Jack McKew on Wed 25 March 2020 in Python • Tagged with python • 6 min read

Packaging Python code to easily share code with others!

Building upon a previous post on "How many words have I written in this blog?", let's dive into how to share this code with other on PyPI and integrate into this website with a 'word ticker' which updates whenever a new …


Continue reading

Counting Words with Python

Posted by Jack McKew on Thu 19 March 2020 in Python • Tagged with python • 5 min read

Recursively counting words in markdown within a folder

In the last 55 posts, I've written 34846 words in this blog. In comparison, my engineering thesis for graduating university was 9916 words across 69 pages.

A question had popped into my mind this week, "How many words have I written in …


Continue reading

Python Bytes Awesome Package List

Posted by Jack McKew on Wed 11 March 2020 in Python • Tagged with python • 6 min read

Python Bytes is a weekly, short & sweet podcast by Michael Kennedy & Brian Okken. After having the podcast recommended numerous times by friends & colleagues, I decided to download every episode thus far on the 14th of September 2019. Over the next 174 days, whenever I was commuting, I'd listen to 171 …


Continue reading

3D Gradient Descent in Python

Posted by Jack McKew on Wed 26 February 2020 in Python • Tagged with python, visualisation, generative • 40 min read

Visualising gradient descent in 3 dimensions

Building upon our terrain generator from the blog post: https://jackmckew.dev/3d-terrain-in-python.html, today we will implement a demonstration of how gradient descent behaves in 3 dimensions and produce an interactive visualisation similar to the terrain visualisation. Note that my understanding of gradient …


Continue reading

Getting Started in Python

Posted by Jack McKew on Thu 20 February 2020 in Python • Tagged with python • 4 min read

Resources & tips for getting started in Python

Glossary

One of the most useful skills in my opinion in all walks of life is the ability to find information & answers. A very useful tool for doing this is the internet & search engines like Google. In my opinion being able to search …


Continue reading

Automatically Generate Documentation with Sphinx

Posted by Jack McKew on Mon 03 February 2020 in Python • Tagged with python • 5 min read

Document code automatically through docstrings with Sphinx

This post goes into how to generate documentation for your python projects automatically with Sphinx!

First off we have to install sphinx into our virtual environment. Pending on your flavour, we can do any of the following

1
2
3
pip install sphinx …

Continue reading

3D Terrain in Python

Posted by Jack McKew on Fri 24 January 2020 in Python • Tagged with python, visualisation, generative • 21 min read

Generating & Visualising 3D Terrains in Python

Today, let's put together a 3D visualisation of randomly generated 'terrain' with Python. Data visualisation is an absolutely key skill in any developers pocket, as communicating both data, analysis and more is thoroughly simplified through the use of graphs. While a picture tells a …


Continue reading

Intro To GeoPandas

Posted by Jack McKew on Wed 15 January 2020 in Python • Tagged with python, visualisation • 6 min read

Pandas for geospatial data

Personally whenever I am faced with a problem that involves analysing geospatial data, GeoPandas is the first tool/package I reach for. Extending on the Pandas dataframe data structure, GeoPandas brings functionality for working with points, polygons and more out of the box. This post is …


Continue reading