Ben Chuanlong Du's Blog

It is never too late to learn.

Format Python Code Using Black

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation

pip3 install -U black[jupter]

Usage

The following code formats Python files and Jupyter/Lab Notebooks under the current directory.

black ./

References

Tips on NeoVim

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation on Ubuntu

You can install the latest stable version of neovim using the command below.

sudo add-apt-repository ppa:neovim-ppa/stable
wajig update
wajig install neovim

Tips and Traps

  1. NeoVim with …