Re: [sage-support] redirecting input and output to Sage

2016-01-23 Thread Jeroen Demeyer
On 2016-01-22 22:55, Luis Finotti wrote: sage tmp.sage >out This should be the right way. then it takes the supposed amount of time, but the "print i" is not redirected to file out until the loop is completely done or the script is done... You need to flush the output if you want it to

Re: [sage-support] redirecting input and output to Sage

2016-01-23 Thread Luis Finotti
Thanks for the reply! On Saturday, January 23, 2016 at 4:40:00 AM UTC-5, Jeroen Demeyer wrote: > > On 2016-01-22 22:55, Luis Finotti wrote: > > sage tmp.sage >out > This should be the right way. > > > then it takes the supposed amount of time, but the "print i" is not > > redirected to file

Re: [sage-support] redirecting input and output to Sage

2016-01-23 Thread Jori Mäntysalo
Quoting Luis Finotti : Could someone explain how redirection works with Sage (or point me in the right direction)? I suggest to not do anything sage- or python-specific to general problem like this. Instead rely on usual tools, stdbuf in this example: stdbuf

Re: [sage-support] redirecting input and output to Sage

2016-01-23 Thread Jori Mäntysalo
Quoting Luis Finotti tmp.out I was unfamiliar with stdbuf... Then maybe you don't know time, timeout, ulimit etc. either. And in some (rare) cases even "at" would be nice for some users. Actually, maybe I should write a short text

[sage-support] Re: [sage-edu] building Software Carpentry "lesson" for Sagemath

2016-01-23 Thread Raniere Silva
[Sorry for the cross-post] Hi Dima, thanks for the email. > Software Carpentry, see http://software-carpentry.org, is a charity that > does "Teaching basic lab skills for research computing". But goes beyond > that; their workshops can include more nontrivial components, e.g. recently > GAP

Re: [sage-support] Re: Packages needed for self-compiled Sage on Ubuntu

2016-01-23 Thread Jeroen Demeyer
On 2016-01-23 20:15, Jörg-Volker Peetz wrote: Trying to start a self-compiled Sage 7.0 with jupyter on a debian testin/sid system, I see the following warning: sage -n jupyter ... [W 19:50:13.116 NotebookApp] Terminals not available (error was No module named terminado) Terminado is part of

Re: [sage-support] redirecting input and output to Sage

2016-01-23 Thread Luis Finotti
On Saturday, January 23, 2016 at 11:16:55 AM UTC-5, jori.ma...@uta.fi wrote: > > Quoting Luis Finotti : > > > Could someone explain how redirection works with Sage (or point me in > the > > right direction)? > > I suggest to not do anything sage- or python-specific to

[sage-support] Re: Packages needed for self-compiled Sage on Ubuntu

2016-01-23 Thread Jörg-Volker Peetz
Trying to start a self-compiled Sage 7.0 with jupyter on a debian testin/sid system, I see the following warning: sage -n jupyter ... [W 19:50:13.116 NotebookApp] Terminals not available (error was No module named terminado) and there is a process xdg-open in the process list. Is this due to a

Re: [sage-support] Re: Packages needed for self-compiled Sage on Ubuntu

2016-01-23 Thread Volker Braun
You can run "sage -pip install terminado" if you want that (optional) functionality. On Saturday, January 23, 2016 at 2:34:47 PM UTC-5, Jeroen Demeyer wrote: > > On 2016-01-23 20:15, Jörg-Volker Peetz wrote: > > Trying to start a self-compiled Sage 7.0 with jupyter on a debian > testin/sid