I recently paired up with another dev running windows with Ubuntu running in wsl, and we had a bit of a stuggle to ge...
Posts tagged: python
All posts with the tag "python"
The copier answers file is a key component to making your templates re-runnable. Let's look at the example for my set...
Once you have made your sick looking cli apps with rich, eventually you are going to want to add some keybindings to ...
pipx examples
Copier Templates
%%include til/copier_endops
%%include til/copier-template-variables
%%include til/copier-answers
I was completely stuck for awhile. copier was not replacing my template variables. I found out that adding all these ...
I've been looking for a templating tool for awhile that works well with single files. My go to templating tool does n...
I just installed a brand new Ubuntu 21.10 Impish Indri, and wanted a kedro project to play with so I did what any goo...
Pluggy makes it so easy to allow users to modify the behavior of a framework without thier specific feature needing t...
pyenv provides an easy way to install almost any version of python from a large list of distributions. I have simply ...
Part of my neovim setup requires having the python formatter installed and callable. I install it with so that I don'...
Adding a method that returns a rich renderable to any python class makes it display this output if printed with rich....
Smoother Python with automatic imports | pyflyby
This is not a flaky works half the time kind of plugin, it’s a seriously smooth editing experience. I’ve just started using pyflyby, and it is solid so far. I have automatic imports on every save of a python file in neovim, and automatic imports on every command in ipython.
I can’t tell you how pumped I am for this, and how good its felt to use over the past few weeks. It’s glorious.
Listen to me rant on how great pyflyby is
...
Kedro Course
find all nodes with raw in the name
use parameters
make and use a logger
...
kedro catalog create
I use kedro catalog create to boost my productivity by automatically generating yaml catalog entries for me. It will create new yaml files for each pipeline, fill in missiing catalog entries, and respect already existing catalog entries. It will reformat the file, and sort it based on catalog key.
...
Using Nix to manage my Python Interpreter
Just Ask Ipython for help
We can’t all remember every single function signature out there, it’s just not possible. If you want to stay productive while coding without the temptation to hit YouTube or Twitter. Use the built in help. Here are 5 ways to get help without leaving your terminal.
In any python repl you can access the docstring of a function by calling for help.
...
Setting Parameters in kedro
Parameters are a place for you to store variables for your pipeline that can be accessed by any node that needs it, and can be easily changed by changing your environment. Parameters are stored in the repository in yaml files.
...
Writing your first kedro Nodes
Before we jump in with anything crazy, let’s make some nodes with some vanilla data structures.
You will need to import node from kedro.pipeline to start creating nodes.
...
Running your Kedro Pipeline from the command line
Running your kedro pipeline from the command line could not be any easier to get started. This is a concept that you may or may not do often depending on your workflow, but its good to have under your belt. I personally do this half the time and run from ipython half the time. In production, I mostly use docker and that is all done with this cli.
...