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.Mon, 27 Apr 2020 20:49:27 +0200There is a way to forget the history of the prompt?https://ask.sagemath.org/question/51079/there-is-a-way-to-forget-the-history-of-the-prompt/ I'm using sagemath 9.0 in kubuntu 19.10, I can start it in the console just calling `sage`, then it starts the sage prompt. However I noticed that with the arrows up and down I can see the commands that I had written in the prompt days ago. My question is: there is a way to clear this history?
Googling I find some related things but nothing works, I tried the commands `!clear` (this just clear everything that is shown in the console, but not the history of sage), also `%clear in` and `%clear out`, that are IPython commands to delete some history, but they didnt work with the described kind of history.MasacrosoMon, 27 Apr 2020 20:49:27 +0200https://ask.sagemath.org/question/51079/It is possible to use a previous output?https://ask.sagemath.org/question/50961/it-is-possible-to-use-a-previous-output/I dont find anything in the documentation about the possibility to re-use previous outputs, in jupyter notebook or in the prompt, so I will ask here: there is a command to reuse a previous output instead to avoid recompute it again?
By example, say that I compute a value of a function and I want to re-use again this result, there is a way to call for the oputput instead of re-computing it value again or pre-assigning the value to a variable? Of course a solution could be just copy-and-paste the output, by I want to know if there is a command to avoid also this manipulation.MasacrosoThu, 23 Apr 2020 16:19:00 +0200https://ask.sagemath.org/question/50961/How can I change the sage console prompt?https://ask.sagemath.org/question/42782/how-can-i-change-the-sage-console-prompt/How can I change the sage console prompt from 'sage: ' to '>>> ' ?
I'm running Sage 8.1 (binary install) in Windows 7.
I assume I need to edit a configuration file, or perhaps it's controlled by an environmental variable.
If it's controlled by an environmental variable, which one, and what setting?
If it needs a configuration file edit, which file, where is the file located, and what edit is needed?
Thanks in advance.sageuser1732Sat, 30 Jun 2018 09:17:26 +0200https://ask.sagemath.org/question/42782/what is "....:"?https://ask.sagemath.org/question/25800/what-is/I have just installed Sage and tested it with some equations. But I found a problem that the left side of the command line changes from "sage: " to "....: ". It was the case when I typed the following code.
f(x)=2.4/x^2*(1-e^(-x/50))
Could anyone let me know what "....:" means? And how to recover the normal command line in order to use Sage again? With "....: " it seems that Sage never work.
Thank you.
NownuriWed, 11 Feb 2015 07:03:57 +0100https://ask.sagemath.org/question/25800/How to find if computation is in a notebook or sage prompt ?https://ask.sagemath.org/question/7951/how-to-find-if-computation-is-in-a-notebook-or-sage-prompt/* Example of what is needed in sage prompt:
sage: is_sageprompt()
True
* Example of what is needed in a notebook:
In an input cell: is_sagenotebook()
The output cell: True
PedroThu, 17 Feb 2011 07:37:39 +0100https://ask.sagemath.org/question/7951/