ipython/ipython — pull request #3239 by eteq (2013-04-29 23:20:11+00:00)
Title: Allow "x" icon and esc key to close pager in notebook

As discussed in #3196, this adds two new ways to collapse/close the pager in the htmlnotebook. It adds a close "x" icon that upon clicking will hide the pager, and it makes it so that the ESC key immediately closes the pager.

Note that my javascript-fu is not so strong, so I'm not sure this is the best way to deal with keyboard interactions. It seems to work fine though.

I'm also including an image below of what the new icon layout looks like:
![pagerclose](https://f.cloud.github.com/assets/346587/441707/271ed77a-b123-11e2-8b31-9b170886550c.png)

I can easily change the icon to something like a down arrow or similar, if the close x seems too "hostile" (given that it can always be re-expanded).