ENH: add hide/show for command prompts

This is copied from the official Python documentation.

The copybutton.js comes from
http://docs.python.org/2/_static/copybutton.js