Issue #411

Jupyter Notebooks in 2020, psycopg3, PyCon COVID-19 Update, and More

March 10, 2020

Jupyter Notebooks in 2020, psycopg3, PyCon COVID-19 Update, and More
#411 – MARCH 10, 2020 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Post-Mortem Python Plotting
Who loves debugging things that only fail occasionally? Just me? Maybe you need to check out Andy Jones’ extract() function that “magically” extracts a caller’s environment into an IPython interpreter session. Mix in a little post-mortem debugging with Jupyter’s %debug magic command, and you’ll be painlessly debugging finicky code in no time.
ANDY JONES

How to Use Jupyter Notebooks in 2020
In this first of a three-part blog post, LJ Miranda surveys the data science landscape and discusses the forces that push data science tools to evolve.
LJ MIRANDA

Python Developers Are in Demand on Vettery
Vettery is an online hiring marketplace that’s changing the way people hire and get hired. Ready for a bold career move? Make a free profile, name your salary, and connect with hiring managers from top employers today →
VETTERYsponsor

Thinking psycopg3
A core maintainer of the popular psycopg2 PostgreSQL adapter for Python discusses breaking changes he would like to see in a hypothetical pyscopg3 project, including better query/parameter separation, more sensible context manager behavior with connections, and async support.
DANIELE VARRAZZO

Alexa Python Development: Build and Deploy an Alexa Skill
In this tutorial, you’ll become an Alexa Python developer by deploying your own Alexa skill. You’ll build an application that users will interact with using voice commands to Amazon Alexa devices. Your skill will respond back with a random joke when invoked by the user!
REAL PYTHON

PyCon 2020 Update on COVID-19
“PyCon continues to closely monitor the Coronavirus (also known as COVID-19) situation. As of March 6, PyCon 2020 in Pittsburgh, Pennsylvania is scheduled to take place.”
PYCON.BLOGSPOT.COM


Discussions


About the “Add Python 3.X to PATH” Checkbox in the Windows CPython Installer…
An epic Twitter thread. It’s still active almost two weeks later, with tons of heavyweights chiming in.
TWITTER.COM/BITECODE_DEV

What Causes [*a] to Overallocate?
Stefan Pochmann investigates memory allocation for three methods of creating a list from an iterable a: list(a), [x for x in a], and [*a]. The last method, [*a], always overallocates memory for the list.
STACK OVERFLOW


Python Jobs


Senior Python/Django Software Engineer
ZEGO 📍 LONDON, UK

Senior Python Software Engineer
TESSIAN 📍 LONDON, UK

Senior Software Engineer Backend
CYBERGRX 📍 DENVER, CO, USA

More Python Jobs >>>


Articles & Tutorials


Python in GitHub Actions
“GitHub’s own CI called GitHub Actions has been out of closed beta for a while and offers generous free quotas and a seamless integration with the rest of the site. Let’s have a look on how to use it for an open source Python package.”
HYNEK SCHLAWACK

Mocking Asynchronous Functions in Python
As the adoption of asynchronous Python grows, the ability to reliably test asynchronous code is increasingly important. In this tutorial, Dino Costa shows you how to leverage Future objects in Python 3.7 and the AsyncMock object added in Python 3.8 to easily test asynchronous functions.
DINO COSTA

Become a Python Guru With PyCharm
PyCharm is the Python IDE for Professional Developers by JetBrains providing a complete set of tools for productive Python, Web and scientific development. Be more productive and save time while PyCharm takes care of the routine →
JETBRAINSsponsor

Syntactic Unification Is Easy!
Syntactic unification is the process of solving equations between symbolic expressions. Unification has applications in type systems and logic programming. In this article, Cassie Jones shows you how to implement a unification algorithm in just 30 lines of Python!
CASSIE JONES

Defining Your Own Python Functions
In this beginner tutorial, you’ll learn how to define and call your own Python functions. You’ll also learn about passing data to your function, and returning data from your function back to its calling environment.
REAL PYTHON

One Impact of the Dropping of Python 2 From Linux Distributions
“Everyone’s insistence on getting rid of Python 2 is magically transforming all of this perfectly functional and useful Python 2 code we have from an asset to a liability. You can imagine how I feel about that.”
CHRIS SIEBENMANN opinion

Understand Django: Views On Views
Django URLs expect to send a response back to a user.  Where does that response come from?  A Django view. This article looks into the fundamentals of views and how to use them in your project.
MATT LAYMAN • Shared by Matt Layman

Gradient Descent From Scratch
Gradient descent is one of the most fundamental optimization techniques used in machine learning. Learn the ins and outs of gradient descent by implementing it from scratch in Python.
PHILIPP MUENS

We Have to Talk About This Python, Gunicorn, Gevent Thing
“Here’s what happens when you build around Python, Gunicorn, Gevent, and web requests instead of something more sensible.” Although pessimistic, this was an interesting read.
RACHELBYTHEBAY.COM opinion

Defining Main Functions in Python
Learn how Python main functions are used and some best practices to organize your code so it can be executed as a script and imported from another module.
REAL PYTHON video

Open Source AutoML for Developers
Building & deploying machine learning can be painful. MindsDB enables developers to easily integrate ML into their projects without the need to involve a data scientist or ML expert. Check out our project on GitHub.
MINDSDBsponsor

Episode #171: Chilled Out Python Decorators With PEP 614
Real Python and PyCoder’s own David Amos guest hosts Python Bytes, talking about PEP 614, macOS menu bar apps with Python, test coverage, and more.
PYTHON BYTES podcast

Bundling Python Dependencies in a ZIP Archive
Shipping dependencies for your scripts as a single file, built with shiv.
JÜRGEN HERMANN • Shared by Jürgen Hermann

Applications of Signal Processing in Machine Learning
VAIDHEESWARAN ARCHANA


Projects & Code


Brought to you by Squaresponsor
Check out Square’s new Python SDK that makes it simple to take payments and run a business. Learn More →

enum-switch: Enum-Based Implementation of Switch for Python
ROBERTO ALSINA

posthog: Developer-Friendly, Open-Source Product Analytics
GITHUB.COM/POSTHOG

karateclub: Unsupervised Learning on Graph Structured Data
GITHUB.COM/BENEDEKROZEMBERCZKI

papermill: Parameterize, Execute, and Analyze Notebooks
GITHUB.COM/NTERACT

covid-19-analysis: Python Package for Generating Reports and Visualizations
GITHUB.COM/AARONWARD

aiohttp-swagger3: Display Swagger Docs via Different UI Backends
GITHUB.COM/HH-H • Shared by hh-h

portion: Data Structures and Operations for Intervals
GITHUB.COM/ALEXANDREDECAN • Shared by Alexandre Decan

pytest-responsemock: Simplified Request Mocking for Pytest
GITHUB.COM/IDLESIGN • Shared by pythonz

📆🐍 Upcoming Python Events


EuroPython 2020: Call for Proposals Now Open


PyMNTos
March 12, 2020

Python Atlanta
March 12, 2020

HackBVICAM National Student’s Convention 2k20
March 13 to March 14, 2020

Python Miami
March 14 to March 15, 2020

DFW Pythoneers 2nd Saturday Teaching Meeting
March 14, 2020

PyDelhi User Group Meetup
March 14, 2020
Happy Pythoning!
Copyright © 2020 PyCoder’s Weekly, All rights reserved.