Web Development

Creating, Reading & Updating A Config File with Python

Subtitle: Avoid Hard-Coded Data While Making Your (And Others) Life Easier When the subject of config, or configuration, files comes up there is often confusion on what they are, how to read them, and the benefits that come from their use. In this article, we will cover what config files are before introducing the Python …

Creating, Reading & Updating A Config File with Python 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 …

Your First Dash App – How to Get Started in 4 Minutes or Less 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 …

How to Get an HTML Page from a URL in Python? 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 …

Python Celery – How to Get a Task Result Object by ID? 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 …

How to Create an Interactive Web Application using a Jupyter Notebook 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 …

Python HTML Get Parameter Read More »

How to Get Started With Python Dash on PyCharm [Absolute Beginners]

This is a chapter draft for our upcoming book “Python Dash” with NoStarch—to appear in 2021. Stay tuned! Why an IDE Using an integrated development environment (IDE) has the potential to significantly accelerate your programming productivity. Many programmers do not unlock their full potential until they finally decide to switch from a simple code editor …

How to Get Started With Python Dash on PyCharm [Absolute Beginners] Read More »

Python Dash: How to Build a Beautiful Dashboard in 3 Steps

Data visualization is an important toolkit for a data scientist. Building beautiful dashboards is an important skill to acquire if you plan to show your insights to a C-Level executive. In this blog post you will get an introduction to a visualization framework in Python. You will learn how to build a dashboard from fetching …

Python Dash: How to Build a Beautiful Dashboard in 3 Steps Read More »