Select the ipython formatted text (no need to copy) in browser or text editor, then press "opt-shift->" or "opt-shift-:" then get the nicely formatted ipython codes.
Go to github website for detail usage: https://github.com/bhishanpdl/Alfred_ipython_text_manipulation
-- NORMAL --