ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 16 Nov 2013 21:14:50 -0600Viewing variables in memoryhttp://ask.sagemath.org/question/10736/viewing-variables-in-memory/Does Sage provide any way to see which variables and user-defined functions are currently in memory, like the ls() command in R?Thu, 14 Nov 2013 20:06:23 -0600http://ask.sagemath.org/question/10736/viewing-variables-in-memory/Answer by gundamlh for <p>Does Sage provide any way to see which variables and user-defined functions are currently in memory, like the ls() command in R?</p>
http://ask.sagemath.org/question/10736/viewing-variables-in-memory/?answer=15699#post-id-15699 sage: a,b,c,d = var('a,b,c,d')
sage: who
a b c d
sage: whos
Variable Type Data/Info
----------------------------------
a Expression a
b Expression b
c Expression c
d Expression d
Is it what you want?
Thu, 14 Nov 2013 21:51:54 -0600http://ask.sagemath.org/question/10736/viewing-variables-in-memory/?answer=15699#post-id-15699Comment by tmonteil for <pre><code>sage: a,b,c,d = var('a,b,c,d')
sage: who
a b c d
sage: whos
Variable Type Data/Info
----------------------------------
a Expression a
b Expression b
c Expression c
d Expression d
</code></pre>
<p>Is it what you want?</p>
http://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16686#post-id-16686This is not a question of versions, `who` and `whos` are specific to ipython (the command line), they do not work in the notebook.Sat, 16 Nov 2013 10:52:40 -0600http://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16686#post-id-16686Comment by jaia for <pre><code>sage: a,b,c,d = var('a,b,c,d')
sage: who
a b c d
sage: whos
Variable Type Data/Info
----------------------------------
a Expression a
b Expression b
c Expression c
d Expression d
</code></pre>
<p>Is it what you want?</p>
http://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16697#post-id-16697Yes, but it's not working on my system (Sage 5.12 running on Ubuntu 13.10.) I just get a name error.Fri, 15 Nov 2013 06:06:18 -0600http://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16697#post-id-16697Comment by jaia for <pre><code>sage: a,b,c,d = var('a,b,c,d')
sage: who
a b c d
sage: whos
Variable Type Data/Info
----------------------------------
a Expression a
b Expression b
c Expression c
d Expression d
</code></pre>
<p>Is it what you want?</p>
http://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16685#post-id-16685That would be a great feature to have. I can definitely see using it to debug student (and my own) code.Sat, 16 Nov 2013 21:14:50 -0600http://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16685#post-id-16685Comment by gundamlh for <pre><code>sage: a,b,c,d = var('a,b,c,d')
sage: who
a b c d
sage: whos
Variable Type Data/Info
----------------------------------
a Expression a
b Expression b
c Expression c
d Expression d
</code></pre>
<p>Is it what you want?</p>
http://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16696#post-id-16696Sorry, I have no idea about that.. my sage: 'Sage Version 5.10, Release Date: 2013-06-17' on openSuSE 12.3
Fri, 15 Nov 2013 07:00:57 -0600http://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16696#post-id-16696