[sage-support] Tracking memory usage and time

2019-08-24 Thread J
Hi,

to do a overview of a rather different set of `SAGE` methods, I would
like to not only track the time used to run a command, but also the
memory usage of the commands.

Is there a recommended way to do this?

Context:
I want to run the `nearestneighbordecoder`, the `syndromedecoder` and
the `informationsetdecoder` for errors from 1 to `X` (where X is
probably 

Re: [sage-support] Re: Tracking memory usage and time

2019-09-02 Thread J
On 19-09-02 10:35:18, Simon King wrote:
> Hi J,
>
> On 2019-08-24, J  wrote:
> > to do a overview of a rather different set of `SAGE` methods, I would
> > like to not only track the time used to run a command, but also the
> > memory usage of the commands.
> >
> > Is there a recommended way to do this?
>
> I am a bit surprised that nobody answered this question yet. Sorry.
>
> There is the get_memory_usage command, that might provide what you asked
> for. But I am not sure if I understand correctly what you want to
> achieve: Do you have a lengthy program and you want to understand how
> much resources each individual command in your program takes? In that
> case, it might make sense to use a profiler (e.g., %prun or %crun). Or do
> you only want to know how much time and memore the program takes in total?
> In that case, %time and get_memory_usage would probably give you the
> answer.
>

Thanks get_memory_usage sounds good; I want to run several decoders from
the coding theory module to see better show there ups and downs;

it is expected for the syndrome decoder to be quicker but more memory
hungry while the nearest neighbor is more time expensive.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/20190902112113.qzcbu4shd2eirs37%40deathbolt.927589452.space.


Re: [sage-support] Re: Tracking memory usage and time

2019-09-03 Thread J
On 19-09-03 09:43:23, Jori Mäntysalo (TAU) wrote:
> On Mon, 2 Sep 2019, J wrote:
>
> > Thanks get_memory_usage sounds good; I want to run several decoders from
> > the coding theory module to see better show there ups and downs;
>
> There is also at least %mprun magic. Googling that will give you some
> examples.
>
Thank you, I will research this too

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/20190903111334.xwsd2v63vlyl5jwc%40deathbolt.927589452.space.


Re: [sage-support] Re: Tracking memory usage and time

2019-09-03 Thread J
On 19-09-03 11:31:32, Nils Bruin wrote:
>
>
> On Tuesday, September 3, 2019 at 2:43:27 AM UTC-7, Jori Mäntysalo (TAU)
> wrote:
> >
> > There is also at least %mprun magic. Googling that will give you some
> > examples.
> >
> > Looking at the memory footprint of the entire process (as a function of
> time) gives some indication of memory use of a certain implementation of an
> algorithm, but there are many factors that influence it. CPython probably
> has a slight preference for reusing (freed/reclaimed) memory over
> requesting new memory from the OS, but there is not an actual guarantee.
> And CPython might be seriously lax in reclaiming memory, or it might be
> prevented by a memory leak in sage that is not due to the implementation of
> the algorithm. So you can take results like that only as an indication and
> not as authoritative. Determining memory usage of an algorithm in the
> mathematical sense probably needs code analysis.
>
> (that said, memory claimed from the OS definitely gives an UPPER BOUND on
> the memory usage of a certain algorithm; for obvious reasons)
>

Well, one of the algorithms stores

sum {l^e} {\binom{n}{e}}

with l being the number of elements of the field
which gets big quite fast

> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/66674d87-2f64-4da1-89f9-009b2898d3a4%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/20190903195428.zge4htnopcsadfko%40deathbolt.927589452.space.


Re: [sage-support] Re: Tracking memory usage and time

2019-09-18 Thread J
On 19-09-03 09:43:23, Jori Mäntysalo (TAU) wrote:
> On Mon, 2 Sep 2019, J wrote:
>
> > Thanks get_memory_usage sounds good; I want to run several decoders from
> > the coding theory module to see better show there ups and downs;
>
> There is also at least %mprun magic. Googling that will give you some
> examples.
>

TBH I can't get it to work
and
"sagemath %mprun"
gives to pages of search results including this thread ^^

> --
> Jori Mäntysalo
>
> Tampereen yliopisto - Ihminen ratkaisee
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/alpine.DEB.2.21..1909031237550.45316%40shell.sis.uta.fi.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/20190917205815.p2z3d7lxbkbqtawx%40deathbolt.927589452.space.


Re: [sage-support] Re: Tracking memory usage and time

2019-09-18 Thread J
The most problematic part for me is:

I would like to script it

On 19-09-18 10:20:12, Jori Mäntysalo (TAU) wrote:
> On Tue, 17 Sep 2019, J wrote:
>
> > TBH I can't get it to work
> > and
> > "sagemath %mprun"
> > gives to pages of search results including this thread ^^
>
> Duh. Somebody should add a page on this to the doc.
>
> First, said
>
> ./sage -pip install memory_profiler
>
> and then normally
>
> ./sage --notebook=jupyter
>
> In a notebook I did
>
> def power2(x):
>  L = range(x)
>  s = 0
>  for i in L:
>  s += 2*i+1
>  return s
>
> and then loaded the extension
>
> %load_ext memory_profiler
>
> and last ran
>
> %memit
> power2(5)
>
> It works. However,
>
> %mprun -f power2
> power2(5)
>
> does not. Is there an easy way to profile memory usage on line-by-line
> basis?
>
> --
> Jori Mäntysalo
>
> Tampereen yliopisto - Ihminen ratkaisee
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/alpine.DEB.2.21..1909181316180.53292%40shell.sis.uta.fi.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/20190918140345.5bpq6xehlrncq4hk%40deathbolt.927589452.space.


Re: [sage-support] Re: Tracking memory usage and time

2019-09-19 Thread J
More or less this yes;

But it seem I will stick to putting it in a sage ipyhton session wrapped
in a screen session

In detail I found the syndrome_decoders crashes while initiating with
big codes as the system runs out of memory

and that prompted me to plot RAM vs max_error for the syndrome decoder

On 19-09-19 08:22:29, Jori Mäntysalo (TAU) wrote:
> On Wed, 18 Sep 2019, J wrote:
>
> > The most problematic part for me is:
> >
> > I would like to script it
>
> I'm not sure what you mean. You have some list L of objects, and want to
> know how much memory it takes to run f(x) for each x in L?
>
> --
> Jori Mäntysalo
>
> Tampereen yliopisto - Ihminen ratkaisee
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/alpine.DEB.2.21..1909191120130.110721%40shell.sis.uta.fi.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/20190919101531.bwbjb2ghhqdowu6d%40deathbolt.927589452.space.


[sage-support] Issue with Solve

2015-02-27 Thread j wade
I am having an odd issue with solve in Sage.  I am using Sage 6.3 in Ubuntu 
14.04.

Entering the following commands:

forget()
var('m k c x t')
m=3
assume(4*k*m-c^2==0) 
x=function('x',t)
de = m*diff(x,t,2)+c*diff(x,t)+k*x==0
x=desolve(de,x,ivar=t)
x=x.subs(_K1=0)
x=x.subs(_K2=15)
solve(x(t=(6/c))==1.5,c)

returns [ ].  Now the last equation clearly has an easy solution; the 
equation is 

90*e^(-1)/c == 1.50

If I just enter

solve(90*e^(-1)/c == 1.50, c)

I again get [].

But, if I enter

b=var('b')
solve(90*e^(-1)/b == 1.50, b)

I get the solution:

[b == 60*e^(-1)]

Any idea what is going on here?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: OS X 10.12

2017-03-31 Thread J. Friedman
I downloaded the dmg file, moved the sagemath directory to Applications, then 
double clicked on sage. 
I also tried it through home-brew and also got an error (below). Has anyone 
done a fresh install with an apple running the latest version of OS X?

The easiest thing for me to do was download linux in a virtual box and run it 
sage off Linux, however I can’t connect to the sage server (even though I can 
successfully SSH to the virtual machine). Any suggestions. 


RecursionError: maximum recursion depth exceeded during compilation
┌┐
│ SageMath version 7.5.1, Release Date: 2017-01-15   │
│ Type "notebook()" for the browser-based notebook interface.│
│ Type "help()" for help.│
└┘

ERROR:  The Sage installation tree has moved

from 
/Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma
  to /Applications/SageMath-7.5.1.app/Contents/Resources/sage

This is not supported, and Sage will not work. To install Sage from a
binary package:

1. Open the .tar.bz2 archive (or .dmg on OSX)

2. Move the SageMath folder/app to where you want it to be. You can
   also rename the directory now.

3. Start sage for the first time. This will then automatically patch
   paths in binaries.

After starting Sage for the first time you cannot change the
installation any more. To install Sage elsewhere, start over from the
binary package. Or recompile Sage from scratch in the new location
("make distclean && make")

snapdragon:~ joshua$ 





> On Mar 31, 2017, at 5:49 PM, John H Palmieri  wrote:
> 
>  This looks strange. It ought to look like this the first time you run Sage, 
> and this is what happens when I download and install from that file:
> 
> Rewriting paths for your new installation directory
> ===
> 
> This might take a few minutes but only has to be done once.
> 
> (and then hundreds of lines about patching files)
> 
> 
> If you didn't see that, something is going wrong. Can you describe exactly 
> what you did? Maybe you should delete the old dmg file and redownload it, in 
> case it was corrupted somehow.
> 
> -- 
> John
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "sage-support" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/sage-support/MRhTG336Fr0/unsubscribe 
> .
> To unsubscribe from this group and all its topics, send an email to 
> sage-support+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to sage-support@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/sage-support 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: OS X 10.12

2017-04-02 Thread J. Friedman
I moved python2 ahead in my $PATH, I found he relocate script, it seemed to 
run, but then errors running sage:

Traceback (most recent call last):
  File "/Users/joshua/sage/SageMath/src/bin/sage-ipython", line 7, in 
from sage.repl.interpreter import SageTerminalApp
  File 
"/Users/joshua/sage/SageMath/local/lib/python2.7/site-packages/sage/repl/interpreter.py",
 line 107, in 
from sage.repl.preparse import preparse
  File 
"/Users/joshua/sage/SageMath/local/lib/python2.7/site-packages/sage/repl/preparse.py",
 line 223, in 
import six
  File "/Users/joshua/sage/SageMath/local/lib/python2.7/site-packages/six.py", 
line 27, in 
import operator
ImportError: 
dlopen(/Users/joshua/sage/SageMath/local/lib/python2.7/lib-dynload/operator.so, 
2): Symbol not found: __PyUnicodeUCS4_AsDefaultEncodedString
  Referenced from: 
/Users/joshua/sage/SageMath/local/lib/python2.7/lib-dynload/operator.so
  Expected in: flat namespace
 in /Users/joshua/sage/SageMath/local/lib/python2.7/lib-dynload/operator.so
snapdragon:SageMath joshua$ 





> On Apr 2, 2017, at 8:06 PM, Ruben Zilibowitz  
> wrote:
> 
> Same with me on OS X 10.12.4. And I'm getting the same error as you with 
> installation.
> 
> On Monday, April 3, 2017 at 3:41:52 AM UTC+10, crown...@gmail.com wrote:
> I use Anaconda python 3. Does your Move script use python 2?  
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "sage-support" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/sage-support/MRhTG336Fr0/unsubscribe 
> .
> To unsubscribe from this group and all its topics, send an email to 
> sage-support+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to sage-support@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/sage-support 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] OS X 10.12

2017-04-03 Thread J. Friedman
I got it to work.
So I think the problem is python 3, with Anaconda. I logged in under another 
user name that uses Apple’s Python 2. And installed Sage. Then, I can run it 
from my python 3 account. Perhaps your scripts should search out Python 2 when 
there are multiple versions installed.




