Libraries ========= Plot ---- ``` import matplotlib matplotlib.pyplot.plot(, ...) matplotlib.pyplot.show() matplotlib.pyplot.savefig() ``` Web --- ``` import bottle ``` ### Run ``` bottle.run(host='localhost', port=8080) bottle.run(host='0.0.0.0', port=80, server='cherypy') ``` ### Static request ### Dynamic request ### REST request Curses ------ ``` import curses def main(): curses.wrapper(draw) def draw(screen): screen.clear() screen.addstr(0, 0, "Press ESC to quit.") while screen.getch() != 27: pass ``` Profile ------- ``` import pycallgraph graph = pycallgraph.output.GraphvizOutput() graph.output_file = whith pycallgraph.PyCallGraph(output=graph): ```