Skip to content
Russell91 edited this page Jun 14, 2014 · 53 revisions

pythonpy will automatically replace sharp quotes with single quotes before processing an expression:

py '`hello world`'
hello world
py '"ma`am"'
ma'am
alias pyplt='py -c '"'"'import matplotlib; matplotlib.use(`Agg`); import matplotlib.pyplot as plt'"'"' -C '"'"'plt.savefig("output.pdf")'"'"
py '[math.sin(x/10) for x in range(100)]' | pyplt -l 'plt.plot(l)'

Clone this wiki locally