[IPython-user] IPShellEmbed & listing interactive namespace?

Gökhan SEVER gokhansever@gmail....
Thu Jun 4 23:25:29 CDT 2009


Hi,

Try these snippets and do a whos() in IPython:

import IPython
shell = IPython.Shell.IPShell(user_ns=locals())
a = 5
shell.mainloop()

Gökhan


On Thu, Jun 4, 2009 at 10:40 AM, Allen Fowler <allen.fowler@yahoo.com>wrote:

>
> Hello,
>
> 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,
> Allen
>
>
>
>
>
> _______________________________________________
> IPython-user mailing list
> IPython-user@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20090604/c717ca2c/attachment.html 


More information about the IPython-user mailing list