The work on ansible [1] by ThePrimeagen [2].
No description available.
References:
[1]: https://github.com/ThePrimeagen/ansible
[2]: https://github.com/ThePrimeagen
Publishing rhythm
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.
https://youtu.be/Jj5cQ5bqcjg
What is Kedro [1]
👆 Unsure what kedro is? Check out this post.
parameters files # [2]
You can have multiple parameters files and choose which ones to load by setting
your environment. By default kedro will give you a base and local
parameters file.
- conf/base/parameters.yml
- conf/local/parameters.yml
base # [3]
The base environment should contain all of the default values you want to run.
# /conf/base/parameters.yml
test_size: 0.2
random_state: 3
features:
- engines
- passenger_capacity
- crew
- d_check_complete
- moon_clearance_complete
- iata_approved
- company_rating
- review_scores_rating
NOTE base will always be loaded first.
accessing parameters # [4]
Parameters can be accessed through context or throug...
Writing your first kedro Nodes
https://youtu.be/-gEwU-MrPuA
Before we jump in with anything crazy, let’s make some nodes with some vanilla
data structures.
import node # [1]
You will need to import node from kedro.pipeline to start creating nodes.
from kedro.pipeline import node
func # [2]
The func is a callable that will take the inputs and create the outputs.
inputs / outputs # [3]
Inputs and outputs can be None, a single catalog entry as a string, mutiple
catalog entries as a List of strings, or a dictionary of strings where the key
is the keyword argument of the func and the value is the catalog entry to use
for that keyword.
our first node # [4]
Sometimes in our pipelines our data is coming from an api where we already have
python functions built to pull with. Thats ok, kedro supposrts that with
inputs=None.
def create_range():
return range(100)
make_range = node(
func=create_range,
inputs=None,
outputs='range'
)
second node # [5]
Now we have some data to work from, lets use that as our inpu...
I’m impressed by Telegraph.nvim [1] from WaylonWalker [2].
Send commands system commands in an elegant way
References:
[1]: https://github.com/WaylonWalker/Telegraph.nvim
[2]: https://github.com/WaylonWalker
I came across nvim-example-lua-plugin [1] from jacobsimpson [2], and it’s packed with great features and ideas.
A simple Neovim Lua plugin using the Lua embedded in Neovim, suitable as a template.
References:
[1]: https://github.com/jacobsimpson/nvim-example-lua-plugin
[2]: https://github.com/jacobsimpson
I’m impressed by skimpy [1] from aeturrell [2].
skimpy is a light weight tool that provides summary statistics about variables in data frames within the console.
References:
[1]: https://github.com/aeturrell/skimpy
[2]: https://github.com/aeturrell
I like mobilemancer’s [1] project windows-terminal-aurelia [2].
Aurelia inspired Windows Terminal theme
References:
[1]: https://github.com/mobilemancer
[2]: https://github.com/mobilemancer/windows-terminal-aurelia
I’m really excited about vim-startuptime [1], an amazing project by dstein64 [2]. It’s worth exploring!
A plugin for viewing Vim and Neovim startup event timing information.
References:
[1]: https://github.com/dstein64/vim-startuptime
[2]: https://github.com/dstein64
I like wbthomason’s [1] project packer.nvim [2].
A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
References:
[1]: https://github.com/wbthomason
[2]: https://github.com/wbthomason/packer.nvim
Just starred nvim-lspconfig [1] by neovim [2]. It’s an exciting project with a lot to offer.
Quickstart configs for Nvim LSP
References:
[1]: https://github.com/neovim/nvim-lspconfig
[2]: https://github.com/neovim
If you’re into interesting projects, don’t miss out on nvim-treesitter [1], created by nvim-treesitter [2].
Nvim Treesitter configurations and abstraction layer
References:
[1]: https://github.com/nvim-treesitter/nvim-treesitter
[2]: https://github.com/nvim-treesitter
Looking for inspiration? vim-matchup [1] by andymass [2].
vim match-up: even better % 👊 navigate and highlight matching words 👊 modern matchit and matchparen. Supports both vim and neovim + tree-sitter.
References:
[1]: https://github.com/andymass/vim-matchup
[2]: https://github.com/andymass
treesitter-unit [1] by David-Kunz [2] is a game-changer in its space. Excited to see how it evolves.
A Neovim plugin to deal with treesitter units
References:
[1]: https://github.com/David-Kunz/treesitter-unit
[2]: https://github.com/David-Kunz
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.
https://youtu.be/ZmccpLy-OEI
What is Kedro [1]
👆 Unsure what kedro is? Check out this post.
Kedro run # [2]
To run the whole darn project all we need to do is fire up a terminal, activate
our environment, and tell kedro to run.
kedro run
Specific Pipelines # [3]
Running a sub pipeline that we have created is as easy as telling kedro which
one we want to run.
kedro run --pipeline dp
Single Nodes # [4]
While developing a node or a small list of nodes in a larger pipeline its handy
to be able to run them one at a time. Besides the use case of developing a
single node I would not reccomend leaning very heavy on running single nodes,
le...
kedro Virtual Environment
Avoid serious version conflict issues, and use a virtual environment [1] anytime
you are running python, here are three ways you can setup a kedro virtual
environment.
https://youtu.be/ZSxc5VVCBhM
- conda
- venv
- pipenv
conda # [2]
I prefer to use conda as my virtual environment manager of choice as it give me
both the interpreter and the packages I install. I don’t have to rely on the
system version of python or another tool to maintain python versions at all, I
get everything in one tool.
conda create -n my-project python=3.8 -y
conda activate my-project
python -m pip install --upgrade pip
pip install -e src
conda info --envs
- stores environment in a root directory i.e. ~/miniconda3
- conda can use its own way to manage environments environment.yml
- the python interpreter is packaged with the environment
virtualenv # [3]
Virtual env (venv) is another very respectable option that is built right into
python, and requires no additional installs or using a different dis...
I’m impressed by circles.nvim [1] from projekt0n [2].
uniform icons for neovim
References:
[1]: https://github.com/projekt0n/circles.nvim
[2]: https://github.com/projekt0n
Kedro Install
Kedro comes with an install command to install and manage all of your
projects dependencies.
https://youtu.be/IWimEs-hHQg
cd into your project directory and activate env # [1]
You must start by having your kedro project either cloned down
from an existing project or created from kedro new. Then
activate your environment.
Kedro New [2]
this post covers kedro new
kedro Virtual Environment [3]
This post covers creating your virtual environment [4] for kedro
install kedro # [5]
Make sure you have kedro installed in your current
environment, if you dont already have it.
pip install kedro==0.17.4
pip-tools # [6]
Kedro uses the pip-tools package under the hood to pin
dependencies in a very robust way to ensure that the project
will continue to work on everyone’s machine day, including
production, day in and day out. No matter what happens to the
dependencies you have installed.
pip-compile # [7]
The command that kedro uses from pip-tools is pip-compile. It will look at
what yo...
Kedro Git Init
Immediately after kedro new, before you start running kedro install or your first line of code the first
thing you should always do after getting a new kedro template created is to
git init.
https://youtu.be/IGba3ytf_6U
git init # [2]
Its as simple as these three commands to get started.
git init
git add .
git commit -m init
I don’t care if this project is for learning, if it will never have a remote or not, use git.
References:
[1]: /glossary/git/
[2]: #git-init
Kedro New
https://youtu.be/uqiv5LAiJe0
Kedro new is simply a wrapper around the cookiecutter templating library. The
kedro team maintains a ready made template that has everything you need for a
kedro project. They also maintain a few kedro starters, which are very similar
to the base template.
What is Kedro [1]
Unsure what kedro is, Check out yesterdays post on What is Kedro.
pipx # [2]
I reccomend using pipx when running kedro new. pipx is designed for system
level cli tools so that you do not need to maintain a virtual environment [3] or
worry about version conflicts, pipx manages the environment for you.
The kedro team does not reccomend pipx in their docs as they already feel
like there is a bit of a tool overload for folks that may be less familiar with
pipx kedro new
I like using pipx as it gives you better control over using a specific
version or always the latest version, unlike when you run what you have on your
system depends on when you last installed or upgraded.
Kedro Ne...
Check out AckslD [1] and their project nvim-neoclip.lua [2].
Clipboard manager neovim plugin with telescope integration
References:
[1]: https://github.com/AckslD
[2]: https://github.com/AckslD/nvim-neoclip.lua