ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 17 Nov 2013 04:14:50 +0100Viewing variables in memoryhttps://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?Fri, 15 Nov 2013 03:06:23 +0100https://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>
https://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?
Fri, 15 Nov 2013 04:51:54 +0100https://ask.sagemath.org/question/10736/viewing-variables-in-memory/?answer=15699#post-id-15699Comment 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>
https://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 14:00:57 +0100https://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16696#post-id-16696Comment 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>
https://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.Sun, 17 Nov 2013 04:14:50 +0100https://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16685#post-id-16685Comment 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>
https://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 13:06:18 +0100https://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16697#post-id-16697Comment 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>
https://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 17:52:40 +0100https://ask.sagemath.org/question/10736/viewing-variables-in-memory/?comment=16686#post-id-16686