> On Apr 2, 2017, at 8:33 PM, J. Friedman  wrote:
> 
> I moved python2 ahead in my $PATH, I found he relocate script, it seemed to 
> run, but then errors running sage:
> 
> Traceback (most recent call last):
>   File "/Users/joshua/sage/SageMath/src/bin/sage-ipython", line 7, in 
> from sage.repl.interpreter import SageTerminalApp
>   File 
> "/Users/joshua/sage/SageMath/local/lib/python2.7/site-packages/sage/repl/interpreter.py",
>  line 107, in 
> from sage.repl.preparse import preparse
>   File 
> "/Users/joshua/sage/SageMath/local/lib/python2.7/site-packages/sage/repl/preparse.py",
>  line 223, in 
> import six
>   File 
> "/Users/joshua/sage/SageMath/local/lib/python2.7/site-packages/six.py", line 
> 27, in 
> import operator
> ImportError: 
> dlopen(/Users/joshua/sage/SageMath/local/lib/python2.7/lib-dynload/operator.so,
>  2): Symbol not found: __PyUnicodeUCS4_AsDefaultEncodedString
>   Referenced from: 
> /Users/joshua/sage/SageMath/local/lib/python2.7/lib-dynload/operator.so
>   Expected in: flat namespace
>  in /Users/joshua/sage/SageMath/local/lib/python2.7/lib-dynload/operator.so
> snapdragon:SageMath joshua$ 
> 
> 
> 
> 
> 
>> On Apr 2, 2017, at 8:06 PM, Ruben Zilibowitz > <mailto:ruben.zilibow...@gmail.com>> wrote:
>> 
>> Same with me on OS X 10.12.4. And I'm getting the same error as you with 
>> installation.
>> 
>> On Monday, April 3, 2017 at 3:41:52 AM UTC+10, crown...@gmail.com 
>> <http://gmail.com/> wrote:
>> I use Anaconda python 3. Does your Move script use python 2?  
>> 
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "sage-support" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/sage-support/MRhTG336Fr0/unsubscribe 
>> <https://groups.google.com/d/topic/sage-support/MRhTG336Fr0/unsubscribe>.
>> To unsubscribe from this group and all its topics, send an email to 
>> sage-support+unsubscr...@googlegroups.com 
>> <mailto:sage-support+unsubscr...@googlegroups.com>.
>> To post to this group, send email to sage-support@googlegroups.com 
>> <mailto:sage-support@googlegroups.com>.
>> Visit this group at https://groups.google.com/group/sage-support 
>> <https://groups.google.com/group/sage-support>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: new user: latex fails

2008-11-03 Thread Matthew J

If anyone else comes across this problem and installing gs and
imagemagick does not solve it, I also had to install tetex-extra.


I realized when I was getting the error: fullpage.sty could not be
found.

Thanks,
-Matthew J

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Simple Combinatorics and Probability

2008-12-09 Thread Matthew J

Sage is great software that I rave about in pretty much all of my
classes except for probability theory. I’d like to get some info on a
few topics to clear some things up so that I can use these for classes
and to post to an examples worksheet. Thanks in advance to anyone that
replies.

I am wondering how to do a few things.
Is there a better (built-in) way to do simple combinations/
permutations than writing a function like

def choose(n,k): return factorial(n)/(factorial(k)*factorial((n-k)))

or equivalent for permutations?
-

Is there a way to get the Standard Normal CDF other than writing the
function explicitly like below?

def normalCDF(z):
t = var('t')
return N(integrate((1/sqrt(2*pi))*e^((-t^2)/2), t,  -infinity, z))
-

Also, are there any distributions built into sage? I don’t quite know
what working with a distribution symbolically would be like, but as an
example, perhaps being able to do something like
X ~ BIN(n, p) and then get the expected value, variance, or PDF of X?
Assume that n and p are given.

Thanks,
-Matthew J
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Simple Combinatorics and Probability

2008-12-09 Thread Matthew J

Excellent, thank you, exactly what I was looking for.

On Dec 9, 2:07 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Tue, Dec 9, 2008 at 2:04 PM, Jason Bandlow <[EMAIL PROTECTED]> wrote:
>
> > Hi Matthew,
>
> > Matthew J wrote:
> >> Sage is great software that I rave about in pretty much all of my
> >> classes except for probability theory. I'd like to get some info on a
> >> few topics to clear some things up so that I can use these for classes
> >> and to post to an examples worksheet. Thanks in advance to anyone that
> >> replies.
>
> >> I am wondering how to do a few things.
> >> Is there a better (built-in) way to do simple combinations/
> >> permutations than writing a function like
>
> >> def choose(n,k): return factorial(n)/(factorial(k)*factorial((n-k)))
>
> > Entering: binomial(5,2)
> > will return: 10
>
> > Is this what you want? (This is much more efficient than the 'choose'
> > function you have above.)
> >> or equivalent for permutations?
>
> > I'm not sure exactly what you mean here. factorial(n) counts the number
> > of permutations of 'n' elements very efficiently.  Perhaps you mean
>
> > sage: permutations([1,2,2])
> > [[1, 2, 2], [2, 1, 2], [2, 2, 1]]
>
> > Type permutations? for more information on this command.  You may also
> > be interested in the command 'combinations'.
>
> >> -
>
> >> Is there a way to get the Standard Normal CDF other than writing the
> >> function explicitly like below?
>
> >> def normalCDF(z):
> >>     t = var('t')
> >>     return N(integrate((1/sqrt(2*pi))*e^((-t^2)/2), t,  -infinity, z))
> >> -
>
> >> Also, are there any distributions built into sage? I don't quite know
> >> what working with a distribution symbolically would be like, but as an
> >> example, perhaps being able to do something like
> >> X ~ BIN(n, p) and then get the expected value, variance, or PDF of X?
> >> Assume that n and p are given.
>
> > *Lots* of statistics is built into sage with the 'R' package.  I don't
> > know it well, but you can try typing R? inside sage and see what you can
> > work out from there.
>
> Sage also includes the scipy.stats package, which has 100 or
> so distributions:
>
> sage: import scipy.stats
> sage: help(scipy.stats)
>
> William
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Simple Combinatorics and Probability

2008-12-09 Thread Matthew J

> > > I'm not sure exactly what you mean here. factorial(n) counts the number
> > > of permutations of 'n' elements very efficiently.  Perhaps you mean
>
> > > sage: permutations([1,2,2])
> > > [[1, 2, 2], [2, 1, 2], [2, 2, 1]]
>
> > > Type permutations? for more information on this command.  You may also
> > > be interested in the command 'combinations'.

Also for completeness, for permutations I was referring to
permutations without repetitions. Generally calculated as nPr = n!/(n-
r)!

But I suppose this can easily be calculated with binomial(n,r)
*factorial(r)

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Simple Combinatorics and Probability

2008-12-09 Thread Matthew J

Thanks Jason, that will certainly save myself and others some time
trying to figure out what's going on.

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] How to get notebook() help?

2009-03-23 Thread J Elaych

It takes quite a while to learn how to use the notebook just by
googling around (search google for 'sage %hide' for instance) so I
hope someone can point me in a better direction.

One simple thing I would like to be able to do is to enter a bunch of
forumula's, say integrals or ODEs, at the very beginning of my session
and display them each in nicely formatted latex, as they are entered.
Sort of like a typical maple session, where each equation is typeset
as its entered.  However, the closest I get to such output is to 1)
assign the formula to a variable, 2) assign the latex(forumula) to a
variable, 3) jsmath(this latex variable) and 4) click 'evaluate' under
the cell.

Thats a bit of work and I've found that if I have several jsmath()
displays in a row and hit evaluate, only one of them shows up
typeset.  I know there has to be an easier way and it probably
requires various settings in the dropdown boxes above the worksheet
and some % declares and so on, and I would like to find a good
resource to read about these options.

For instance, the otherwise excellent 'an-invitation-to-sage.pdf'
whitepaper has a nice screenshot of a notebook that seems to do what I
want, with the helpful comment:

---
Here are the commands used to create the output in the Notebook
session
in the above screenshot:
 Sage Notebook
 a,b,c,d,x,y=var(’a,b,c,d,x,y’)
 show(solve(a*xˆ2+b*x+c==0,x))
 show(solve(a*xˆ3+b*x+c==0,x))
 solve(a*x+b*y==0,c*x+d*y==0,x,y)
---

but when I type them in to my notebook cell nothing happens, and when
I click 'evaluate' under the cell I just get an error message.  Also,
I can't tell if the whitepaper's screenshot was generated after each
of these 'show' commands, or if all of the commands are executed at
once via the 'evaluate' button.   Is there, for instance, a mode where
'evaluate' is implicit after each carriage return?

Likewise, searching google for 'sage latex' turns up some interesting
messages, but nothing that helps me set the notebook up to display
formulae.   Another forinstance:  I would like to know how the author
of http://sagenb.com/home/pub/365/  managed to have the nicely latex'd
comments above each of the cells.

I am still playing around and experimenting with the notebook but
there have to be some shortcuts to learning all this, and I'd
appreciate any pointers to websites, archives, and so on.

Thanks,

J

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: How to get notebook() help?

2009-03-23 Thread J Elaych

Hi Jose!

Thanks much for that update.  I did read the help on the notebook()
page
and it answered my evaluate-immediately query (Shift-Enter) and I
think
your new worksheet has answered the pretty-text-in-between-cells
question.   From here I think its mostly a matter of trial and error
and experimenting with other people's notebooks.

You're right,  my new first impression of Sage is that it is right on
the cusp of being a real serious competitor to Maple et al, and to
things like Enthought's EPD for a generic math-ready python
distro.   My first first impression on v1 of Sage was that it needed
another commercial package along side it, but now it looks like
Sage will have all of the other capabilities natively.

Thanks again,

J

On Mar 23, 10:26 am, Jose Guzman  wrote:
> Hi J Elaych,
>
> I am the author of the mentioned worksheet
> (http://sagenb.com/home/pub/365/). You can check the new version  here :
> (http://sagenb.org/home/pub/398/) the old one was full of awful
> mistakes, it was for simply testing purposes. I know some C and Python,
> etc..., but I am  a completely sage newbie and have myself little
> experience with any mathematics computing environment (I hope this will
> change with Sage, such a nice software).   I had the same hard time
> trying to figure out how the notebook() and some general principles of
> Sage work, however, it came out to be generally very intuitive (still
> far away of being an advanced user).
>
> For LaTeX typesetting what I do  is simply the following (I assume
> you're in notebook mode).
>
> Version 3.2 or below of Sage
> in the worksheet of interest you you can edit html code by clicking in
> the big blue "Edit" button (up, just after the blue "worksheet" button).
> There you will get a source code form where find that you can simply
> type html code between the {{{id=x ///}}} statements (which are indeed
> the sagecells). To add LaTeX to your html code just type the LaTeX
> formula between $ symbols, for example to type the solution to a second
> degree equation type
>
> $x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$
>
> Versions 3.3 or above.
> Double click on the text, or just  shift+click when the blue line
> appears bellow the cell to create a new text block (remember, generally
> above a Sage Cell). This will make a small html editor of the type '
> what you see is what you type" or similar. (TinyCE I think is the
> name).  There, just apply the same method. Write your text (now you do
> not need to edit in html format any more) and edit your formulas with
> between $ symbols.
>
> I have the same feeling that there is a little or no documentation to
> explain the basic Sage for the newcomer, my recommendation is to follow
> this list. This list will provide you with a full source of tips and
> tricks and people here are really ready to help (thank you guys). In
> any case, once I am familiar with Sage I am planning to give a course an
> introductory sage course in my department to persuade my colleagues to
> move  from mathematica to sage. Just let me know if I can help you, my
> email is just written in the worksheet.
>
> all the best!
>
> Jose.
>
> J Elaych wrote:
> > It takes quite a while to learn how to use the notebook just by
> > googling around (search google for 'sage %hide' for instance) so I
> > hope someone can point me in a better direction.
>
> > One simple thing I would like to be able to do is to enter a bunch of
> > forumula's, say integrals or ODEs, at the very beginning of my session
> > and display them each in nicely formatted latex, as they are entered.
> > Sort of like a typical maple session, where each equation is typeset
> > as its entered.  However, the closest I get to such output is to 1)
> > assign the formula to a variable, 2) assign the latex(forumula) to a
> > variable, 3) jsmath(this latex variable) and 4) click 'evaluate' under
> > the cell.
>
> > Thats a bit of work and I've found that if I have several jsmath()
> > displays in a row and hit evaluate, only one of them shows up
> > typeset.  I know there has to be an easier way and it probably
> > requires various settings in the dropdown boxes above the worksheet
> > and some % declares and so on, and I would like to find a good
> > resource to read about these options.
>
> > For instance, the otherwise excellent 'an-invitation-to-sage.pdf'
> > whitepaper has a nice screenshot of a notebook that seems to do what I
> > want, with the helpful comment:
>
> > ---
> >     Here are the commands used to create the output in the Notebook
> > sessio

