In today’s post, we will cover the basics of the web framework Streamlit. I am especially interested in Streamlit’s focus on data science applications. Therefore, we will build a simple web app with some data visualization on a housing price dataset. Read until the end to see a working example. At the same time, I…
All posts tagged python
Data Visualization: Bar Chart Animations With Manim
A few weeks ago, I covered how to install and get started with Manim and Python in a blog post and also made a YouTube video about it: In today’s post, I want to expand on Manim and show how we can use it to create bar chart animations. Previously, I made a YouTube video…
Expanded Conda Environment Export Tool
Here is a short post about conda environments and a conda script that adds a bit of extra functionality to the “conda env export” tool. One minor annoyance I have with Conda is the limitation of its environment exporting tool (conda env export) for my particular use. I decided to look for a solution that…
Using Manim and Python to Create Animations Like 3Blue1Brown
If you’ve ever been mesmerized by Grant Sanderson’s fluid and captivating animations on his YouTube channel, 3Blue1Brown, you might be wondering how he creates them. The answer lies in a homemade animation engine called Manim, built with Python. While Grant Sanderson’s original version is available, he recommends beginners start with the community edition. This version…
Implementing Backpropagation in Python: Building a Neural Network from Scratch
In today’s post, I will implement a matrix-based backpropagation algorithm with gradient descent in Python. For this purpose, we’ll only use the Numpy library to explain a bit of the mathematics behind the process (mainly multivariate calculus). To better cement the concept, we’ll build an XOR neural network (a network that learns to behave like…
ChatGPT: How to Use It To Write Python Code?
Today I’m writing about ChatGPT and how it can help you with coding. I used this AI tool to write a simple Flask application in Python in a matter of minutes. At the same time, I want to show how it can be used to have fun and help you work on your creative process.…
How to Use Stable Diffusion to Generate Images
I show how to use stable diffusion’s text-to-image script to generate AI images using a text prompt. Learn about basic prompt formation.
How To Build a Feedforward Neural Network In Python
Welcome back to another Python post. Today’s topic is about how to create a feedforward neural network in Python, from scratch. That means, without using Tensorflow, Keras, Pytorch, etc. The main library we’ll be using is numpy, which is the computing library for Python. I usually like to understand the underlying concepts of how things…
How to Implement a FIX Trading Engine in Python
A while ago, I started exploring the world of trading in hopes of building my own trading bots and learning more about this field. While researching, I came across the FIX protocol. In this post, I cover some of the basics of the FIX protocol. More specifically, I’m talking about FIX 4.4. Additionally, I am…
Supercharge Your Python Scripts With Command Line Interfaces
In this post, I’ll be showing you how to create a command-line interface (CLI) for your Python scripts. You will be able to run those scripts from the terminal with arguments. Oftentimes, when you write a script, you need it to perform more than one action at a time. One way to provide this functionality…