Ben Chuanlong Du's Blog

It is never too late to learn.

Disable Jedi in IPython

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

In the meantime, looks like there is a way one can disable jedi in ipython with Completer.use_jedi: https://ipython.readthedocs.io/en/stable/config/options/terminal.html

Specifically you can …

Print Colored Text in Terminal

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

https://stackoverflow.com/questions/287871/how-to-print-colored-text-in-terminal-in-python

Tips on Xonsh

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

https://github.com/xonsh/xonsh/wiki/Cheatsheet

Tricks and Traps

  1. While $() in xonsh works similar to $() in (all variants of) shell, it cannot be used in the middle of argument of …

Fix Version Confliction of the Six Package

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

ERROR: jsonschema 3.1.1 has requirement six>=1.11.0, but you'll have six 1.10.0 which is incompatible.

sudo pip3 install six -U

Update a Line in Standard Output

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

The trick is to use \r (return) instead \n (return and new line). I will use Python to illustrate. The following Python code

:::Python import sys

for idx in range(5 …