Purfe

Learn, create and have fun with Python

How to speak by Patrick Winston

Your ideas are like your children. And you don’t want them to go into the world in rags. You want to be sure that you have these techniques, mechanisms and thoughts about how to present ideas that you have in a way that they’re recognised for the value that is in them.

Jinja templates: Basics

Basic Jinja templates syntax {% … %} Statements. Add control flow and looping inside the templates {{ … }} Expressions. Evaluate expression, variable or function call {# … #} Comments # … ## Line Statements {% raw %} {% endraw…

Plotly Dash essentials

Some useful links for Dash app development Development Plotly graphs Plotly fundamentals Plotly express, plotly express API Basic charts Plotly maps Scatter Plots on Mapbox Styling graphs, styling templates Plotly colorscales Plotly. Discrete colors Dash Plotly graphs in Dash example…

Python Pandas quick reference

This is a working sheet for the Python Pandas library which is commonly used for data manipulation and analysis. Dataset used is FrogID dataset 2.0 Main data structures in Pandas numpy.ndarray is the bedrock data structure on which the Pandas…

Linux file permissions explained

Why Linux has file permissions? In short – for security reasons. Linux by design is a multi-user operating system. But if any user could access and modify all files, including those belonging to other users or system files, this would…

How to save and exit nano editor

step-by-step guide with pictures Save a new document in nano 1. to save press Cntr O 2. enter file name at the bottom of the editor 3. press Enter (you should see the prompt with total number of lines being…

Where to deploy Python app for free in 2021

Updated for 2021! Including low-budget options There are several options for hosting your Python app, including Flask and Django web apps, microservices and telegram bots. In this post, I will give a short overview of available options to deploy and…

Monitoring the filesystem for changes using Python and watchdog. Watchdog cross platform library allows to detect changes made to files in the directory. There are options to specify patterns for files (think extensions) and set recursive flag for tracking changes…

Back to top