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?
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?
Yes, but it's not working on my system (Sage 5.12 running on Ubuntu 13.10.) I just get a name error.
Sorry, I have no idea about that.. my sage: 'Sage Version 5.10, Release Date: 2013-06-17' on openSuSE 12.3
This is not a question of versions, `who` and `whos` are specific to ipython (the command line), they do not work in the notebook.
That would be a great feature to have. I can definitely see using it to debug student (and my own) code.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 11 years ago
Seen: 1,058 times
Last updated: Nov 15 '13
Notebook List Object Data Storage/Retrieval? (Start/Restart)
Short Cython Example In A Notebook Cell?
What happens in insecure mode?
Is notebook() mutually-exclusive from "./sage -gdb" mode?
Can I pause a computation rather than aborting it? (Interrupt Command)
What state is preserved when I close a running notebook browser window?