Real Python: Writing Comments in Python (Guide)
When writing code in Python, it’s important to make sure that your code can be easily understood by others. Giving variables obvious names, defining explicit functions, and organizing your code are all...
View ArticleCatalin George Festila: Python Qt5 - tray icon example.
This tutorial is about another tray icon application type.The base application is the same like any application with some changes with this steps:- QSystemTrayIcon this will start to create the...
View ArticleErik Marsja: Data Manipulation with Pandas: A Brief Tutorial
Learn three data manipulation techniques with Pandas in this guest post by Harish Garg, a software developer and data analyst, and the author of Mastering Exploratory Analysis with pandas.Modifying a...
View ArticleNigel Babu: Testing Ansible With Molecule
My colleague was recently assigned a task to create tests for an ansible role that she works on. She pinged me for help and we got started in figuring out what to do.The first thing we attempted was to...
View ArticleTest and Code: 52: pyproject.toml : the future of Python packaging - Brett...
Brett Cannon discusses the changes afoot in Python packaging as a result of PEP 517, PEP 518, starting with "How did we get here?" and "Where are we going?"Discussed:flitPoetrytoxContinuous...
View ArticleMike Driscoll: The Ultimate Programmer Super Stack Bundle
I recently had the opportunity to get my second book, Python 201: Intermediate Python added to a bundle of other interesting programming books.It is called The Ultimate Programmer Super Stack and it is...
View ArticleCatalin George Festila: Python Qt5 - QColorDialog example.
Today I will show you how to use the QColorDialog and clipboard with PyQt5.You can read documentation from the official website.This example used a tray icon with actions for each type of code...
View ArticlePython Celery - Weekly Celery Tutorials and How-tos: Quick Guide: Custom...
I previously wrote about how to customise your Celery log handlers. But there is another Celery logger, the celery.task logger. The celery.task logger is a special logger set up by the Celery worker....
View ArticleStack Abuse: Applying Wrapper Methods in Python for Feature Selection
IntroductionIn the previous article, we studied how we can use filter methods for feature selection for machine learning algorithms. Filter methods are handy when you want to select a generic set of...
View ArticlePyCoder’s Weekly: Issue #341 (Nov. 6, 2018)
Come work on PyPI, the future of Python packaging, and more body,#bodyTable,#bodyCell{ height:100% !important; margin:0; padding:0; width:100% !important; } table{ border-collapse:collapse; } img,a...
View ArticleErik Marsja: Pandas Excel Tutorial: How to Read and Write Excel files
In this tutorial we will learn how to work with Excel files and Python. It will provide an overview of how to use Pandas to load and write these spreadsheets to Excel. In the first section, we will go...
View ArticlePyCharm: PyCharm 2018.2.5 RC
We have a couple of fixes for PyCharm 2018.2 which you can now try in the 2018.2.5 Release Candidate.New in 2018.2.5 RCAn issue that causes PyCharm to crash on Ubuntu 16.04 has been resolvedMatplotlib...
View Articlegamingdirectional: Pygame’s Color class demo
Today I have paid a visit to the Pygame document page to revise all the pygame classes one by one because I have already forgotten all of them. In order to create a game with Pygame I will need to get...
View ArticleReal Python: Python "while" Loops (Indefinite Iteration)
Iteration means executing the same block of code over and over, potentially many times. A programming structure that implements iteration is called a loop.In programming, there are two types of...
View ArticleCodementor: Deploy Private Github Python Packages on Heroku without Exposing...
Recently, we met a deployment problem in heroku python environment. In heroku python deployment, it will execute pip install requirements.txt and install packages in the file. But when you have a...
View ArticlePython Anywhere: Always-on tasks
Always-on tasks are a new feature we rolled out in our last system update. Essentially, they're a way you can specify a program and tell us that you want us to keep it running all the time. If it exits...
View ArticleMike Driscoll: Python 101: Episode #32 – Static Code Analysis
In this episode, we learn how we can use PyLine and PyFlakes to check our code for issues. Of course since this video was made, Flake8 and Python Black have become pretty popular, so you might want to...
View ArticleCatalin George Festila: Python Qt5 - QLCDNumber and QDial example.
This tutorial uses a simple example of QLCDNumber and QDial.The steps start with create the QWidget with the QLCDNumber and QDial.You need to set geometry for both and connect the dial with...
View ArticleMoshe Zadka: The Conference That Was Almost Called "Pythaluma"
As my friend Thursday said in her excellent talk (sadly, not up as of this time) naming things is important. Avoiding in-jokes is, in general, a good idea.It is with mixed feelings, therefore, that my...
View Articlegamingdirectional: Pygame Music player demo
In this article we are going to play the background music with the help of the pygame.mixer_music module. We will first load the soundtrack then play it repeatedly. We can also play the background...
View Article