ipython/ipython — pull request #1640 by minrk (2012-04-21 06:50:50+00:00)
Title: Finish up embed_kernel

This is just a few more commits on top of PR #1357, addressing the pending review on that one.

Changes, per review in #1357:

* fix inheritance of user_module/ns (IPKernelApp never has them)
* remove unnecessarily specific `extract_module_locals_above`
* super basic tests
* note in docs
* docstrings

Extra edit, to better match `IPython.embed()`:

* embed_kernel takes `**kwargs` to allow configuration of the kernel