Ask Your Question

Louisa Grey's profile - activity

2014-07-21 13:36:03 +0200 received badge  Famous Question (source)
2013-11-28 08:37:22 +0200 received badge  Notable Question (source)
2013-09-02 04:00:00 +0200 received badge  Popular Question (source)
2013-07-20 11:53:52 +0200 received badge  Supporter (source)
2012-12-21 08:42:25 +0200 marked best answer Clearing all user-defined variables from current session

You can use reset():

sage: a = 3
sage: a
sage: reset()
sage: a
NameError                                 Traceback (most recent call last)
NameError: name 'a' is not defined

You can also give variable names, like reset("a b c") and so on. Type reset? at the console for the details.

2012-12-20 17:10:01 +0200 asked a question Clearing all user-defined variables from current session

I'm using Sage from the interactive shell. How can I clear/remove all the variables I have defined so far in my current session?

2011-12-15 05:21:48 +0200 received badge  Good Question (source)
2011-11-28 16:07:15 +0200 received badge  Famous Question (source)
2011-10-17 18:08:33 +0200 received badge  Nice Question (source)
2011-10-15 09:08:03 +0200 received badge  Notable Question (source)
2011-09-27 14:37:29 +0200 received badge  Popular Question (source)
2011-09-22 01:10:49 +0200 received badge  Student (source)
2011-09-13 10:41:57 +0200 received badge  Scholar (source)
2011-09-13 10:41:57 +0200 marked best answer app installation problem on mac os x lion

There are known problems with Sage on Lion, but the Sage binary compiled for Snow Leopard (Mac OS 10.6) has been reported to work on Lion.

However, there may be an incompatibility with the .app wrapper instead of the underlying Sage program . . . can you let us know the result of opening Sage on the command line? Try opening the Terminal (Applications -> Utilities -> Terminal) and pasting in the following:


Does that give you a "sage:" prompt, or result in more errors?

Updates: Ok; @jholtzman, it looks like you are having trouble with iPython; I'm not sure why. Which version of Sage did you install?

@Louisa Grey, it looks like you're getting the expected output; does the notebook start when you type "notebook()" at the "sage:" prompt? If so, I would say that Sage is working, but the .app wrapper is not.

2011-09-12 09:44:34 +0200 commented answer app installation problem on mac os x lion

@niles, the notebook did start when I typed notebook() at the sage: prompt. Now I just have to learn how to use it :)

2011-09-11 18:49:10 +0200 commented answer app installation problem on mac os x lion

Thank you so much for your help. On my machine I did get a "sage:" prompt (after some other text, pasted below) & was then able to start the notebook, so it looks like I'm good to go. If there's anything else you would like me to try/ any info you want me to send, I'd be glad to help- LSLaptop:~ lrs$ /Applications/ ---------------------------------------------------------------------- | Sage Version 4.7.1, Release Date: 2011-08-11 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- Setting permissions of DOT_SAGE directory so only you can read and write it. sage:

2011-09-08 17:35:30 +0200 asked a question app installation problem on mac os x lion

I downloaded the 64-bit app version of Sage today, then dragged the app to my Applications folder. When I tried to open it, I got the following message in Terminal. I am new to the Mac OS and would appreciate any suggestions/directions!

Last login: Thu Sep  8 15:07:04 on ttys001
LSLaptop:~ lrs$ '/Applications/'/sage --notebook
Traceback (most recent call last):
  File "/Applications/", line 3, in <module>
    import os, sys, socket
  File "/Applications/", line 46, in <module>
    import _socket
ImportError: No module named _socket