[sage-devel] Re: [sage-cloud] Install SciLab components & create/enable %julia for worksheets?
On Thu, Sep 25, 2014 at 5:28 PM, rickhg12hs wrote: > Thanks, it seems to be functional now. > > As you pointed out, the output can be pretty whacked and "print" doesn't > like it, but the right numbers appear! Yep. The output will get fixed too, but that's for a little later... > > On Thursday, September 25, 2014 8:10:35 PM UTC-4, Stein William wrote: >> >> Hi, >> >> I fixed the scilab problem. Restart your Sage Worksheet Server >> (lower left in project settings) to see the fix (and scilab now >> working). Note that output in worksheets looks a little funny, due to >> control codes. >> >> The scilab problem was a bug in Sage... or rather something in the >> command line options to scilab changed as scilab evolved, and Sage >> didn't keep up. >> >> I posted something to the Sage trac about this: >> >>http://trac.sagemath.org/ticket/17043 >> >> I would really appreciate it if somebody could make this into a proper >> branch, etc. and make sure it gets into sage. I put the 2-line patch >> in the ticket description. Unfortunately, these days that's >> a ton of extra work beyond just posting what needs to be changed, and >> I would rather spend time working on SMC itself. >> >> Similar remarks apply about >> >>http://trac.sagemath.org/ticket/17044 >> >> which fixes (changing just a few characters) a longstanding >> permissions issue that broke many pexpect interfaces for a system-wide >> install, and in particular broke the scilab interface. >> >> -- William >> >> >> >> On Thu, Sep 25, 2014 at 9:55 AM, rickhg12hs wrote: >> > Okay, great. Thanks! I hope you get the grant. >> > >> > I was concerned that bringing up two issues in one post (a bad practice) >> > might mean both weren't addressed. >> > >> > On Thursday, September 25, 2014 12:07:35 PM UTC-4, Stein William wrote: >> >> >> >> On Thu, Sep 25, 2014 at 3:56 AM, rickhg12hs wrote: >> >> > Just tried this again in a new worksheet and it still does not work. >> >> > >> >> > Is this an SMC issue? A documentation issue? >> >> >> >> It's an SMC issue. It's also an I-had-to-write-a-grant-proposal this >> >> week issue.I finished the grant proposal last night, so back to >> >> SMC work. >> >> >> >> > >> >> > >> >> > On Monday, September 22, 2014 7:36:57 PM UTC-4, rickhg12hs wrote: >> >> >>> >> >> >>> >> >> >>> Could you please tell us which commands you tried? >> >> >>> >> >> >> I tried what appears in the help message: >> >> >> >> >> >> scilab? >> >> >>File: >> >> >> >> >> >> >> >> >> /usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/scilab.py >> >> >>Docstring: >> >> >> Interface to the Scilab interpreter. >> >> >> >> >> >> >> >> >>EXAMPLES: >> >> >> sage: a = scilab('[ 1, 1, 2; 3, 5, 8; 13, 21, 33 ]')# >> >> >> optional - scilab sage: b = scilab('[ 1; 3; 13]') >> >> >> # optional - scilab sage: c = a * b >> >> >> # optional - scilab sage: print c >> >> >> # optional - scilab >> >> >> >> >> >> >> >> >> 30. 122. 505. >> >> >> >> >> >> >> >> >> a = scilab('[ 1, 1, 2; 3, 5, 8; 13, 21, 33 ]') >> >> >> >> >> >> Error in lines 1-1 >> >> >> Traceback (most recent call last): >> >> >> File >> >> >> >> >> >> >> >> >> "/projects/b376311d-43f7-4cb0-9b91-47ae46f504f2/.sagemathcloud/sage_server.py", >> >> >> line 828, in execute >> >> >> exec compile(block+'\n', '', 'single') in namespace, locals >> >> >> File "", line 1, in >> >> >> File >> >> >> >> >> >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/interface.py", >> >> >> line 199, in __call__ >> >> >> return cls(self, x, name=name) >> >> >> File >> >> >> >> >> >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/expect.py", >> >> >> line 1312, in __init__ >> >> >> self._name = parent._create(value, name=name) >> >> >> File >> >> >> >> >> >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/interface.py", >> >> >> line 389, in _create >> >> >> self.set(name, value) >> >> >> File >> >> >> >> >> >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/scilab.py", >> >> >> line 309, in set >> >> >> out = self.eval(cmd) >> >> >> File >> >> >> >> >> >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/scilab.py", >> >> >> line 276, in eval >> >> >> s = Expect.eval(self, command, >> >> >> **kwds).replace("\x1b[?1l\x1b>","").strip() >> >> >> File >> >> >> >> >> >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/expect.py", >> >> >> line 1229, in eval >> >> >> for L in code.split('\n') if L != '']) >> >> >> File >> >> >> >> >> >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/expect.py", >> >> >> line 823, in _eval_line >> >> >> self._start() >> >> >> File >> >> >> >> >> >> >> >> >> "/usr/local/sage/sage-6.3.
[sage-devel] Re: [sage-cloud] Install SciLab components & create/enable %julia for worksheets?
Hi, I fixed the scilab problem. Restart your Sage Worksheet Server (lower left in project settings) to see the fix (and scilab now working). Note that output in worksheets looks a little funny, due to control codes. The scilab problem was a bug in Sage... or rather something in the command line options to scilab changed as scilab evolved, and Sage didn't keep up. I posted something to the Sage trac about this: http://trac.sagemath.org/ticket/17043 I would really appreciate it if somebody could make this into a proper branch, etc. and make sure it gets into sage. I put the 2-line patch in the ticket description. Unfortunately, these days that's a ton of extra work beyond just posting what needs to be changed, and I would rather spend time working on SMC itself. Similar remarks apply about http://trac.sagemath.org/ticket/17044 which fixes (changing just a few characters) a longstanding permissions issue that broke many pexpect interfaces for a system-wide install, and in particular broke the scilab interface. -- William On Thu, Sep 25, 2014 at 9:55 AM, rickhg12hs wrote: > Okay, great. Thanks! I hope you get the grant. > > I was concerned that bringing up two issues in one post (a bad practice) > might mean both weren't addressed. > > On Thursday, September 25, 2014 12:07:35 PM UTC-4, Stein William wrote: >> >> On Thu, Sep 25, 2014 at 3:56 AM, rickhg12hs wrote: >> > Just tried this again in a new worksheet and it still does not work. >> > >> > Is this an SMC issue? A documentation issue? >> >> It's an SMC issue. It's also an I-had-to-write-a-grant-proposal this >> week issue.I finished the grant proposal last night, so back to >> SMC work. >> >> > >> > >> > On Monday, September 22, 2014 7:36:57 PM UTC-4, rickhg12hs wrote: >> >>> >> >>> >> >>> Could you please tell us which commands you tried? >> >>> >> >> I tried what appears in the help message: >> >> >> >> scilab? >> >>File: >> >> >> >> /usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/scilab.py >> >>Docstring: >> >> Interface to the Scilab interpreter. >> >> >> >> >> >>EXAMPLES: >> >> sage: a = scilab('[ 1, 1, 2; 3, 5, 8; 13, 21, 33 ]')# >> >> optional - scilab sage: b = scilab('[ 1; 3; 13]') >> >> # optional - scilab sage: c = a * b >> >> # optional - scilab sage: print c >> >> # optional - scilab >> >> >> >> >> >> 30. 122. 505. >> >> >> >> >> >> a = scilab('[ 1, 1, 2; 3, 5, 8; 13, 21, 33 ]') >> >> >> >> Error in lines 1-1 >> >> Traceback (most recent call last): >> >> File >> >> >> >> "/projects/b376311d-43f7-4cb0-9b91-47ae46f504f2/.sagemathcloud/sage_server.py", >> >> line 828, in execute >> >> exec compile(block+'\n', '', 'single') in namespace, locals >> >> File "", line 1, in >> >> File >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/interface.py", >> >> line 199, in __call__ >> >> return cls(self, x, name=name) >> >> File >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/expect.py", >> >> line 1312, in __init__ >> >> self._name = parent._create(value, name=name) >> >> File >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/interface.py", >> >> line 389, in _create >> >> self.set(name, value) >> >> File >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/scilab.py", >> >> line 309, in set >> >> out = self.eval(cmd) >> >> File >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/scilab.py", >> >> line 276, in eval >> >> s = Expect.eval(self, command, >> >> **kwds).replace("\x1b[?1l\x1b>","").strip() >> >> File >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/expect.py", >> >> line 1229, in eval >> >> for L in code.split('\n') if L != '']) >> >> File >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/expect.py", >> >> line 823, in _eval_line >> >> self._start() >> >> File >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/scilab.py", >> >> line 263, in _start >> >> Expect._start(self) >> >> File >> >> >> >> "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/expect.py", >> >> line 450, in _start >> >> raise RuntimeError("Unable to start %s"%self.name()) >> >> >> >> TypeError: Unable to start scilab >> >> >> >> %scilab >> >> >> >> b = [ 1, 1, 2; 3, 5, 8; 13, 21, 33 ] >> >> >> >> Error in lines 1-1 >> >> Traceback (most recent call last): >> >> File >> >> >> >> "/projects/b376311d-43f7-4cb0-9b91-47ae46f504f2/.sagemathcloud/sage_server.py", >> >> line 828, in execute >> >> exec compile(block+'\n', '', 'single') in namespace, locals >> >> File "", line 1, in >> >> File >> >> >> >> "/projects/b376311d-43f7-4cb0-9b91-47ae46f504f2/.sagemathc