Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on nbconvert

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

  1. Converting too many notebooks at the same (multiprocessing) causes zmq.error.ZMQError: Address already in use. The simple way to fix this issue is to limit the number of processes converting …

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 Jupyter-Book

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

xinstall jb -ic

Configuration

xinstall jb -c creates a copy of configuration file _config.yml in the current directory. By default, The configuration file _config.yml in the current directory (if …