[sage-support] %latex notebook errors

2009-03-28 Thread J Elaych

Hi,

I try the following in my first cell in a new notebook with sage-3.4
and the latest Ubuntu 64bit os.


%latex
Try this: $$x^2=-1$$.

evaluate

An error occured.
Error latexing slide.

-
(new cell)
-

Thats all I get.  I don't get any other latex log output, and it
doesn't write any sage*.dvi files.  I've noticed in the sage-support
archives that lots of people have had issues with %latex with output
that began "An error occured" and ended with "Error latexing slide"
but they had lots of other log output to work with.  Also, their
problems were evidently related to some problems with dvipng or other
latex path errors, but my latex and dvi* enviornment seems to be ok,
with all of the programs found in /usr/bin and the like.

Also, if I forget about %latex and the $$ stuff and just select the
'typeset' button and enter 'a+b==0' I get nice formatted output after
evaluate.  (Actually, the nice formatted output reads 'b + a = 0' but
what the heck.)

I've read as much of the docs and help and googled for 'an error
occured' and 'error latexing slide' but I still don't see a
resolution.

Thanks for any suggestions.

J
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: %latex notebook errors

2009-03-28 Thread J Elaych


> What happens if you type this at the command line:
>
> sage: sage.misc.latex.Latex().eval('Try this: $$x^2=-1$$.',0,0,debug=True)
>
> William

Awesome, thanks.   Latex wasn't finding 'fullpage.sty' so I installed
'dblatex' via
Ubuntu, which in turn installed tons of latex packages, including ../
preprint/fullpage.sty.
I see that you have helped other people find fullpage.sty before, but
the real
help for me was the pointer to the sage.misc.latex.Latex().eval()
command.

Thanks again,

J
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Jmol causing Firefox crash

2009-04-08 Thread J Elaych

I'm using Ubuntu 64 bit on amd2 and running sage-3.4.  I download a
file, "3D graph with points", from sagenb.com and run the cell.  The
interact widgets load and a Jmol splash screen starts and then the
entire browser bails.  Fortunately, I can restart previous session and
recapture my tabs, but of course I have to quickly delete the tab with
the offending worksheet.

Here are the messages from the terminal where I started 'sage -
notebook'.

2009-04-08 21:21:48-0700 [HTTPChannel,60,127.0.0.1]
2009-04-08 21:22:08-0700 [-] cd "/home/jlh/.sage/temp/jlh_desktop/8472/
dir_1"; tar -jxf "/home/jlh/.sage/temp/jlh_desktop/8472/dir_0/3D graph
with points.sws"
tar: 343/worksheet.txt: implausibly old time stamp 1956-04-03 08:55:47
2009-04-08 21:22:08-0700 [-]
2009-04-08 21:22:33-0700 [HTTPChannel,65,127.0.0.1] Request error:
Connection to the other side was lost in a non-clean fashion.
2009-04-08 21:22:56-0700 [HTTPChannel,69,127.0.0.1] Request error:
Connection to the other side was lost in a non-clean fashion.
2009-04-08 21:23:19-0700 [HTTPChannel,73,127.0.0.1]
2009-04-08 21:23:43-0700 [HTTPChannel,82,127.0.0.1]

The money-lines are the "Request error: ..." which is what prints when
the browser dies.  I searched sage-support for that error message but
didn't find it, so here it is for the next person who searches.

Of course, thanks in advance and all.

J
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Jmol causing Firefox crash

2009-04-09 Thread J Elaych

Thanks for that link.  In fact, the jmol website crashes my Firefox
3.0.8 with all tabs
just like sage did (or jmol did in a sage notebook).

I suspect it may have to do with which/what/how java(s) are installed
on my Ubuntu.

J

On Apr 9, 8:04 am, Jason Grout  wrote:
> William Stein wrote:
> > On Wed, Apr 8, 2009 at 9:30 PM, J Elaych  wrote:
> >> I'm using Ubuntu 64 bit on amd2 and running sage-3.4.  I download a
> >> file, "3D graph with points", from sagenb.com and run the cell.  The
> >> interact widgets load and a Jmol splash screen starts and then the
> >> entire browser bails.  Fortunately, I can restart previous session and
> >> recapture my tabs, but of course I have to quickly delete the tab with
> >> the offending worksheet.
>
> >> Here are the messages from the terminal where I started 'sage -
> >> notebook'.
>
> >> 2009-04-08 21:21:48-0700 [HTTPChannel,60,127.0.0.1]
> >> 2009-04-08 21:22:08-0700 [-] cd "/home/jlh/.sage/temp/jlh_desktop/8472/
> >> dir_1"; tar -jxf "/home/jlh/.sage/temp/jlh_desktop/8472/dir_0/3D graph
> >> with points.sws"
> >> tar: 343/worksheet.txt: implausibly old time stamp 1956-04-03 08:55:47
> >> 2009-04-08 21:22:08-0700 [-]
> >> 2009-04-08 21:22:33-0700 [HTTPChannel,65,127.0.0.1] Request error:
> >> Connection to the other side was lost in a non-clean fashion.
> >> 2009-04-08 21:22:56-0700 [HTTPChannel,69,127.0.0.1] Request error:
> >> Connection to the other side was lost in a non-clean fashion.
> >> 2009-04-08 21:23:19-0700 [HTTPChannel,73,127.0.0.1]
> >> 2009-04-08 21:23:43-0700 [HTTPChannel,82,127.0.0.1]
>
> >> The money-lines are the "Request error: ..." which is what prints when
> >> the browser dies.  I searched sage-support for that error message but
> >> didn't find it, so here it is for the next person who searches.
>
> >> Of course, thanks in advance and all.
>
> > There are known problems on some platforms with jmol, which Jason
> > Grout is hopefully tracking down.  
>
> I think I may have helped with some troubleshooting of this in the past,
> but I don't think I was ever seriously working on this.  If someone else
> wants to tackle, go right ahead.  I don't have enough experience with
> Java (especially 64-bit amd systems) to tell what is going on.
>
> However, to start troubleshooting, does the Jmol example work for you
> from the jmol website?  For example, here:
>
> http://jmol.sourceforge.net/demo/atoms/
>
> -Jason
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Jmol causing Firefox crash

2009-04-09 Thread J Elaych

Hi,

Yes that is very useful.  It does in fact appear that the problem
is related to the never-ending problems of 64bit firefox with
64bit plugins.  I won't use 32bit firefox and Sun only has 64bit
java applet plugins for Windows, not for linux.

On Ubuntu, there are two IcedTea plugins for 64bit java
applets --- one works with cacao-oj6-plugin and the other
is standalone --- and the cacao plugin causes firefox to
crash after a few seconds.

The standalone icedtea plugin shows the Jmol splash
screen with the message "Loading Jmol applet" and
an incrementing seconds counter at the bottom.  Mine
is up to 366 seconds, but no applet.

So the issue probably is one for the Jmol people, since
cacao/icedtea has worked for me in the past for
everything except Jmol.

J

On Apr 9, 8:44 pm, Rob Beezer  wrote:
> J,
>
> Try reading through this thread
>
> http://groups.google.com/group/sage-support/browse_thread/thread/2de6...
>
> even if it doesn't seem relevant at first.  It has some information
> about making sure you have the *right* java plugin.
>
> My first post in the thread has a link to some 64-bit specific
> information.
>
> I have JMOL working just fine in Firefox on KUbuntu 8.10, though on
> Intel (which I think shouldn't matter much).
>
> Rob
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Jmol causing Firefox crash

2009-04-10 Thread J Elaych

Yes, I went ahead and upgraded to the current Jaunty beta.  Then
I went into synaptic and 1) removed the ia32-sun stuff, 2) did a
"complete removal" of both iced-teas, and 3) installed the
sun-java6-plugin.   Now everything works:  the jmol/atoms demo
and all the jmol sage notebooks.

Now we just need Adobe to get Acroread into 64bits and I can
remove ia32-libs completely, and good riddance it will be.

J

On Apr 10, 1:20 am, Alec  wrote:
> I had the same problem, which I fixed by adding one of the Jaunty
> multiverse repositories to the software sources, then reloading the
> list of packages in Synaptic (by clicking the Reload button),
> upgrading sun-java6 packages, installing new sun-java6-plugin package
> and uninstalling icedtea6-plugin package. After that, I removed Jaunty
> from the software sources.
>
> Hopefully, soon Jaunty will be available for upgrading, and that will
> be even easier to do.
>
> Alec Mihailovs
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] @parallel() globals problem

2009-05-01 Thread J Elaych

I don't see many posts about the @parallel decorator, but I'm having
a problem that I would think would be pretty common.  I want to
decorate a function that performs some action with an instantiated
class and returns the results of that class method, but when I try
to execute the generator returned from the decorated function, I get
an
error that the 'global' class cannot be found.

Here's an example:

class foo():
 def do_something(self, myargs):
  return myargs

@parallel()
def f(N):
 a = foo()
 return a.do_something(N)

g=f([1,2,3,4])
list(g)

---
NameError Traceback (most recent call
last)

/home/jlh/ in ()

/usr/local/sage-3.4.1/local/lib/python2.5/site-packages/sage/parallel/
multiprocessing.pyc in parallel_iter(processes, f, inputs)

/usr/local/sage-3.4.1/local/lib/python2.5/site-packages/processing/
pool.pyc in next(self, timeout)

NameError: global name 'foo' is not defined
sage:


So anyway, the only examples I've found of sage + @parallel use
functions that
don't instantiate a user class.  They just use like def f(N):  return
N^2 and so on.
Thanks for any pointers to docs or examples that might help me use
this decorator.

Thanks,

J
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] characteristic of a field

2009-08-25 Thread J. Cooley

Hi

Is there a function that will tell you the characteristic of a field?

Thanks.

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: characteristic of a field

2009-08-25 Thread J. Cooley

Thank you both very much. (I had been trying to find it without the R.
part at the front!)


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Trouble getting sage to find a bit of code I've written.

2009-09-06 Thread J. Cooley

Firstly, sorry if my questions are stupid; I only started using sage 3
weeks ago.

Okay, I have written a bit of code in my clone in the module
ell_curve_isogeny.py, then I saved and rebuilt my clone to try and
test it in sage. Sage didn't find my function. I went back and saw
that in ell_field.py there had been two other things imported from
ell_curve_isogeny.py, so I added my function on the end, resaved,
rebuilt and tried again, and it still didn't find it. What have I
missed/am doing wrong?

Thanks,
Jenny
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Trouble getting sage to find a bit of code I've written.

2009-09-06 Thread J. Cooley

Thanks for your response. What and where is the Sage shell?

Cheers.

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Trouble getting sage to find a bit of code I've written.

2009-09-06 Thread J. Cooley

Ah, okay! So I needed to type `from
sage.schemes.elliptic_curves.ell_curve_isogeny import `
into the sage command line. That seems to have worked. Thank you both
very much.

Jenny
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Using PyWavelets in Sage

