My bad, I misread what John meant. 
I thought he was asking whether what should be preserved under reset was 
defined by IPython, or sage. He was asking about the commands themselves 
though.

On Wednesday, March 29, 2017 at 11:01:50 AM UTC-7, Aidan wrote:
>
>
> It looks like they are a mix of IPython and Sage.
>
> From sage.misc.reset:
>
> # Exclude these from the reset command.
> # DATA, base64 -- needed by the notebook
> EXCLUDE = set(['sage_mode', '__DIR__', 'DIR', 'DATA', 'base64'])
>
>
> I may be completely wrong, but that's my guess.
>
>
>
> On Wednesday, March 29, 2017 at 10:48:57 AM UTC-7, John H Palmieri wrote:
>>
>> It looks like a bug to me.
>>
>>     ┌────────────────────────────────────────────────────────────────────┐
>>     │ SageMath version 7.6, Release Date: 2017-03-25                     │
>>     │ Type "notebook()" for the browser-based notebook interface.        │
>>       Type "help()" for help.                                            │
>>     └────────────────────────────────────────────────────────────────────┘
>>     sage: show_identifiers()
>>     ['Out', 'get_ipython', 'In', 'exit', 'quit']
>>     sage: reset()
>>     sage: show_identifiers()
>>     []
>>
>> I think that exit, quit, possibly get_ipython, Out, and In, should be 
>> preserved under 'reset'. Are all of these defined by IPython, or are some 
>> Sage-specific?
>>
>> -- 
>> John
>>
>>
>> On Wednesday, March 29, 2017 at 8:49:38 AM UTC-7, jplab wrote:
>>>
>>> Hi,
>>>
>>> Is the following normal:
>>>
>>> sage: a=2; a
>>> 2
>>> sage: reset()
>>> sage: a
>>> Traceback (most recent call last):
>>> ...
>>> NameError: name 'a' is not defined
>>> sage: quit
>>> Traceback (most recent call last):
>>> ...
>>> NameError: name 'quit' is not defined
>>>
>>>
>>> See the question on AskSage:
>>>
>>>
>>> https://ask.sagemath.org/question/9643/clearing-all-user-defined-variables-from-current-session/
>>>
>>> It not really practical then...
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to