Header image for __main__.py file in a project

__main__.py file in a project

This is, to a Python project / module, what if __name__ == '__main__ is to an individual Python file.

Header image for A nice workflow for creating Python projects with AI

A nice workflow for creating Python projects with AI

First, create a new project using poetry

Header image for Emmet Abbreviations in VSCode

Emmet Abbreviations in VSCode

Apparently there’s this plugin for many IDEs called Emmet which makes writing HTML very fast!

Header image for Installing Racket (Scheme) in WSL

Installing Racket (Scheme) in WSL

We’ll install Racket from apt as follows, as the snap version ended up with many hassles

Header image for raco is Racket’s Package Management System (among other things …)

raco is Racket’s Package Management System (among other things …)

In the Racket programming language, raco is a command-line tool used to interact with Racket's package management system, run tests, build documentation, and perform other tasks related to Racket development. It's a versatile utility that automates various tasks in Racket projects.

Header image for Writing Racket (Scheme) in Jupyter Notebooks

Writing Racket (Scheme) in Jupyter Notebooks

First, we’re going to install Jupyter. As we don’t want to contaminate our global Python installation, we’ll do this in a venv

Header image for Debugging Python programs that require CLI arguments in VSCode

Debugging Python programs that require CLI arguments in VSCode

Command Palette (CTRL+SHIFT+P): Debug: Add Configuration

Header image for Debugging Python Tests in VSCode

Debugging Python Tests in VSCode

VSCode offers native test capabilities that are quite useful. Testing Python in Visual Studio Code

Header image for Suppressing Rich Tracebacks in Typer Apps

Suppressing Rich Tracebacks in Typer Apps

This must be applied to the configuration of the Typer object created for the CLI.

Header image for Uninstalling Poetry Completions for zsh

Uninstalling Poetry Completions for zsh

Here’s how to enable: https://python-poetry.org/docs/#enable-tab-completion-for-bash-fish-or-zsh