2010-09-16 Thread j wade
I would like to use PyWavelets (http://www.pybytes.com/pywavelets/) in
Sage.

I am running Sage 4.3.4 on Ubuntu 9.10.

I have installed python-pywt using Synaptic File Manager, but I am not
sure what to do beyond this.  I have refreshed the libraries, and
tried

import scipy
from scipy import pywt

and

import scipy
import pywt

but neither command recognizes pywt.

If someone out there is using pywavelets with Sage, I'd appreciate it
if you could let me know how you were able to get it to work.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Using wavfile.write() in sage generates error message

2010-09-20 Thread j wade
Hello,

I am attempting to create a .wav file from an array in sage using the
package wavfile.  I am importing a .wav file using the package
wavfile, and then using the python wavelets package 'pywt' to create
the array.  Here are the commands:

import pywt, scipy, numpy
from scipy.io import wavfile
x=wavfile.read('/directory/file.wav')
(cA, cD)=pywt.dwt(x[1],'db1')
xnew=pywt.idwt(cA,cD,'db1')
wavfile.write("noisyholanew.wav",44100, xnew)

The last command generates the following error message:
--
Traceback (most recent call last):
  File "", line 1, in 
  File "_sage_input_23.py", line 10, in 
exec compile(u'open("___code___.py","w").write("# -*- coding:
utf-8 -*-\\n" +
_support_.preparse_worksheet_cell(base64.b64decode("d2F2ZmlsZS53cml0ZSgibm9pc3lob2xhbmV3LndhdiIsNDQxMDAsIHhuZXcp"),globals())
+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in 

  File "/tmp/tmpJPm6LZ/___code___.py", line 3, in 
exec
compile(u'wavfile.write("noisyholanew.wav",_sage_const_44100 , xnew)
  File "", line 1, in 

  File "/home/jeremy/Programs/sage-4.5.3/local/lib/python2.6/site-
packages/scipy/io/wavfile.py", line 99, in write
fid.write(struct.pack('ihHIIHH', 16, 1, noc, rate, sbytes, ba,
bits))
SystemError: Objects/longobject.c:336: bad argument to internal
function

noisyholanew.wav
---

xnew is the array.  type(xnew) returns .

When I run this series of commands in a python shell, I receive no
error, and a .wav file is generated.

I would like to be able to run this series of commands in sage as
well.

I am using Sage 4.5.3 (compiled from source) and Python 2.6.4 on
Ubuntu 9.10.

Thanks!

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Error building Sage: lrcalc-2.1 and python3-3.11.1 failed to build successfully

2024-06-13 Thread Ani J
### Environment

```markdown
- **OS**:Ubuntu 22.04.4 LTS
- **Sage Version**: sage-10.3
```


### Steps To Reproduce

1. I'm trying to install sage in an anaconda environment in Ubuntu 22.04 
2. I have run the commands './bootstrap', './configure'
3. Then I installed some packages
4. Then I ran 'make reconfigure' followed by 'make'
5. I get the following Error message:

`
***
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):

* package: lrcalc-2.1
  last build time: May 28 13:03
  log file:~/some_path/sage-10.3/logs/pkgs/lrcalc-2.1.log

* package: python3-3.11.1
  last build time: Jun 12 08:30
  log file:~/some_path/sage-10.3/logs/pkgs/python3-3.11.1.log

It is safe to delete any log files and build directories, but they
contain information that is helpful for debugging build problems.
WARNING: If you now run 'make' again, the build directory of the
same version of the package will, by default, be deleted. Set the
environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.

make[1]: *** [Makefile:40: all-start] Error 1
make[1]: Leaving directory '~/some_path/sage-10.3'
make: *** [Makefile:13: all] Error 2
`

### Config log

[config.log](https://github.com/user-attachments/files/15798178/config.log)


### Package logs

[lrcalc-2.1.log](https://github.com/user-attachments/files/15798164/lrcalc-2.1.log)
[python3-3.11.1.log](https://github.com/user-attachments/files/15798165/python3-3.11.1.log)


### Additional Information

No specific references. I wasn't able to find any references for Sage-10.3 
with the same issue.

Best

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/0af66a7f-f7ab-4595-9d9f-4eccb2461cccn%40googlegroups.com.


[sage-support] SageMath 10.3 Qepcad crashed -- automatically restarting

2024-06-28 Thread Ani J
### Steps To Reproduce

1. I installed Sage-Math 10.3 for my Mac M2 from 
[https://github.com/3-manifolds/Sage_macOS/releases/](link)
2. I tried running a program containing QEPCAD
3. Sage outputs `Qepcad crashed -- automatically restarting`
4. Previously asked about this, but the response was that this is resolved 
in 10.3 [previous 
issue](https://github.com/sagemath/sage/issues/38050#issue-2308818637)
5. The input program is the following: Note that even without 
`memcells='1000 +L5000'` it crashes.
```
var('x_5_0')
var('x_5_1')
var('d')
var('x_0_0')
var('x_0_1')
var('x_1_0')
var('x_1_1')
var('x_2_0')
var('x_2_1')
var('x_3_0')
var('x_3_1')
var('x_4_0')
var('x_4_1')
var('tmp')
qf = qepcad_formula
constr0 = (tmp - tmp +(Rational(-1/1)* (d)) + (Rational(1/1)* (x_0_0^2)) + 
(Rational(-3/4))< 0)
constr1 = (tmp - tmp +(Rational(-1/2)) + (Rational(-1/1)* (d))< 0)
constr2 = (tmp - tmp +(Rational(1/1)) + (Rational(-1/1)* (d))< 0)
constr3 = (tmp - tmp +(Rational(-1/2)) + (Rational(-1/1)* (d))< 0)
constr4 = (tmp - tmp +(Rational(1/4)) + (Rational(-1/1)* (d))< 0)
constr5 = (tmp - tmp +(Rational(-1/1)* (d)) + (Rational(-1/1)) + 
(Rational(1/1)* (x_5_1^2)) + (Rational(1/1)* (x_5_0^2))< 0)
constr6 = (tmp - tmp +(Rational(-1/1)* (x_0_0)) + (Rational(-1/1)* (d)) + 
(Rational(-1/1)* (x_0_0^2)) + (Rational(-1/4))< 0)
constr7 = (tmp - tmp +(Rational(2/1)* (x_0_0)) + (Rational(-1/1)* (d)) + 
(Rational(-1/1)* (x_0_0^2)) + (Rational(-9/4))< 0)
constr8 = (tmp - tmp +(Rational(1/1)* (x_0_0)) + (Rational(-1/1)* (d)) + 
(Rational(-1/1)* (x_0_0^2)) + (Rational(-1/4))< 0)
constr9 = (tmp - tmp +(Rational(-1/1)* (x_0_0)) + (Rational(-1/1)* (d)) + 
(Rational(-1/1)* (x_0_0^2)) + (Rational(-3/2))< 0)
constr10 = (tmp - tmp +(Rational(1/1)* (x_5_1)) + (Rational(-1/1)* 
(x_5_0^2)) + (Rational(-1/1)* (d)) + (Rational(3/4)) + (Rational(2/1)* 
(x_0_0)* (x_5_0)) + (Rational(-1/1)* (x_5_1^2)) + (Rational(-1/1)* 
(x_0_0^2))< 0)
constr11 = (tmp - tmp +(Rational(-3/2)) + (Rational(-1/1)* (d))< 0)
constr12 = (tmp - tmp +(Rational(0/1)) + (Rational(-1/1)* (d))< 0)
constr13 = (tmp - tmp +(Rational(3/4)) + (Rational(-1/1)* (d))< 0)
constr14 = (tmp - tmp +(Rational(-1/1)* (x_5_1)) + (Rational(-1/1)* 
(x_5_1^2)) + (Rational(1/2)) + (Rational(-1/1)* (x_5_0)) + (Rational(-1/1)* 
(x_5_0^2)) + (Rational(-1/1)* (d))< 0)
constr15 = (tmp - tmp +(Rational(1/2)) + (Rational(-1/1)* (d))< 0)
constr16 = (tmp - tmp +(Rational(-5/4)) + (Rational(-1/1)* (d))< 0)
constr17 = (tmp - tmp +(Rational(-2/1)* (x_5_1)) + (Rational(-1/1)* 
(x_5_1^2)) + (Rational(-1/1)) + (Rational(2/1)* (x_5_0)) + (Rational(-1/1)* 
(x_5_0^2)) + (Rational(-1/1)* (d))< 0)
constr18 = (tmp - tmp +(Rational(-1/4)) + (Rational(-1/1)* (d))< 0)
constr19 = (tmp - tmp +(Rational(-1/1)* (x_5_1)) + (Rational(-1/1)* 
(x_5_1^2)) + (Rational(1/2)) + (Rational(1/1)* (x_5_0)) + (Rational(-1/1)* 
(x_5_0^2)) + (Rational(-1/1)* (d))< 0)
constr20 = (tmp - tmp +(Rational(-2/1)* (x_5_1)) + (Rational(-1/1)* 
(x_5_1^2)) + (Rational(-1/4)) + (Rational(-1/1)* (x_5_0)) + 
(Rational(-1/1)* (x_5_0^2)) + (Rational(-1/1)* (d))< 0)
constr21 = (tmp - tmp +(Rational(-1/1)* (d))< 0)
F = qf.and_(constr0, constr1, constr2, constr3, constr4, constr5, constr6, 
constr7, constr8, constr9, constr10, constr11, constr12, constr13, 
constr14, constr15, constr16, constr17, constr18, constr19, constr20, 
constr21)
print(qepcad(qf.exists(x_0_0,F) ,memcells='1000 +L5000'))
```

### Expected Behavior

It should output the formula the we get after quantifier elimination.

### Actual Behavior

Sage crashes and outputs `Qepcad crashed -- automatically restarting`

### Additional Information

Similar issues were raised previously in a lot of places including:
[link 1](https://github.com/sagemath/sage/issues/38050#issue-2308818637)
[link 2](https://github.com/sagemath/sage/issues/37349#issue-2135481233)
[link 3](https://github.com/sagemath/sage/issues/37349#issue-2135481233)
[link 4](https://github.com/sagemath/sage/issues/37518#issue-2164791030)

### Environment

```markdown
- **OS**: Mac M2 Ventura 13.4
- **Sage Version**: 10.3
```

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/e2caed87-bc5c-4501-b9b8-57861d7b1d33n%40googlegroups.com.


[sage-support] More than 4096 characters with Qepcad causes an error

2024-07-02 Thread Ani J
### Steps To Reproduce

1. I installed Sage-Math 10.3 for my Mac M2 from 
[https://github.com/3-manifolds/Sage_macOS/releases/](https://github.com/sagemath/sage/issues/link)
2. I tried running a program containing QEPCAD. The link for the program: 
[tmp_sage_ani_git_issue.txt](https://github.com/user-attachments/files/16065741/tmp_sage_ani_git_issue.txt)

3. I used the following commands to execute sage: 
```
   mv tmp_sage_ani_git_issue.txt program.sage
   sage program.sage
 ```

### Expected Behavior

It should output the constraints after quantifier elimination.

### Actual Behavior

Gives the following error:
```
Traceback (most recent call last):
  File "some_path/tmp_sage_ani_git_issue.sage.py", line 3221, in 
print(qepcad(qf.exists(bdeltaAT2,F3063) ,memcells='1000 +L5000'))
  ^^
  File "sage/misc/lazy_import.pyx", line 409, in 
sage.misc.lazy_import.LazyImport.__call__ 
(build/cythonized/sage/misc/lazy_import.c:6260)
  File 
"some_other_path/lib/sage/venv-python3.11.8/lib/python3.11/site-packages/sage/interfaces/qepcad.py",
 
line 1640, in qepcad
qe = Qepcad(formula, vars=vars, **kwargs)
 
  File 
"some_other_path2/sage-10.3-current/local/var/lib/sage/venv-python3.11.8/lib/python3.11/site-packages/sage/interfaces/qepcad.py",
 
line 887, in __init__
qex.eval(formula + '.')
  File 
"some_other_path2/sage-10.3-current/local/var/lib/sage/venv-python3.11.8/lib/python3.11/site-packages/sage/interfaces/expect.py",
 
line 1414, in eval
return '\n'.join(self._eval_line(L, allow_use_file=allow_use_file, 
**kwds)
  
 ^^^
  File 
"some_other_path2/sage-10.3-current/local/var/lib/sage/venv-python3.11.8/lib/python3.11/site-packages/sage/interfaces/expect.py",
 
line 1414, in 
return '\n'.join(self._eval_line(L, allow_use_file=allow_use_file, 
**kwds)

 ^
  File 
"some_other_path2/sage-10.3-current/local/var/lib/sage/venv-python3.11.8/lib/python3.11/site-packages/sage/interfaces/expect.py",
 
line 996, in _eval_line
raise RuntimeError("Sending more than 4096 characters with %s on a line 
may cause a hang and you're sending %s characters" % (self, len(line)))
RuntimeError: Sending more than 4096 characters with Qepcad on a line may 
cause a hang and you're sending 65042 characters
```

### Additional Information

_No response_

### Environment

```markdown
- **OS**: Mac M2 Ventura 13.4
- **Sage Version**: 10.3
```


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/ff6a52f3-d393-420e-9f70-0fd7f81defd0n%40googlegroups.com.


[sage-support] QEPCAD Timeout

2024-10-07 Thread Ani J
 

*Steps To Reproduce*

   1. My machine is Mac M2 with the OS Ventura 13.4 
   2. I already have installed sage with version 10.3 [I believe the same 
   issue exists with 10.4 as well]
   The following program times-out: 

*var('x')*

*var('a')*

*var('y')*

*var('b')*

*var('r')*


*qf = qepcad_formula*

*F0 = (0 > 0 + 1*x*x*a*a + 1*y*y*b*b + -1*a*a*b*b)*

*F1 = (0 > 0 + 1*x*x + 1*y*y + -20*x + -20*y + -1*r*r + 200)*

*F2 = qf.and_(F0,F1)*

*F3 = qf.and_(F2)*

*var("tmp")*

*eliminate_trick = 
qepcad(qf.exists(tmp,qf.and_(tmp==0,F3)),memcells='10 +L5000')*

*print(eliminate_trick)*


Quantification out of the *tmp* variable should be pretty easy since this 
only appears in the constraint *tmp==0*.


*Expected Behavior*

A formula without the tmp variable.


*Actual Behavior*

Just keeps running for a long time.


*Environment*

   - *OS*: Mac M2 with the OS Ventura 13.4 
   - *Sage Version*: 10.3 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/f79044c3-4718-408b-8928-c02acbbf2781n%40googlegroups.com.


[sage-support] QEPCAD not working in python package of SageMath

2024-10-06 Thread Ani J
 

*Also filed this issue on git here: *
https://github.com/sagemath/sage/issues/38779#issue-2568964546

*Steps To Reproduce*

   1. My machine is Mac M2 with the OS Ventura 13.4 
   2. I already have anaconda installed: conda --version prints conda 
   23.10.0 
   3. I used the command conda create -n sage sage python=3.9 to 
   install sage in python as explained in installation guide 
   

 
   4. Then setting the environment using conda activate sage sets the 
   appropriate environment. 
   5. The following program returns an error: 

from sage.all import *

var('a,b,c,d,x,y,z')

qf = qepcad_formula

ellipse = Integer(3)*x**Integer(2) + Integer(2)*x*y + y**Integer(2) - x + y 
- Integer(7)

F = qf.exists(y, ellipse == Integer(0)); F

qepcad(F)


*Expected Behavior:*

*There should be no error and a formula should be returned.*

*Actual Behavior:*

*The error reported is*

Traceback (most recent call last):

  File 
"/path/anaconda3/envs/sage/lib/python3.9/site-packages/sage/interfaces/expect.py",
 
line 521, in _start

self._expect.expect(self._prompt)

  File 
"/path/anaconda3/envs/sage/lib/python3.9/site-packages/pexpect/spawnbase.py", 
line 354, in expect

return self.expect_list(compiled_pattern_list,

  File 
"/path/anaconda3/envs/sage/lib/python3.9/site-packages/pexpect/spawnbase.py", 
line 383, in expect_list

return exp.expect_loop(timeout)

  File 
"/path/anaconda3/envs/sage/lib/python3.9/site-packages/pexpect/expect.py", 
line 179, in expect_loop

return self.eof(e)

  File 
"/path/anaconda3/envs/sage/lib/python3.9/site-packages/pexpect/expect.py", 
line 122, in eof

raise exc

pexpect.exceptions.EOF: End Of File (EOF). Empty string style platform.

Qepcad with PID 92720 running /path/bin/env qe=/path/anaconda3/envs/sage 
qepcad

command: /path/bin/env

args: ['/path/bin/env', 'qe=/path/anaconda3/envs/sage', 'qepcad']

buffer (last 100 chars): b''

before (last 100 chars): b'env: qepcad: No such file or directory\r\n'

after: 

match: None

match_index: None

exitstatus: None

flag_eof: True

pid: 92720

child_fd: 6

closed: False

timeout: None

delimiter: 

logfile: None

logfile_read: None

logfile_send: None

maxread: 4194304

ignorecase: False

searchwindowsize: None

delaybeforesend: None

delayafterclose: 0.1

delayafterterminate: 0.1

searcher: searcher_re:

0: re.compile(b'\nEnter an .*:\r')


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "", line 1, in 

  File "sage/misc/lazy_import.pyx", line 404, in 
sage.misc.lazy_import.LazyImport.__call__ 
(build/cythonized/sage/misc/lazy_import.c:4514)

  File 
"/path/anaconda3/envs/sage/lib/python3.9/site-packages/sage/interfaces/qepcad.py",
 
line 1631, in qepcad

qe = Qepcad(formula, vars=vars, **kwargs)

  File 
"/path/anaconda3/envs/sage/lib/python3.9/site-packages/sage/interfaces/qepcad.py",
 
line 876, in __init__

qex._send('[ input from Sage ]')

  File 
"/path/anaconda3/envs/sage/lib/python3.9/site-packages/sage/interfaces/expect.py",
 
line 267, in _send

self._start()

  File 
"/path/anaconda3/envs/sage/lib/python3.9/site-packages/sage/interfaces/expect.py",
 
line 525, in _start

raise RuntimeError("unable to start %s: %s" % (self.name(), msg))

RuntimeError: unable to start QEPCAD: End Of File (EOF). Empty string style 
platform.

Qepcad with PID 92720 running /usr/bin/env 
qe=/Users/ani/anaconda3/envs/sage qepcad

command: /path/bin/env

args: ['/path/bin/env', 'qe=/path/anaconda3/envs/sage', 'qepcad']

buffer (last 100 chars): b''

before (last 100 chars): b'env: qepcad: No such file or directory\r\n'

after: 

match: None

match_index: None

exitstatus: None

flag_eof: True

pid: 92720

child_fd: 6

closed: False

timeout: None

delimiter: 

logfile: None

logfile_read: None

logfile_send: None

maxread: 4194304

ignorecase: False

searchwindowsize: None

delaybeforesend: None

delayafterclose: 0.1

delayafterterminate: 0.1

searcher: searcher_re:

0: re.compile(b'\nEnter an .*:\r')


*Additional Information*

*No response*

*Environment*

   - *OS*: Mac M2 with the OS Ventura 13.4 
   - *Sage Version*: Installed from conda-forge 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/dcee01e0-4551-4948-aefe-4088fcbb7e37n%40googlegroups.com.


[sage-support] binomial() puts

2018-08-07 Thread J E Cremona
sage: R. = ZZ[]
sage: b = binomial(q,2)
sage: b
1/2*(q - 1)*q
sage: b.parent()
Symbolic Ring

especially when compared with

sage: binomial(q,1).parent()
Univariate Polynomial Ring in q over Integer Ring

John
-- 
Prof J E Cremona
Warwick Mathematics Institute
University of Warwick
http://www2.warwick.ac.uk/fac/sci/maths/people/staff/john_cremona/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] how to specify a port when running jupyter notebook

2019-02-04 Thread J E Cremona
Is it possible to specify which port the jupyter notebook server runs on?
I think the default is , but sometimes a different one is used
(e.g.8889 if  is in use).  I am running on a remote server so that
other users may already be doing something on the default port.  In order
to view the notebooks on my local machine's browser I use ssh-tunnelling
and like to have the port numbers fixed in my ~/.ssh/config file.  This is
awkward if I do not know in advance which port will be used.

John Cremona


-- 
Prof J E Cremona
Warwick Mathematics Institute
University of Warwick
http://www2.warwick.ac.uk/fac/sci/maths/people/staff/john_cremona/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: recovering the last Sage command while it is still running

2020-08-20 Thread Alex J Best
At least on my machine opening a new terminal window and starting a new 
sage session then pressing "up" gives me the previous command (still 
running) from the old session.

(I'm on 9.2.beta8 in case that's relevant)

On Thursday, August 20, 2020 at 1:32:20 PM UTC-4 David Lowry-Duda wrote:

> > I thought that there was a Sage history file somewhere where the last 
> command I gave would be stored but if there is (as I know there is) it 
> seems to be unreadable. I think it is in 
> .sage/ipython-*/profile_default/history.sqlite. 
>
> I've never actually tried this, but you're right, it'll be there. And I 
> just tested and it seems to update immediately, even in the middle of 
> executing long-running sage commands. Reading it depends on your preferred 
> sqlite parser.
>
> For instance, in the `sqlite3` command line tool,  you can run `sqlite3 
> path/to/history.sqlite`. You can then enter a query like
>
> SELECT * FROM history;
>
> Depending on your sage usage, this might be tremendously long and 
> inconvenient, but this is the basic idea. Default ordering will output 
> commands from more recent sage sessions later, so it might be possible that 
> running this and scanning the last few entries might work. A slightly more 
> sophisticated use might be to use `sqlite3 path/to/history.sqlite "SELECT * 
> FROM history" | grep -C5 `. This runs the single 
> SELECT command, pipes it to grep, and then you can examine.
>
> Of course if you've run many similar commands afterwards, this might not 
> be very effective. It might be necessary to actually leverage the structure 
> of the database. For example, if it was actually the last sage command 
> you've run, you could do something like
>
> SELECT * FROM history ORDER BY  session DESC LIMIT 1;
>
> The schema of the history table can be seen with `.schema history` (note 
> the period before schema and the lack of a semicolon). This will indicate 
> that the history table contains a session integer, a line integer, the 
> source text, and the raw source text.
>
> Good luck! - DLD
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/fa75772b-2bb5-4674-9b9c-b8e198562d0fn%40googlegroups.com.


[sage-support] install sage

2020-12-10 Thread Jorge J. Urroz
I am trying to install Sage 9.2 in Mac book pro, with Catalina. I 
downloaded the sage.app, and when i try to open it, Catalina tells me that 
it can not open it, because it can not verify that it does not have 
malicious code inside.

I am really not good wtih computers, so i would ask for your help with 
this  for really fully beginners.

Thanks in advance.

Jorge

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/34186eb4-ceb2-49d1-9e2b-53a56ac0bf98n%40googlegroups.com.


Re: [sage-support] install sage

2020-12-10 Thread Jorge J. Urroz
Thanks. I did download miniconda, but when i open it it appears a text file
and i dont know what to do with it.



El jue., 10 dic. 2020 a las 17:08, Dima Pasechnik ()
escribió:

> Probably the most beginner-friendy way on macOS is to use Conda:
> https://doc.sagemath.org/html/en/installation/conda.html
>
>
> On Thu, Dec 10, 2020 at 12:02 PM Jorge J. Urroz  wrote:
> >
> > I am trying to install Sage 9.2 in Mac book pro, with Catalina. I
> downloaded the sage.app, and when i try to open it, Catalina tells me that
> it can not open it, because it can not verify that it does not have
> malicious code inside.
> >
> > I am really not good wtih computers, so i would ask for your help with
> this  for really fully beginners.
> >
> > Thanks in advance.
> >
> > Jorge
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "sage-support" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to sage-support+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/34186eb4-ceb2-49d1-9e2b-53a56ac0bf98n%40googlegroups.com
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAAWYfq2AbwQ0KK-dwTX90-GW5Q1%3DhzV7kWZr2s8Oq8_DMav9pQ%40mail.gmail.com
> .
>


-- 
Jorge  at http:// piensabienyacertaras.blogspot.com/
<http://piensabienyacertaras.blogspot.com/2007_04_01_archive.html>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CADQvKxLXAmcNLtE0w4fZEo8KMgdV1B_r1Ud776c2kyO3_uwpBA%40mail.gmail.com.


Re: [sage-support] install sage

2020-12-10 Thread Jorge J. Urroz
Thanks! Though, what i did is remove the quarantine and give permissions to
sage. Result: it opens the page in a browser and then it says that I do
not have access to the page Jupyter neither SageNB interface.

El jue., 10 dic. 2020 a las 18:09, Lluis Vena Cros ()
escribió:

> You can try to right-click on the sage.app, and select 'open' (probably
> the top-most choice).
> Then, a dialog box will pop up; there should be an option to select 'open'.
> This should hopefully launch the app.
>
>
> https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unidentified-developer-mh40616/mac
>
> Best,
> Lluís
>
> On 10/12/2020 12:47, Jorge J. Urroz wrote:
> > I am trying to install Sage 9.2 in Mac book pro, with Catalina. I
> > downloaded the sage.app, and when i try to open it, Catalina tells me
> > that it can not open it, because it can not verify that it does not have
> > malicious code inside.
> >
> > I am really not good wtih computers, so i would ask for your help with
> > this  for really fully beginners.
> >
> > Thanks in advance.
> >
> > Jorge
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "sage-support" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> > an email to sage-support+unsubscr...@googlegroups.com
> > <mailto:sage-support+unsubscr...@googlegroups.com>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sage-support/34186eb4-ceb2-49d1-9e2b-53a56ac0bf98n%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/sage-support/34186eb4-ceb2-49d1-9e2b-53a56ac0bf98n%40googlegroups.com?utm_medium=email&utm_source=footer
> >.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/e56ff989-0216-31f2-cce9-dfc49610a933%40gmail.com
> .
>


-- 
Jorge  at http:// piensabienyacertaras.blogspot.com/
<http://piensabienyacertaras.blogspot.com/2007_04_01_archive.html>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CADQvKxJVz_HHPDVoPV%3DoniTdGy_zscceW7%2Ba_9Z7gc-rH14r4A%40mail.gmail.com.


[sage-support] IPython TextMate Bundle

2008-11-13 Thread Benjamin J. Racine

I am sending this forward on behalf of Matt Foster...
Be sure to look into pysmell (for completion) as well.
>>

Hi All,

A similar mail has already been on the (ipython) users mailing list, so my 
apologies if you've seen most of this before.

I've started working on a TextMate bundle for IPython, based on the info on the 
Wiki [1], the aim is to produce a BSD licensed bundle which helps to integrate 
TextMate with IPython.

I have set up a project on Github [2] which currently contains:
  * Some help, which doubles as the README
  * commands for running the current file / line / section in IPython (via 
applescript, and Terminal.app)
  * a basic language grammar for ipythonrc config files.

The GitHub page contains the README file which has instructions on how to get 
GetBundles, which will allow you to install the bundle (but not track changes). 
Alternatively, if you have git, you can get the bundle using the following 
commands:

cd "~/Library/Application Support/TextMate/Bundles"
git clone git://github.com/mattfoster/ipython-tmbundle.git IPython.tmbundle 
osascript -e 'tell app "TextMate" to reload bundles'

GitHub users can fork the project and make their own changes.

I'd really love to hear any ideas, suggestions or feature requests people have, 
and I've been told by Fernando that it's ok to use this list for discussions, 
provided we prefix mail subjects with [TextMate].

Thanks,

Matt

[1]: http://ipython.scipy.org/moin/Cookbook/UsingIPythonWithTextMate
[2]: http://github.com/mattfoster/ipython-tmbundle/

--
Matt Foster | http://my-mili.eu/matt
___
IPython-dev mailing list
[EMAIL PROTECTED]
http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Getting sage to see some python libraries that don't appear in the sage library

2009-01-20 Thread Benjamin J. Racine

Hello all,

I apologize if I am repeating someone, but I figure this question is a big one 
worth bringing up again.  If I want sage to see some publicly available python 
libraries, it seems that I can't just drag and drop them into my 
"site-packages" folder as eggs as I thought I might.  I am on OS X and/or 
Ubuntu and trying to cherry pick from both EPD and Sage.

Thanks,
Ben Racine

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: How can I make a topographic map with Sage?

2009-01-30 Thread Benjamin J. Racine

A fellow named Gael Varoquaux uses the topographic map of France as a common 
example for showing off mayavi (a 3D vtk-based viz tool) so this may be more of 
an Enthought Python Distribution question (vs. sage).  Mayavi may be found 
here: http://mayavi.sourceforge.net/ and perhaps elsewhere.  I would just write 
the mayavi list-serve... they are great... and you're likely to get this exact 
example from there.  I might be able to as well, if I remember when I'm on 
other machine.

HTH,
Ben R.

-Original Message-
From: sage-support@googlegroups.com [mailto:sage-supp...@googlegroups.com] On 
Behalf Of Sage
Sent: Thursday, January 29, 2009 5:33 PM
To: sage-support
Subject: [sage-support] How can I make a topographic map with Sage?


Is Sage suitable for topography? I have collected the data of a see, discreate 
data points. I need to make regressions on the data. Then, I think the contour 
plot creates the final topographic map. Or am I wrong? How are topographic maps 
dene in Sage? Can I give the data as an input and get the map back as an output?



--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Multiple plots of a function with different discreet values

2009-08-31 Thread Shawn J. Goff

I wish to plot I = I0*(exp(q*V/n/k/T)-1) as a function of V for
several different values of n.

I realize I can do something like this:
I1 = I0*(exp(q*V/n[0]/k/T)-1)
I2 = I0*(exp(q*V/n[1]/k/T)-1)
I3 = I0*(exp(q*V/n[2]/k/T)-1)
plot((I1, I2, I3, ...), (V, 0, 1))

But that feels wrong. I'm wondering if there is a better way. For
instance, if it is possible to do something like:
plot(( I(n=n[0]), I(n=n[1]), I(n=n[2]), ...), (V, 0, 1))
I think that would be great. Really, anything better than the example
at the top would be nice.

Thanks for your help.

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Multiple plots of a function with different discreet values

2009-08-31 Thread Shawn J. Goff



On Aug 31, 12:17 pm, Jason Grout  wrote:
>[...]
> Ifuncs=[I0*(exp(q*V/n/k/T)-1) for n in [0,1,2,3,4,5]]
> plot(Ifuncs, (V,0,1))
> [...]

That, sir, is a thing of beauty. Exactly what I wanted. Thanks!



--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Limit the range of a plot

2009-08-31 Thread Shawn J. Goff

I'm trying to plot I = I0*(exp(q*V/n/k/T)-1) as a function of V for
several different values of n. I have:
I = [I0*(exp(q*V/n/k/T)-1) for n in [1, 1.5, 2]]   (thanks, Jason)

If I then say plot(I), it shows one of the lines shooting up to huge
values, and the other two are very small (laying on the abscissa). I
can limit the domain such as plot(I, (V, 0, 1)), but this doesn't help
- it will still accommodate the range for the larger function leaving
the other two looking minuscule. (see output here:
http://shawnjgoff.com/files/sageHelp_largeRange.png )

Looking through the documentation, I found a trick:
show((line(I[0]) + line(I[1]) + line(I[2])), ymin=0, ymax=1, xmin=0,
xmax=2)
This is very close, except for some reason the domain is limited from
0 to 1 even though I have "xmax=2" in there. (see output here:
http://shawnjgoff.com/files/sageHelp_domainLimiting.png )
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] interrupting execution from the command line

2009-12-13 Thread Charles J. Daniels
I haven't gotten notebook running just yet, but I prefer command line
anyway so far. The thing is, my computational eyes are larger than my
processing ability's stomach, so I end up finding out it's going to
take longer than I want to complete a command. How do I stop it from
the command line? I tried ctrl-c but no help. I end up having to close
out the command window. In case it matters, I'm running sage via
virtualbox on windows. I've search all over for this info but cannot
find it. Thanks for any help.

--charlie

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: interrupting execution from the command line

2009-12-13 Thread Charles J. Daniels

On Dec 13, 1:54 am, Robert Bradshaw 
wrote:
> On Dec 13, 2009, at 1:46 AM, Charles J. Daniels wrote:
>
> >  I tried ctrl-c but no help.
>
> This should work. If it doesn't, it usually means we didn't wrap some  
> c call with the appropriate signal handlers, so please let us know  
> exactly what you were calling so we can fix it.
>
> - Robert

You are right, ctrl-c is working. My problem was due to virtualbox
(see, I thought that might matter =) - the right ctrl key is (by
default) used to redirect to your os, so alt-tab will cycle through
your native machice windows rather than the virtual, etc. It was
eating up my ctrl-c, so now I found I can use the left ctrl+c. Thanks
for the help! I wouldn't have thought to try that had you not ensured
me the key combo should work.

--charlie

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Sage 4.2.1 under Windows 7 not functioning with VirtualBox either?

2009-12-17 Thread Charles J. Daniels
On Dec 14, 10:01 pm, Timothy Paysen  wrote:
> The VirtuaBox incarnation doesn't seem to be able to get to a Sage notebook.
>  It will bring you to the Sage web sit--but nothing more.  So--can't even
> say whether it works well or not--it just doesn't seem to work.

If you are running VirtualBox version 3.1.0, which appliance are you
importing? A newer one was exported fairly recently to correct a
problem that occurred during importing. The MD5 checksum of the zip
you downloaded should be b13de836ea5541ba34bca03310a5d265. The name of
the new zip file I downloaded was sage-virtualbox-4.2.1.p1.zip, and
the older one that didn't work for me lacked the p1 towards the end.
To determine the checksum of my downloaded zip I had to download a
freeware app. I winded up with the one at http://www.irnis.net/soft/xcsc/,
if that helps.

--charlie

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Sage 4.2.1 under Windows 7 not functioning with VirtualBox either?

2009-12-18 Thread Charles J. Daniels


On Dec 18, 11:30 am, William Stein  wrote:
> Hi,
>
> So the main issue is that often some of the hard drives aren't
> appearing after import, due to bugs in VirtualBox on various
> platforms?
>
> [...]
>
> William

To be fair to your efforts William, I'm not sure they have the new
appliance you exported that fixed the "only 2 drives out of 3" error
-- at least fixed it in my case on WinXPPro SP3 in VirtualBox 3.1.0.
Perhaps the only 'bug' is a backward incompatability that breaks
importing certain appliances exported from pervious versions of
VirtualBox.

--charlie

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Get an error message when trying to install sage cell server

2013-05-19 Thread Aaron E-J
I am interested in contributing to the sage cell server and am going through 
the steps outlined in the readme in the 
https://github.com/sagemath/sagecell#id1";>github page. When I get to step #5, I 
get the following error message that is detailed below. I am running this on a 
kubuntu virtual machine (VMWare) but I don't see that should matter. Is there 
another way to achieve this? Can I just download and unzip the archive? If this 
is the case, where do I unzip it to? Any insight as to what the issue might be 
is greatly appreciated, thanks!

aaronej@ubuntu:~/sage/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux$ 
./sage -i 
http://sage.math.washington.edu/home/jason/sagecell-spkg/sagecell-2013-04-05.spkg
Attempting to download package sagecell-2013-04-05
>>> Downloading sagecell-2013-04-05.spkg.   
>>> 
>>> 
>>>
[]  


   
sagecell-2013-04-05 


   



   
Extracting package 
/home/aaronej/sage/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/spkg/optional/sagecell-2013-04-05.spkg

  
-rw-rw-r-- 1 aaronej aaronej 60793713 May 18 17:36 
/home/aaronej/sage/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/spkg/optional/sagecell-2013-04-05.spkg

  
Finished extraction 


   



   
Host system:


   
Linux ubuntu 3.8.0-21-generic #32-Ubuntu SMP Tue May 14 22:16:46 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux  

 



   
C compiler: gcc 


   
C compiler version: 


   
Using built-in specs.   


   
COLLECT_GCC=gcc 


   
COLLECT_LTO_WRAPPER=/home/aaronej/sage/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-L

[sage-support] Re: Get an error message when trying to install sage cell server

2013-05-21 Thread Aaron E-J
 

Installing using the binary download version of sage does not work, gives a 
"cannot find such and such file" message.  Am trying it with the source 
version now.

On Sunday, May 19, 2013 6:03:12 PM UTC-4, Aaron E-J wrote:
>
> I am interested in contributing to the sage cell server and am going 
> through the steps outlined in the readme in the 
> https://github.com/sagemath/sagecell#id1";>github page. When I get to step 
> #5, I get the following error message that is detailed below. I am running 
> this on a kubuntu virtual machine (VMWare) but I don't see that should 
> matter. Is there another way to achieve this? Can I just download and unzip 
> the archive? If this is the case, where do I unzip it to? Any insight as to 
> what the issue might be is greatly appreciated, thanks!
>
> aaronej@ubuntu:~/sage/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux$ 
> ./sage -i 
> http://sage.math.washington.edu/home/jason/sagecell-spkg/sagecell-2013-04-05.spkg
> Attempting to download package sagecell-2013-04-05
> >>> Downloading sagecell-2013-04-05.spkg. 
> 
> 
>  
> [] 
> 
> 
> 
> sagecell-2013-04-05   
> 
> 
>  
>    
> 
> 
> 
> Extracting package 
> /home/aaronej/sage/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/spkg/optional/sagecell-2013-04-05.spkg
>  
> 
>  
> -rw-rw-r-- 1 aaronej aaronej 60793713 May 18 17:36 
> /home/aaronej/sage/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/spkg/optional/sagecell-2013-04-05.spkg
>  
> 
>  
> Finished extraction   
> 
> 
>  
>    
> 
> 
> 
> Host system:   
> 
> 
> 
> Linux ubuntu 3.8.0-21-generic #32-Ubuntu SMP Tue May 14 22:16:46 UTC 2013 
> x86_64 x86_64 x86_64 GNU/Linux 
> 
>   
>    
> 
> 
> 
> C compiler: gcc   
> 
> 
>  
> C compiler version:   
&

[sage-support] Re: Get an error message when trying to install sage cell server

2013-05-27 Thread Aaron E-J
 

So I've finally had a change to get back to working on trying to install 
sage sell.  I've got everything set, only I'm getting the following error 
that makes me think I'm missing a dependency:
config.status: executing libtool commands
Making all in src
make[1]: Entering directory 
`/home/aaronej/sage/spkg/build/sagecell-2013-05-20/src/zeromq-2.2.0/src'
make  all-am
make[2]: Entering directory 
`/home/aaronej/sage/spkg/build/sagecell-2013-05-20/src/zeromq-2.2.0/src'
  CXXlibzmq_la-clock.lo
  CXXlibzmq_la-command.lo
  CXXlibzmq_la-ctx.lo
  CXXlibzmq_la-connect_session.lo
  CXXlibzmq_la-decoder.lo
  CXXlibzmq_la-device.lo
  CXXlibzmq_la-devpoll.lo
  CXXlibzmq_la-dist.lo
  CXXlibzmq_la-encoder.lo
  CXXlibzmq_la-epoll.lo
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:222:0,
 from /usr/include/x86_64-linux-gnu/sys/epoll.h:22,
 from epoll.cpp:25:
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:32:36: error: ISO C++ 1998 
does not support 'long long' [-Werror=long-long]
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:35:36: error: ISO C++ 1998 
does not support 'long long' [-Werror=long-long]
/usr/include/x86_64-linux-gnu/sys/sysmacros.h:38:1: error: ISO C++ 1998 
does not support 'long long' [-Werror=long-long]
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:270:0,
 from /usr/include/x86_64-linux-gnu/sys/epoll.h:22,
 from epoll.cpp:25:
/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:135:19: error: ISO C++ 
1998 does not support 'long long' [-Werror=long-long]
/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:136:19: error: ISO C++ 
1998 does not support 'long long' [-Werror=long-long]
/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:137:19: error: ISO C++ 
1998 does not support 'long long' [-Werror=long-long]
/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h:143:17: error: ISO C++ 
1998 does not support 'long long' [-Werror=long-long]
cc1plus: all warnings being treated as errors
make[2]: *** [libzmq_la-epoll.lo] Error 1
make[2]: Leaving directory 
`/home/aaronej/sage/spkg/build/sagecell-2013-05-20/src/zeromq-2.2.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/home/aaronej/sage/spkg/build/sagecell-2013-05-20/src/zeromq-2.2.0/src'
make: *** [all-recursive] Error 1
Error building zeromq.

real1m22.230s
user0m35.632s
sys 0m20.232s

Error installing package sagecell-2013-05-20

Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
  /home/aaronej/sage/logs/pkgs/sagecell-2013-05-20.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/aaronej/sage/spkg/build/sagecell-2013-05-20 and type 'make' or 
whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd '/home/aaronej/sage/spkg/build/sagecell-2013-05-20' && 
'/home/aaronej/sage/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.



On Sunday, May 19, 2013 6:03:12 PM UTC-4, Aaron E-J wrote:
>
> I am interested in contributing to the sage cell server and am going 
> through the steps outlined in the readme in the 
> https://github.com/sagemath/sagecell#id1";>github page. When I get to step 
> #5, I get the following error message that is detailed below. I am running 
> this on a kubuntu virtual machine (VMWare) but I don't see that should 
> matter. Is there another way to achieve this? Can I just download and unzip 
> the archive? If this is the case, where do I unzip it to? Any insight as to 
> what the issue might be is greatly appreciated, thanks!
>
> aaronej@ubuntu:~/sage/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux$ 
> ./sage -i 
> http://sage.math.washington.edu/home/jason/sagecell-spkg/sagecell-2013-04-05.spkg
> Attempting to download package sagecell-2013-04-05
> >>> Downloading sagecell-2013-04-05.spkg. 
> 
> 
>  
> [...

[sage-support] Re: Get an error message when trying to install sage cell server

2013-05-27 Thread Aaron E-J
Oh, and I have git and uuid-dev so it must be something else

>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: Get an error message when trying to install sage cell server

2013-05-27 Thread Aaron E-J
As a test, I attempted to install a standalone version of ZeroMQ but got 
the following message:
...
  CXXLD  test_timeo
make[1]: Leaving directory `/home/aaronej/Downloads/zeromq-3.2.3/tests'
make[1]: Entering directory `/home/aaronej/Downloads/zeromq-3.2.3'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/aaronej/Downloads/zeromq-3.2.3'
Making install in src
make[1]: Entering directory `/home/aaronej/Downloads/zeromq-3.2.3/src'
make[2]: Entering directory `/home/aaronej/Downloads/zeromq-3.2.3/src'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libzmq.la 
'/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libzmq.so.3.0.0 
/usr/local/lib/libzmq.so.3.0.0
/usr/bin/install: cannot create regular file 
'/usr/local/lib/libzmq.so.3.0.0': Permission denied
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/aaronej/Downloads/zeromq-3.2.3/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/aaronej/Downloads/zeromq-3.2.3/src'
make: *** [install-recursive] Error 1

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: Get an error message when trying to install sage cell server

2013-05-27 Thread Aaron E-J
This seems to have done the trick!  Thanks a lot, I can now go enjoy the 
nice Memorial Day weather without it nagging me :-)

On Monday, May 27, 2013 2:36:47 PM UTC-4, Jason Grout wrote:
>
> On 5/27/13 11:36 AM, Aaron E-J wrote: 
> > So I've finally had a change to get back to working on trying to install 
> > sage sell.I've got everything set, only I'm getting the following error 
> > that makes me think I'm missing a dependency: 
>
>
> I think it's the error that is solved on this ticket for the sage zmq 
> spkg: 
>
> http://trac.sagemath.org/sage_trac/ticket/14518 
>
> Can you try doing 
>
> export LIBZMQ_EXTRA_CXXFLAGS="${LIBZMQ_EXTRA_CXXFLAGS} -Wno-long-long " 
>
> in the shell before installing the sage cell?  If I understand 
> http://travlr.github.io/zmqirclog/101112.html correctly, that should set 
> the correct flag when compiling zeromq. 
>
> Thanks, 
>
> Jason 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: Get an error message when trying to install sage cell server

2013-05-27 Thread Aaron E-J
 

Hmmm... I can't figure out how to set up the SSH settings.  Sorry if this 
sound naïve, but what should I put for the host and username?  This is the 
stack trace when I try to run ../../sage web_server.py :
Traceback (most recent call last):
  File "web_server.py", line 29, in 
import handlers
  File "/home/aaronej/sage/devel/sagecell-main/handlers.py", line 4, in 

import tornado.websocket
  File 
"/home/aaronej/sage/local/lib/python2.7/site-packages/tornado-3.0.1-py2.7.egg/tornado/websocket.py",
 
line 39, in 
from tornado.netutil import Resolver
  File 
"/home/aaronej/sage/local/lib/python2.7/site-packages/tornado-3.0.1-py2.7.egg/tornado/netutil.py",
 
line 25, in 
import ssl
  File "/home/aaronej/sage/local/lib/python/ssl.py", line 60, in 
import _ssl # if we can't import it, let the error propagate
ImportError: No module named _ssl

On Monday, May 27, 2013 3:32:56 PM UTC-4, Aaron E-J wrote:
>
> This seems to have done the trick!  Thanks a lot, I can now go enjoy the 
> nice Memorial Day weather without it nagging me :-)
>
> On Monday, May 27, 2013 2:36:47 PM UTC-4, Jason Grout wrote:
>>
>> On 5/27/13 11:36 AM, Aaron E-J wrote: 
>> > So I've finally had a change to get back to working on trying to 
>> install 
>> > sage sell.I've got everything set, only I'm getting the following error 
>> > that makes me think I'm missing a dependency: 
>>
>>
>> I think it's the error that is solved on this ticket for the sage zmq 
>> spkg: 
>>
>> http://trac.sagemath.org/sage_trac/ticket/14518 
>>
>> Can you try doing 
>>
>> export LIBZMQ_EXTRA_CXXFLAGS="${LIBZMQ_EXTRA_CXXFLAGS} -Wno-long-long " 
>>
>> in the shell before installing the sage cell?  If I understand 
>> http://travlr.github.io/zmqirclog/101112.html correctly, that should set 
>> the correct flag when compiling zeromq. 
>>
>> Thanks, 
>>
>> Jason 
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: Get an error message when trying to install sage cell server

2013-05-29 Thread Aaron E-J
 

So I thought I had ssh installed but apparently not.  The two commands leif 
gave got rid of the ssl.py error but now I am getting a different one:
aaronej@ubuntu:~/sage/devel/sagecell$ ../../sage web_server.py
2013-05-29 16:12:32,114 sagecell:INFO starting tornado web server
Traceback (most recent call last):
  File "web_server.py", line 81, in 
application = SageCellServer()
  File "web_server.py", line 58, in __init__
kernel_timeout=kernel_timeout)
  File "/home/aaronej/sage/devel/sagecell-main/trusted_kernel_manager.py", 
line 43, in __init__
comp_id = self.add_computer(comp)
  File "/home/aaronej/sage/devel/sagecell-main/trusted_kernel_manager.py", 
line 129, in add_computer
client = self._setup_ssh_connection(cfg["host"], cfg["username"])
  File "/home/aaronej/sage/devel/sagecell-main/trusted_kernel_manager.py", 
line 87, in _setup_ssh_connection
ssh_client.connect(host, username=username)
  File 
"/home/aaronej/sage/local/lib/python2.7/site-packages/paramiko-1.10.1-py2.7.egg/paramiko/client.py",
 
line 300, in connect
retry_on_signal(lambda: sock.connect(addr))
  File 
"/home/aaronej/sage/local/lib/python2.7/site-packages/paramiko-1.10.1-py2.7.egg/paramiko/util.py",
 
line 278, in retry_on_signal
return function()
  File 
"/home/aaronej/sage/local/lib/python2.7/site-packages/paramiko-1.10.1-py2.7.egg/paramiko/client.py",
 
line 300, in 
retry_on_signal(lambda: sock.connect(addr))
  File "/home/aaronej/sage/local/lib/python/socket.py", line 226, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 111] Connection refused

Can you tell me if this config will work (modified lines below)?  I'm still 
not sure if I have the correct values.

My thinking is that it has to do with what I'm putting for the username in 
the config.py file.  What should I put?  I've tried "aaronej@localhost", 
localhost and simply "" to no success.  Leaving it as None does not work 
either.

On Monday, May 27, 2013 11:33:08 PM UTC-4, leif wrote:
>
> Aaron E-J wrote: 
> > Hmmm... I can't figure out how to set up the SSH settings.Sorry if this 
> > sound na�ve, but what should I put for the host and username?This is 
> the 
> > stack trace when I try to run ../../sage web_server.py : 
> > 
> > Traceback (most recent call last): 
> >File "web_server.py", line 29, in  
> >  import handlers 
> >File "/home/aaronej/sage/devel/sagecell-main/handlers.py", line 4, in 
> >  
> >  import tornado.websocket 
> >File 
> > 
> "/home/aaronej/sage/local/lib/python2.7/site-packages/tornado-3.0.1-py2.7.egg/tornado/websocket.py",
>  
>
> > line 39, in  
> >  from tornado.netutil import Resolver 
> >File 
> > 
> "/home/aaronej/sage/local/lib/python2.7/site-packages/tornado-3.0.1-py2.7.egg/tornado/netutil.py",
>  
>
> > line 25, in  
> >  import ssl 
> >File "/home/aaronej/sage/local/lib/python/ssl.py", line 60, in 
>  
> >  import _ssl # if we can't import it, let the error 
> > propagate 
> > ImportError: No module named _ssl 
>
> Install OpenSSL and rebuild Python.  I.e., in the VM do: 
>
> $ sudo apt-get install libssl-dev 
>
> $ ./sage -f spkg/standard/python-* 
>
>
> -leif 
>
> -- 
> () The ASCII Ribbon Campaign 
> /\   Help Cure HTML E-Mail 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: Get an error message when trying to install sage cell server

2013-05-29 Thread Aaron E-J
_default_config = {"host": "localhost",
  "username": "aaronej@localhost",
  "python": sage + " -python",
  "location": os.path.dirname(os.path.abspath(__file__)),

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] View dynamic Sage tutorial from local program

2014-03-07 Thread J. R. L.
I'm trying to view the "dynamic" (not static) version of the Sage tutorial from 
my locally started instance of Sage. I'm running version 5.13 on Windows 7 
(through VirtualBox), and whenever I click "Help", I can view the static 
version, but the link for the interactive tutorial only returns a dead page. I 
know I can do this online, but is there a way to access this from my copy of 
Sage? Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] building from source: setuptools says "Function not implemented"

2014-07-15 Thread j . d . cranch


I am attempting to build SAGE 6.2 from source on a cluster running 
Scientific Linux (a Red Hat derivative; kernel 2.6.32-431.1.2.el6.x86_64). 
The CPU was (I'm fairly sure) an AMD Opteron 2218 HE. My build effort 
failed while trying to build setuptools, giving a somewhat taciturn error 
message. I've attached the log file that was generated. The apparently most 
relevant exerpt is:


creating 'dist/setuptools-2.0.1-py2.7.egg' and adding 
'build/bdist.linux-x86_64
/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing setuptools-2.0.1-py2.7.egg
Copying setuptools-2.0.1-py2.7.egg to 
/mnt/fastdata/sm4jdc/sage/sage-6.2/local/
lib/python2.7/site-packages
Adding setuptools 2.0.1 to easy-install.pth file
error: Function not implemented

I have searched the web for this error message and surrounding text, but 
didn't find anything helpful. All advice welcome; I'm only a grunt on the 
machine, but the superuser is friendly and between us we should be able to 
implement any suggestions.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


setuptools-2.0.1.p0.log
Description: Binary data


[sage-support] Re: building from source: setuptools says "Function not implemented"

2014-07-16 Thread j . d . cranch
Thanks for the replies!

I had already had some file system troubles when I tried building on the 
cluster's nfs store. The problem there had to do with "cp -p" not 
preserving permissions. So I was building on the cluster's other network 
file storage, which uses lustre (which I know next to nothing about), and 
had got significantly further by doing so.

As you suggested, I tried building on a node's local disk and then copying 
to NFS. This worked like a charm! I appreciate the help.

On Tuesday, 15 July 2014 23:12:16 UTC+1, Volker Braun wrote:
>
> PPS: Which file system is this on? It might be flock() failing if your 
> cluster fs doesn't support locking. In that case, does building on a local 
> disk work?
>
> On Tuesday, July 15, 2014 4:17:13 PM UTC-4, j.d.c...@sheffield.ac.uk 
> wrote:
>>
>> I am attempting to build SAGE 6.2 from source on a cluster running 
>> Scientific Linux (a Red Hat derivative; kernel 2.6.32-431.1.2.el6.x86_64). 
>> The CPU was (I'm fairly sure) an AMD Opteron 2218 HE. My build effort 
>> failed while trying to build setuptools, giving a somewhat taciturn error 
>> message. I've attached the log file that was generated. The apparently most 
>> relevant exerpt is:
>>
>>
>> creating 'dist/setuptools-2.0.1-py2.7.egg' and adding 
>> 'build/bdist.linux-x86_64
>> /egg' to it
>> removing 'build/bdist.linux-x86_64/egg' (and everything under it)
>> Processing setuptools-2.0.1-py2.7.egg
>> Copying setuptools-2.0.1-py2.7.egg to 
>> /mnt/fastdata/sm4jdc/sage/sage-6.2/local/
>> lib/python2.7/site-packages
>> Adding setuptools 2.0.1 to easy-install.pth file
>> error: Function not implemented
>>
>> I have searched the web for this error message and surrounding text, but 
>> didn't find anything helpful. All advice welcome; I'm only a grunt on the 
>> machine, but the superuser is friendly and between us we should be able to 
>> implement any suggestions.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Sage maa - magic word

2015-01-18 Thread Colin J. Williams


On Friday, 16 January 2015 22:06:03 UTC-5, Jason Grout wrote:
>
> On 1/14/15, 3:21, Dvir Arad wrote: 
> > Hello, 
> > I'm a student at Ariel University. 
> > Ressantly I start learning "SAGE" for my Final Project. 
> > When I try to create An Opened account at "sage maa" I require to answer 
> the question :"what is  themagic word ". 
> > How can I get get/purchase account? 
>
> These days, it's much better to use Sage via SageMathCloud: 
>
 

> https://cloud.sagemath.com.  The MAA Sage servers are outdated at this 
> point. 
>
> Thanks, 
>
> Jason 
>
This is what I am trying to do.  Using Windows 7 AMD64.

My installation fails because it is unable to "make".

A Grade I introduction for Windows would be very helpful.

Any pointers would be appreciated.

Colin W. 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: region_plot with distinct sets

2010-01-19 Thread Stephen J. Barr
Thank you for looking into this.
-stephen

On Tue, Jan 19, 2010 at 6:04 PM, Jason Grout wrote:

> stevejb wrote:
>
>> Hello,
>>
>> I am trying to plot 2 distinct sets on the same region_plot. My code
>> is as follow
>>
>> var('x1 x2')
>> (region_plot( [
>> ( (x2 >= exp(-x1)) or (x2 <= -exp(-x1) )),
>> ],
>> (-4,4), (-4,4), incol='#7f', outcol='#7f7fff',
>> bordercol='black',plot_points=300)
>>
>> ).show(aspect_ratio=1)
>>
>>
>
> The or function here won't do what you want (because it is short circuiting
> and symbolic expressions don't know how to deal with the "or" keyword).  A
> function would be the natural way to deal with this right now, but
> apparently region_plot can't handle python functions.  This is now
> http://trac.sagemath.org/sage_trac/ticket/8004
>
> Thanks,
>
> Jason
>
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>
>
-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] weird inequality bug...

2011-05-31 Thread J. Maurice Rojas
Dear Sage Gurus,

I was playing with Sage and discovered what appears to be a
really weird bug with Sage's checking of inequalities.

In the attached code, I generate some random 2x2 linear equations
with integer coefficients, and I try to find the minimum and maximum
coordinates of the resulting solutions.  However, somehow, the maxima
are computed but the minima are not.

   In particular, when I run the attached code on my machine, I get (random)
values of x[0] and maxx with x[0]<=maxx (as expected). However,
minx and miny always (incorrectly) remain at +Infinity, even though
x[0] is always less than minx!

   I am a newcomer to Sage so I apologize if I've missed something
dumb. But as of this moment, I'm completely stumped as to why my
simple program is behaving so strangely.

   Hope to hear from you soon.

 Best Wishes,

 Maurice

P.S.:  I get this bug when running my program on my lenovo X201s
laptop, running
 Ubuntu LTS 10.04, and Sage Version 4.6.2, Release Date: 2011-02-25 .

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


bug.sage
Description: Binary data


[sage-support] Re: "Inappropriate ioctl for device" when displaying number in Jupyter notebook

2022-07-01 Thread Alex J Best
Indeed that should fix it, in the meantime you can run something like

sage: from sage.typeset.ascii_art import AsciiArt
sage: AsciiArt._terminal_width = lambda x: 80

Before running other commands to fix the problem in a given notebook 

On Friday, July 1, 2022 at 3:40:58 AM UTC+2 John H Palmieri wrote:

> This might be fixed by the change at 
> https://trac.sagemath.org/ticket/33996. That will presumably be merged in 
> the next beta release, since the ticket was just closed two days ago.
>
>
> On Thursday, June 30, 2022 at 11:30:11 AM UTC-7 Richard Stanton wrote:
>
>> I've just installed Sagemath 9.6 (Release Date: 2022-05-15) on my Mac 
>> running macOS 12.4. If I create a new Sagemath Jupyter notebook starting 
>> from Sagemath, everything seems to work fine. However, I'd like to start by 
>> just running "jupyter notebook" at the command line.  When I do this and 
>> create a new notebook, selecting Sagemath 9.6 as the kernel, the kernel 
>> starts up fine and I can run code. However, while `print(2)` correctly 
>> displays the number 2, just typing `2` results in the error message shown 
>> in the title. Any suggestions? Thanks!
>>
>> Here's the full error dump:
>>
>> {{{
>>
>> --
>> OSError   Traceback (most recent call 
>> last)
>> /var/folders/z_/x5g7y7vd6wqd2kzfnmfdqjjhgn/T/ipykernel_14807/1798176506.py
>>  
>> in 
>> > 1 Integer(2)
>>
>> /private/var/tmp/sage-9.6-current/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/IPython/core/displayhook.py
>>  
>> in __call__(self, result)
>> 260 self.start_displayhook()
>> 261 self.write_output_prompt()
>> --> 262 format_dict, md_dict = 
>> self.compute_format_data(result)
>> 263 self.update_user_ns(result)
>> 264 self.fill_exec_result(result)
>>
>> /private/var/tmp/sage-9.6-current/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/IPython/core/displayhook.py
>>  
>> in compute_format_data(self, result)
>> 149 
>> 150 """
>> --> 151 return self.shell.display_formatter.format(result)
>> 152 
>> 153 # This can be set to True by the write_output_prompt method 
>> in a subclass
>>
>> /private/var/tmp/sage-9.6-current/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/repl/display/formatter.py
>>  
>> in format(self, obj, include, exclude)
>> 186 I am repper
>> 187 """
>> --> 188 sage_format, sage_metadata = self.dm.displayhook(obj)
>> 189 assert PLAIN_TEXT in sage_format, 'plain text is always 
>> present'
>> 190 
>>
>> /private/var/tmp/sage-9.6-current/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/repl/rich_output/display_manager.py
>>  
>> in displayhook(self, obj)
>> 825 return
>> 826 self._backend.set_underscore_variable(obj)
>> --> 827 plain_text, rich_output = 
>> self._rich_output_formatter(obj, dict())
>> 828 return self._backend.displayhook(plain_text, rich_output)
>> 829 
>>
>> /private/var/tmp/sage-9.6-current/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/repl/rich_output/display_manager.py
>>  
>> in _rich_output_formatter(self, obj, rich_repr_kwds)
>> 652 plain_text = self._backend.plain_text_formatter(obj, 
>> **rich_repr_kwds)
>> 653 if rich_output is None:
>> --> 654 rich_output = self._preferred_text_formatter(
>> 655 obj, plain_text=plain_text, **rich_repr_kwds)
>> 656 # promote output container types to backend-specific 
>> containers
>>
>> /private/var/tmp/sage-9.6-current/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/repl/rich_output/display_manager.py
>>  
>> in _preferred_text_formatter(self, obj, plain_text, **kwds)
>> 550 return out
>> 551 if want == 'unicode_art' and OutputUnicodeArt in 
>> supported:
>> --> 552 out = self._backend.unicode_art_formatter(obj, **kwds)
>> 553 if type(out) is not OutputUnicodeArt:
>> 554 raise OutputTypeException('backend returned wrong 
>> output type, require UnicodeArt')
>>
>> /private/var/tmp/sage-9.6-current/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/repl/rich_output/backend_base.py
>>  
>> in unicode_art_formatter(self, obj, **kwds)
>> 425 result = unicode_art(obj)
>> 426 from sage.repl.rich_output.output_basic import 
>> OutputUnicodeArt
>> --> 427 return OutputUnicodeArt(str(result))
>> 428 
>> 429 def latex_formatter(self, obj, **kwds):
>>
>> /private/var/tmp/sage-9.6-current/local/var/lib/sage/venv-python3.10.3/lib/python3.10/site-packages/sage/structure/sage_object.pyx
>>  
>> in sage.structure.sage_object.SageObject.__repr_