[IPython-user] IPShellEmbed & listing interactive namespace?
Thu Jun 4 23:25:29 CDT 2009
Try these snippets and do a whos() in IPython:
shell = IPython.Shell.IPShell(user_ns=locals())
a = 5
On Thu, Jun 4, 2009 at 10:40 AM, Allen Fowler <firstname.lastname@example.org>wrote:
> I would like to use IPShellEmbed to let users tinker with the internal
> state of my application.
> After dropping them to the shell, what is the best way to give the users a
> list of currently available objects/names/modules?
> %who does not seem to be working as expected, and locals() is littered with
> ipython internal stuff.
> Thank you,
> IPython-user mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-user