Ipython
Features
- Tab completion <Tab>
- tab after command
- object.<tab>
- introspection (?) operator after a variable (object)
- Terminal Shortcuts
- follow Emacs keys and Linux shell keys
- Ctrl + Shift + V paste from clipboard
- Command Line history
- Ctrl + P (Up), Ctrl + N (Down) : previous or next history (by %run)
- _ _and \_ stored previous two commands,
- _<n> stores previous nth output
- _i<n> previous nth input
- %run, %load
- %prun - Execute with c profile statement
- %paste, %cpaste
- %%prun - profile code block
- %lprun - line profiler
- uses line_profiler
- %lprun -f func1 -f func2 <statement to profile>
- %quickref, %magic - documentation
- %who, who_ls whos
- %xdel <variable>
- %reset - delete all variables
- % pdb - use pdb to debug
- %debug : drops you to the stack frame after error is thrown
- %page Object
- %time, %timeit <statement>
- time time once, timeit takes multiple runs and average
- command line ones
- !<cmd>
- cmd in system shell
- can combine with current python variables with $
- %alias <alias_name> <cmd>
- %pwd
- %bookmark <name> <dir>
- -b: override and use bookmark location
- -l: list all bookmarks
- %cd
- %dirs
- %ddhist
- history of visited directories
- %env
- Matplotlib
- %matplotlib: configure matplotlib options
Advanced Features
- Ipython-Friendly Class
- Profiles and Configuration
- .ipython/profile_default/ipython_config.py
- .jupyter/
- ipython --profile=<profile>
Jupyter Notebook
- Running on cloud now
- Local Run
- Config Jupyter
- jupyter notebook --config=...