Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Sagecell v1 and matlab as default interpreter
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
fero  
View profile  
 More options Aug 8 2012, 12:33 am
From: fero <l...@befair.it>
Date: Tue, 7 Aug 2012 21:33:02 -0700 (PDT)
Local: Wed, Aug 8 2012 12:33 am
Subject: Sagecell v1 and matlab as default interpreter

Dear all,

I open a new post in order to be more specific.

Is there any way to open a Sagecell that use matlab as default interpreter
(or have a "select" box, like I can do in the notebook) ?

Anyone can help me in reaching this result please?
I'd like to abandon the notebook interface, because I found it too much
hacky to integrate in another app.

Keep in mind that I'd like to use Sagecell version 1 because I couldn't
manage to make sagecell v2 working right now.

Thanks
Luca


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Grout  
View profile  
 More options Aug 8 2012, 12:57 am
From: Jason Grout <jason-s...@creativetrax.com>
Date: Tue, 07 Aug 2012 21:57:13 -0700
Local: Wed, Aug 8 2012 12:57 am
Subject: Re: Sagecell v1 and matlab as default interpreter
On 8/7/12 9:33 PM, fero wrote:

> Dear all,

> I open a new post in order to be more specific.

> Is there any way to open a Sagecell that use matlab as default interpreter
> (or have a "select" box, like I can do in the notebook) ?

It isn't built in to the sage cell right now.  I wonder if you
automatically wrap any input in

matlab.eval("""

and

""")

before it is executed, if that might do the trick for your use-case.
Even better would be to use matlab.eval to execute code in the backend
device.

Sorry I can't be of more help; I don't have much time to work on the
sagecell right now.

Thanks,

Jason


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Lazzarotto  
View profile  
 More options Aug 8 2012, 3:54 am
From: Andrea Lazzarotto <andrea.lazzaro...@gmail.com>
Date: Wed, 8 Aug 2012 09:54:31 +0200
Local: Wed, Aug 8 2012 3:54 am
Subject: Re: [sage-devel] Re: Sagecell v1 and matlab as default interpreter

Did you try to put "%matlab" as the first line of your cell?

Andrea Lazzarotto
(inviato da Android)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
fero  
View profile  
 More options Aug 8 2012, 7:25 am
From: fero <l...@befair.it>
Date: Wed, 8 Aug 2012 04:25:58 -0700 (PDT)
Local: Wed, Aug 8 2012 7:25 am
Subject: Re: [sage-devel] Re: Sagecell v1 and matlab as default interpreter

Il giorno mercoledì 8 agosto 2012 09:54:31 UTC+2, Andrea Lazzarotto ha
scritto:

> Did you try to put "%matlab" as the first line of your cell?

Thanks Andrea and Jason,

Jason: to wrap it all in matlab.eval was the basic idea... I'll try it,
can you point me in the right place to do it pls? I can modify the backend,
no problem in make a hack for this time.

Andrea: pleased to read you in this group :). Do you mean like:

%matlab

a = [ 1 ,2  ; 10, 15]
a'

It seems not to work. Tested in http://aleph.sagemath.org/ I have got

  File "<ipython-input-1-4ebd74501542>", line 3    a = [ Integer(1) ,Integer(2)  ; Integer(10), Integer(10)]                                  ^SyntaxError: invalid syntax

  File "<ipython-input-1-4ebd74501542>", line 3    a = [ Integer(1) ,Integer(2)  ; Integer(10), Integer(10)]                                  ^SyntaxError: invalid syntax


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrea Lazzarotto  
View profile  
 More options Aug 8 2012, 7:59 am
From: Andrea Lazzarotto <andrea.lazzaro...@gmail.com>
Date: Wed, 8 Aug 2012 13:59:52 +0200
Local: Wed, Aug 8 2012 7:59 am
Subject: Re: [sage-devel] Re: Sagecell v1 and matlab as default interpreter

2012/8/8 fero <l...@befair.it>

> Andrea: pleased to read you in this group :). Do you mean like:

> %matlab

> a = [ 1 ,2  ; 10, 15]
> a'

> It seems not to work.

Yes that was my suggestion, but yes it seems to work only on the sage
notebook...

--
*Andrea Lazzarotto* - http://andrealazzarotto.com*
*


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »