Shortcuts in IPython

For the pathologically lazy, there are some shortcuts in IPython to save you from typing often-used commands.

p short for print
page prints long variables one page at a time
demo1 3,4 function call to demo1(): don’t have to use parentheses
,demo1 a,b function call to demo1(): send arguments as strings ‘a’ and ‘b’
/demo2 function call to demo2(), a function with no input arguments
xyz(3,4); semicolon suppresses output from xyz()’s return statement

Tags: , ,

Leave a Reply