[Scilab-users] Accidentally displaying huge matrices

Antoine Monmayrant antoine.monmayrant at laas.fr
Tue May 26 11:46:24 CEST 2015


Le 05/26/2015 11:34 AM, Serge Steer a écrit :
> Le 25/05/2015 15:29, Antoine Monmayrant a écrit :
>>   
>> Le Samedi 23 Mai 2015 00:05 CEST, Samuel Gougeon <sgougeon at free.fr> a écrit:
>>   
>>> Hello Tim,
>>>
>>> Le 21/05/2015 17:48, Tim Wescott a écrit :
>>>> .../...
>>>> First, is there a way to get it to stop?  ctrl-C does not do the job.
>>> In your startup file .scilab or scilab.ini, you may add the instruction
>>> lines(1000)
>>> in order to turn on the pager and make it prompting the user to continue
>>> listing lines after each block of 1000 lines (or whatever you want).
>>> At the prompt, CTRL+C + abort works.
>> OK, but this also interrupts the execution of any script that display more than 1000 lines on the command line!
>> This can be particularly annoying when using scripts that process big data and  output some progression infos on the command line.
> If one as set lines(1000), it is possible to stop the display just
> entering "n" when the system proposes to continue or to stop the display.

Exactly, and all the calculations are stopped, waiting for the user input.
If this occurs in the middle of the night while the user is sleeping, it 
means half a night of calculations wasted.
It occured to me a couple of times and it's a pain.

Antoine

>> It's never nice to find out the next morning that your script stopped at 10% to ask whether it should keep on displaying text.
>> For me, this is more a workaround (with one big caveat) than a real solution.
>> The Julia way of displaying big matrices seems interesting.
>> Would it be hard to implement?
>> (honest question, I have no idea what work it implies)
>> As someone filled a bug/feature request?
>>
>> Cheers,
>>
>> Antoine
>>
>>> Regards
>>> Samuel
>>>
>>> _______________________________________________
>>> users mailing list
>>> users at lists.scilab.org
>>> http://lists.scilab.org/mailman/listinfo/users
>>>
>>   
>>   
>>   
>>   
>>
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>


-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

  Antoine Monmayrant LAAS - CNRS
  7 avenue du Colonel Roche
  BP 54200
  31031 TOULOUSE Cedex 4
  FRANCE

  Tel:+33 5 61 33 64 59
  
  email : antoine.monmayrant at laas.fr
  permanent email : antoine.monmayrant at polytechnique.org

+++++++++++++++++++++++++++++++++++++++++++++++++++++++




More information about the users mailing list