How to Build and Host Your Python Web App for Free

Hey Finxters! Have you ever felt surrounded by developers boasting from their latest app in prod hosted in the cloud?  Or the need for making yours too but overwhelmed by the technicalities involved? Needed to set up quickly and easily a mini data science demo website without resorting to web developers? Or simply wanting to … Read more

Your First Dash App – How to Get Started in 4 Minutes or Less

Minute 1: Install Dash Type the following command in your terminal/shell. Windows, macOS: Linux, Ubuntu: Minute 2: Create Minimal Dash Project File “app.py” Copy&paste the code into a new file called β€œapp.py” in a folder – with path /path/to/dash_app/app.py: Minute 3: Run Dash App Open a terminal or shell in the /path/to/dash_app/ and run python … Read more

How to Get an HTML Page from a URL in Python?

This tutorial shows you how to perform simple HTTP get requests to get an HTML page from a given URL in Python! Problem Formulation Given a URL as a string. How to extract the HTML from the given URL and store the result in a Python string variable? Example: Say, you want to accomplish the … Read more

Python Celery – How to Get a Task Result Object by ID?

What is Celery? Celery allows you to scale your application by distributing processing workload among multiple worker machines or processes. Celery uses task queues as units of work. A dedicated worker process monitors those task queues and pulls new work from those if it becomes available. Clients add messages to the task queue and brokers … Read more

Less Is More in Design

This chapter draft from my upcoming book “From One to Zero: Minimalism in Programming” will appear in revised form in 2021 with NoStarch (SanFrancisco). Stay tuned for updates on the book launch: In this chapter, you’ll enter a vital area in computer science that greatly benefits from a minimalistic mindset: design and user experience (UX). … Read more

How to Create an Interactive Web Application using a Jupyter Notebook

Summary: To create an interactive web application in a Jupyter Notebook, use the three libraries ipywidgets, voila, and binder. This requires only basic Python programming skills without the need to learn a new framework. There are various Python tools available to create web applications and frontend GUIs. For example, Flask and Django. As useful as … Read more

Python HTML Get Parameter

Problem Formulation: How to perform an HTTP get call in Python? Solution: Use Python’s requests library. This is semantically equivalent to issuing an HTTP get call: http://example.com?param_1=value_1&param_2=value_2 In fact, you can obtain this exact URL by using the r.url attribute on the request object: You can find the text response by using the r.text attribute … Read more