Ask Your Question

sageuser1732's profile - activity

2020-02-18 05:17:43 +0100 received badge  Famous Question (source)
2018-11-23 23:58:39 +0100 received badge  Notable Question (source)
2018-11-23 23:58:39 +0100 received badge  Popular Question (source)
2018-07-01 03:32:12 +0100 received badge  Good Question (source)
2018-06-30 18:51:59 +0100 commented answer load('foo.sage') - Is it possible to display inputs and ouputs to the console?

I tried it, but it doesn't do what I was hoping for. Here are the issues . . .

(1) %load requires a string constant as a filename, but my actual filename is stored in a variable.

(2) The inputs are shown as a batch, but not executed until I interactively force the execution. I was hoping to for there to be a way for the load of the sage file to mimic an interactive session, with inputs followed by outputs, one command at a time.

Perhaps it's not possible?

2018-06-30 18:28:33 +0100 received badge  Nice Question (source)
2018-06-30 18:20:41 +0100 received badge  Supporter (source)
2018-06-30 18:20:37 +0100 received badge  Scholar (source)
2018-06-30 18:20:30 +0100 commented answer How can I change the sage console prompt?

Works perfectly! (I used the init.sage method.) Thank you very much!

2018-06-30 13:13:52 +0100 asked a question load('foo.sage') - Is it possible to display inputs and ouputs to the console?

The load command appears to operate "silently", except for commands that explicitly output to the console (such as print commands).

Is there a way to have inputs and outputs of the commands in the file being loaded to be displayed to the console as if they were entered interactively?

I'm running a console version of Sage 8.1 (binary install) in Windows 7.

2018-06-30 11:41:39 +0100 received badge  Student (source)
2018-06-30 09:32:50 +0100 received badge  Editor (source)
2018-06-30 09:28:56 +0100 asked a question 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.