Ipython usage

From wikinotes
Revision as of 20:29, 19 September 2021 by Will (talk | contribs) (→‎Interpreter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Commandline

ipython --help-all   # show all help
ipython help kernel  # show subcommand help

# load with vi-mode activated
ipython --TerminalInteractiveShell.editing_mode=vi

Interpreter

cd /path/to/files # can cd in ipython
run script.py    # run a script

# change loglevel
logging.root.level = logging.DEBUG

# autoreload before each run
%load_ext autoreload
%autoreload 2