By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,931 Members | 1,976 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,931 IT Pros & Developers. It's quick & easy.

view workspace, like in MatLab ?

P: n/a
hello,

is there a function / library / IDE that displays all the user defined variables,
like the workspace in MatLab ?

thanks,
Stef Mientki
May 9 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On May 9, 5:00 am, Stef Mientki <S.Mientki-nos...@mailbox.kun.nl>
wrote:
hello,

is there a function / library / IDE that displays all the user defined variables,
like the workspace in MatLab ?

thanks,
Stef Mientki
Stef,
In the Python interactive prompt you can try:

[var for var in dir() if not (var.startswith('_') or var=='var')]

Example:
-------------------
>>a=10
b=20
[var for var in dir() if not (var.startswith('_') or var=='var')]
['a', 'b']
>>>
-------------------

Hope that helps,
Nick Vatamaniuc

May 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.