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 with Sage 5.2 and matlab interpreter as default
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 3 2012, 3:50 am
From: fero <l...@befair.it>
Date: Fri, 3 Aug 2012 00:50:16 -0700 (PDT)
Local: Fri, Aug 3 2012 3:50 am
Subject: Sagecell with Sage 5.2 and matlab interpreter as default

I am still fixing something to reach the end of the installation procedure
described at
https://github.com/sagemath/sagecell

I'd like to spend some time in making sagecell working, and even of course
contribute to this wonderful project if I am able to.

But I have to be sure that I can reach the following goals:

1. make sagecell working in my development environment ArchLinux
2. playing with sagecell with "sage" and "matlab" interpreters (like I did
with previous sage notebook)
3. saving a variable ("out") in a database (it would be great to save it as
a ".mat" and as "sage" variable)
4. deploy sage+matlab+sagecell on Debian squeeze

My requirement is to support matlab by default (unfortunately...) so if you
think it is feasible
I am going to proceed, otherwise I have to find an hack to let
the actual sage notebook working as a backend for my application
instead of sagecell.

At this time every weird hack you can think about to reach the goals are
going to be accepted by me :)

Thank you in advance
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.
fero  
View profile  
 More options Aug 3 2012, 5:15 am
From: fero <l...@befair.it>
Date: Fri, 3 Aug 2012 02:15:41 -0700 (PDT)
Local: Fri, Aug 3 2012 5:15 am
Subject: Re: Sagecell with Sage 5.2 and matlab interpreter as default

The problem that I have now in sagecell is that:

* matlab("3**2") --> is not able to spawn the matlab interpreter
* and I don't know how to set matlab as default interpreter for sagecell

wonderful work!

P.S: I am enjoying myself with this evolution of the sample code...

html("<h3>an interactive calculation and plot</h3>")
@interact
def f1(year=slider(1,200,1), c=color_selector((150, 0, 150)),
   a=input_box(0, label="start at", type=int),
   b=input_box(100, label="end at", type=int),
   f=input_box(sin(x)/(2+cos(pi*x/10)), "function"),
):
  k1 = year
  k2 = factor(year)
  print "%s = %s" % (k1, k2)
  var('x')
  plot(f, (a, b), color = c).show()

Il giorno venerd́ 3 agosto 2012 09:50:16 UTC+2, fero ha scritto:


 
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 3 2012, 10:52 am
From: fero <l...@befair.it>
Date: Fri, 3 Aug 2012 07:52:53 -0700 (PDT)
Local: Fri, Aug 3 2012 10:52 am
Subject: Re: Sagecell with Sage 5.2 and matlab interpreter as default

Il giorno venerd́ 3 agosto 2012 11:15:41 UTC+2, fero ha scritto:

> The problem that I have now in sagecell is that:

> * matlab("3**2") --> is not able to spawn the matlab interpreter

this one has been "solved" ! I found that matlab was not spawn because
/usr/local/bin
was not in the PATH when I execute "sage-native-execute"
that is called also by sage_device

pexepect_env variable
local/lib/python2.7/site-packages/sage/interfaces/expect.py
line 464

at the moment I linked the executable in /usr/bin I have no more time to
investigate on this.

Pay attention that if I do

import os; os.getenv("PATH") in sagecell, I see /usr/local/bin directory
among results.


 
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 3 2012, 11:45 am
From: Jason Grout <jason-s...@creativetrax.com>
Date: Fri, 03 Aug 2012 08:45:04 -0700
Local: Fri, Aug 3 2012 11:45 am
Subject: Re: Sagecell with Sage 5.2 and matlab interpreter as default
On 8/3/12 12:50 AM, fero wrote:

Just FYI, the code (and docs) in the root sagecell directory is version
1 of the code, and is not under development anymore.  We are instead
doing active development in the codebase in contrib/ipython-testing/.
Like I mentioned before, the instructions are at

https://github.com/sagemath/sagecell/issues/344

Apparently they didn't work for 5.2, so thanks for looking at updating
them.  I just downloaded and compiled 5.2 last night so that I can look
at your updated patch sometime tonight or tomorrow, hopefully.

To start, just do "sage web_server.py" in the contrib/ipython-testing
directory.

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.
fero  
View profile  
 More options Aug 5 2012, 12:24 pm
From: fero <l...@befair.it>
Date: Sun, 5 Aug 2012 09:24:21 -0700 (PDT)
Local: Sun, Aug 5 2012 12:24 pm
Subject: Re: Sagecell with Sage 5.2 and matlab interpreter as default

My installation of sagecell version 1 works quite well for my needs now.
Only thing that I lack is to let the user switch from sage/matlab
interpreter.

I will stay on sagecell version 1 now, or taking again the sage notebook,
If I don't succeed in using sagecell interpreter switching.

Il giorno venerd́ 3 agosto 2012 17:45:04 UTC+2, jason ha scritto:


 
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 »