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

Creating Animated Plots with Pandas_Alive

Posted by Jack McKew on Thu 21 May 2020 in Data Science • Tagged with datascience, python, data-viz, datavisualisation • 5 min read

In this tutorial we'll learn how to create a series of animations using Pandas_Alive. This post is rendered in the style of a Jupyter Notebook. Find the source here: https://github.com/JackMcKew/jackmckew.dev/tree/master/content/2020/pandas_alive/notebooks/pandas_alive_demo.ipynb.

Pandas_Alive was created by me! I set …


Continue reading

COVID-19 Confirmed Cases NSW Australia - Animated Statistics over Time

Posted by Jack McKew on Thu 14 May 2020 in Data Science • Tagged with datascience, python, data-viz, datavisualiation • 1 min read

Recently, I had wanted to build a visualisation of the confirmed cases of COVID-19 in my home state NSW. This post is to cover the release of the visualisation on YouTube, and there is hopes to write future post(s) about building this visualisation & developing Pandas_Alive. Would love to hear …


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