Re: [sage-support] Re: sage 5.0 rc0

2012-05-07 Thread Keshav Kini
On Mon, May 7, 2012 at 1:01 PM, Johan Grönqvist
 wrote:
> As all tests pass for my wheezy, let me know if there is anything I can do
> to see where we differ. I do have ipython 0.12 (which is 0.11 or newer, and
> I do not get the error.

Hmm. I can't reproduce it on wheezy either.

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
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] Drawing Circle using simple equation of circle

2012-05-07 Thread Priyanka Kapoor
I plotted circle using parametric equation, using circle() function.
But i want to plot x^2+y^2=4
I tried this:
var('x,y')
b=[x^2+y^2==4]
c=plot(b,(x,-2,2),(y,-2,2),color='blue')
c.save('ram.png')

I am getting the following error
TypeError: float() argument must be a string or a number

Can anyone help me. I am new to sage that's why unable to solve errors



-- 
Priyanka Kapoor
http://kapoorpriyanka.in
Linux User Group, Ludhiana

-- 
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


Re: [sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread P Purkayastha


On Monday, May 7, 2012 10:20:49 AM UTC+8, kjetil1001 wrote:
>
> inline:
>
> On Sun, May 6, 2012 at 10:10 PM, P Purkayastha  wrote:
>
>> Do you have some kind of firewall running? The error seems strange:
>> RuntimeError: no available port.
>>
>> Well, this is my private laptop. (used from the university' s network)
>
> I don know of any firewalls I have installed, and I can't imagine how any 
> firewall on the university' s
> network could affect sage running locally on my machine?
>
> Kjetil
>

Do you have iptables and/or shorewall configured and running on your 
laptop?  That is one program that could be preventing sage from opening 
ports. If it is none of the above, then I don't know how to help you.

-- 
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


Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread Priyanka Kapoor
> It looks like you want TeX to do the loop. Try the forloop package:
> http://www.ctan.org/tex-archive/macros/latex/contrib/forloop/
>

How to pass value of list in sageblock to variable used in \forloop




-- 
Priyanka Kapoor
http://kapoorpriyanka.in
Linux User Group, Ludhiana

-- 
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+latex

2012-05-07 Thread David Joyner
I'm not sure what your question is. You might want sagetex?
Google it to see if that answers your question.

In general, such questions are asked on sage-support or sage-edu.
Please consider joinng them!


On Mon, May 7, 2012 at 12:27 AM, arshpreet singh  wrote:
> hello sir, i am a beginner sage user. i have to give a presentation
> about the features of sage to my college students.please help me to
> find a sage application which is using latex .
> i shall be thankful to you for this kindness.
>
> Thanks
> Arshpreet singh
>
> http://arshpreetsingh.wordpress.com/

-- 
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


Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread arshpreet singh
On Mon, May 7, 2012 at 3:12 PM, Priyanka Kapoor
 wrote:
>> It looks like you want TeX to do the loop. Try the forloop package:
>> http://www.ctan.org/tex-archive/macros/latex/contrib/forloop/
>>
>
> How to pass value of list in sageblock to variable used in \forloop
may be it can help http://mathematics.nsetzer.com/latex/latex_for_loop.html

-- 
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


Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread Priyanka Kapoor
>> How to pass value of list in sageblock to variable used in \forloop
> may be it can help http://mathematics.nsetzer.com/latex/latex_for_loop.html

It just tell how to apply forloop.



-- 
Priyanka Kapoor
http://kapoorpriyanka.in
Linux User Group, Ludhiana

-- 
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


Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread arshpreet singh
> It just tell how to apply forloop.
ok . i am waiting for my sage-code to be compiled.it is taking t
long :) after that we solve

-- 
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


Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Hakan Granath
You might want to use implicit_plot instead:

var('x,y')
b = x^2+y^2==4
c = implicit_plot(b,(x,-2,2),(y,-2,2),color='blue')
c.save('ram.png')

/Håkan

-- 
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


Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Priyanka Kapoor
> You might want to use implicit_plot instead:
>
> var('x,y')
> b = x^2+y^2==4
> c = implicit_plot(b,(x,-2,2),(y,-2,2),color='blue')
> c.save('ram.png')
>
It gives the following error
TypeError: 'tuple' object is not callable



-- 
Priyanka Kapoor
http://kapoorpriyanka.in
Linux User Group, Ludhiana

-- 
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


Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Hakan Granath
On Mon, May 7, 2012 at 1:24 PM, Priyanka Kapoor
 wrote:
>> You might want to use implicit_plot instead:
>>
>> var('x,y')
>> b = x^2+y^2==4
>> c = implicit_plot(b,(x,-2,2),(y,-2,2),color='blue')
>> c.save('ram.png')
>>
> It gives the following error
> TypeError: 'tuple' object is not callable

Please note that I wrote

b = x^2+y^2==4

-- 
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: Recognizing real numbers

2012-05-07 Thread Duc Trung Ha
With very kind & generous help of Robert Samal following solution was 
proposed:

bool(x.n() != NaN)

should give out True iff x is a real number. It seems to work:
http://aleph.sagemath.org/?z=eJxLVLBV0DXUNzTSKshU0FYAs4oLi0o0DM0gIgWZcUZAysjUTBNImegbcyUBtSQWJSfnF2sYaXJxFRRl5pUoJOXn52gk6uVpaCoo2ir4JfppIkskIUsAAIR8Hfg%3D

Is this a correct & proper method to recognize real numbers?


On Saturday, April 28, 2012 6:40:55 PM UTC+2, Volker Braun wrote:
>
> The floating point "fields" in Sage (RR or RDF) can represent both 
> infinity and NaN. So you'll have to check separately if this is the case. 
> Note that "x in RR" checks that x can be represented in RR.
>
>
>
> On Saturday, April 28, 2012 7:38:44 AM UTC-4, Duc Trung Ha wrote:
>>
>> Hola,
>>
>> I'm stuck at the problem of determinating whether a given expression is 
>> known to be real number or not.
>>  
>>  
>> 
>>
>> So far, I've been testing this either 
>> with 
>>
>>
>> expr.is_real()   
>>  
>> 
>>
>> or   
>>  
>> 
>>
>> expr in 
>> RR   
>>  
>> 
>>
>> succesfully.
>>
>> Now, if I give Sage this expression of real number:
>> -1/12*pi + 1/12*sqrt(16*pi + pi^2 + 256) + 4/3
>> the following results will occur:
>>
>> http://aleph.sagemath.org/?z=eJxLVLBV0DXUNzTSKshU0FYAs4oLi0o0DM0gIgWZcUZAysjUTBNImegbc3EVFGXmlSgk6mUWxxelJuZoaMKFFDLzFIKCAHCUFik%3D
>>
>> On the other hand, non-real value below:
>> arccos(2)
>> would produce the very same results, though it should give opposite 
>> results for at least 1 test:
>>
>> http://aleph.sagemath.org/?c=a+%3D+arccos%282%29%0A%0Aprint+a.is_real%28%29%0A%0Aprint+a+in+RR
>>
>> Is there any other/standard way to test membership to real numbers?
>>
>> Is this a bug or is it covered somewhere else?
>> Duc Trung Ha
>> Sage Version 4.8, Release Date: 2012-01-20
>> Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
>> Kubuntu 12.04
>>
>

-- 
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: Recognizing real numbers

2012-05-07 Thread Duc Trung Ha
Of course, x.n().is_real() condition needs to be added as in:
http://aleph.sagemath.org/?z=eJxLVLBV0DXUNzTSKshU0FYAs4oLi0o0DM0gIgWZcUZAysjUTBNImegbcyUBtSQWJSfnF2sYaXIlE2GAhpGWpyaqIVwFRZl5JQpJ-fk5Gol6eRqaCoq2Cn6JfgqJeSkKYAG9zOL4otTEHA1NTWTFSeiKk_AoTkZXnIymGAAkrEPy

On Monday, May 7, 2012 1:56:21 PM UTC+2, Duc Trung Ha wrote:
>
> With very kind & generous help of Robert Samal following solution was 
> proposed:
>
> bool(x.n() != NaN)
>
> should give out True iff x is a real number. It seems to work:
>
> http://aleph.sagemath.org/?z=eJxLVLBV0DXUNzTSKshU0FYAs4oLi0o0DM0gIgWZcUZAysjUTBNImegbcyUBtSQWJSfnF2sYaXJxFRRl5pUoJOXn52gk6uVpaCoo2ir4JfppIkskIUsAAIR8Hfg%3D
>
> Is this a correct & proper method to recognize real numbers?
>

-- 
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] sage installation time from source code

2012-05-07 Thread arshpreet singh
i am installing sage from source code and after pressing the make
command the installation is occouring from last 3 hours.please tell me
how much time it will take?
i am using intel dual core 2.7 GHZ with 2GB of DDR2 ram

-- 
Thanks
Arshpreet singh

http://arshpreetsingh.wordpress.com/

-- 
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+latex

2012-05-07 Thread Jason Grout

On 5/7/12 4:56 AM, David Joyner wrote:

I'm not sure what your question is. You might want sagetex?
Google it to see if that answers your question.

In general, such questions are asked on sage-support or sage-edu.
Please consider joinng them!


I was going to suggest exactly the same thing in response to the same 
personal email you sent me.  It would be much better if you posted such 
questions to sage-support, rather than emailing developers personally.


Dan Drake gave a good talk on SageTeX at Sage EduDays3:

http://wiki.sagemath.org/education3

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


[sage-support] Re: sage+latex

2012-05-07 Thread Nathann Cohen

>
> I was going to suggest exactly the same thing in response to the same 
> personal email you sent me.  It would be much better if you posted such 
> questions to sage-support, rather than emailing developers personally. 
>

I received it too -_-

Nathann

-- 
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


Re: [sage-support] sage installation time from source code

2012-05-07 Thread Jan Groenewald
Hi

Probably 5 or 6 hours.

Regards,
Jan


On 7 May 2012 14:31, arshpreet singh  wrote:

> i am installing sage from source code and after pressing the make
> command the installation is occouring from last 3 hours.please tell me
> how much time it will take?
> i am using intel dual core 2.7 GHZ with 2GB of DDR2 ram
>
> --
> Thanks
> Arshpreet singh
>
> http://arshpreetsingh.wordpress.com/
>
> --
> 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
>



-- 
  .~.
  /V\ Jan Groenewald
 /( )\www.aims.ac.za
 ^^-^^

-- 
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


Re: [sage-support] sage installation time from source code

2012-05-07 Thread arshpreet singh
On Mon, May 7, 2012 at 7:27 PM, Jan Groenewald  wrote:
> Hi
>
> Probably 5 or 6 hours.
thanks for reply sir/ :)
why it takes too much time?

-- 
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 5.0 rc0 notebook() not working!

2012-05-07 Thread Keshav Kini
Kjetil brinchmann Halvorsen  writes:
> Notebook() is not working: (I am calling this from within a shell in emacs)

And if you try it from, say, bash? I note that the code gives up trying
to find ports if it receives 10 or more keyboard interrupts - perhaps
something about the input stream from Emacs is confusing it?

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
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


Re: [sage-support] Re: sage 5.0 rc0

2012-05-07 Thread Kjetil brinchmann Halvorsen
see below.

On Mon, May 7, 2012 at 1:01 AM, Johan Grönqvist
wrote:

> 2012-05-07 04:16, Kjetil brinchmann Halvorsen skrev:
>
>
>>Do you use anything that may affect sage's ability to open ports?
>>
>>
>>   My problem with answering is that I don't really know anything about
>> "ports" . I guess that has something to do with networking,
>> but nbothing more! Any hints about books/papers/netplaces to read to
>> learn about "ports"?
>>
>>
> This problem is probably beyond me, but someone else might answer, and you
> have the other thread going on the same problem. I do not expect that the
> text below will solve your problem, but perhaps it helps you understand the
> error message better:
>
>
> My (possibly incorrect) intuition about ports:
>
> We have networking and we need a way to organize the programs that want to
> connect to the network. Let's imagine that the network card has 2^16
> different "connection points" that the programs can connect to, and let's
> call them ports. When a program connects to another (on the same or a
> different machine), it needs to communicate with a port, and the responding
> program needs to "listen" to that port. As an example, my web server
> listens to incoming requests from others, and it does so on port 80. Thus
> if you want to see on of the web pages it serves, you send a request to
> that computer, and send it to port 80 on that computer. This also works for
> local networking, it does not matter if the request to port 80 came from
> the outside or from another program running on the same machine.
>
> The sage notebook runs in a web server, and you connect to it locally (or
> remotely if the notebook is configured to respond to requests from other
> machines, which it is probably not, for security purposes.
>
> You can see some info about open ports by running "netstat -t -p". My sage
> notebook runs on port 8000.
>

Here is my output from sudo netstat -t -p

kjetil@kjetil:~$ sudo netstat -t -p
[sudo] password for kjetil:
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address   Foreign Address
State   PID/Program name
tcp0  0 kjetil:38929mia04s04-in-f9.1e:https
ESTABLISHED 4994/firefox-bin
tcp0  0 kjetil:38531ec2-75-101-130-133:http
TIME_WAIT   -
tcp0  0 kjetil:36936mia05s08-in-f11.1:https
ESTABLISHED 4994/firefox-bin
tcp0  0 kjetil:45665mia04s04-in-f3.1e:https
TIME_WAIT   -
tcp0  0 kjetil:53141yh-in-f105.1e100.:https
ESTABLISHED 4994/firefox-bin
tcp0  0 kjetil:35941mia04s04-in-f21.1:https
ESTABLISHED 4994/firefox-bin
tcp0  0 kjetil:46639pc-178-224-45-190:https
ESTABLISHED 4881/skype
tcp0  0 kjetil:48800mia04s04-in-f5.1e:https
TIME_WAIT   -
tcp0  0 kjetil:38928mia04s04-in-f9.1e:https
ESTABLISHED 4994/firefox-bin
tcp0  0 kjetil:53132yh-in-f105.1e100.:https
TIME_WAIT   -
tcp0  0 kjetil:57393157.55.235.148:https
ESTABLISHED 4881/skype
tcp0  0 kjetil:38530ec2-75-101-130-133:http
TIME_WAIT   -
tcp0  0 kjetil:44755pc-78-210-83-200.:https
ESTABLISHED 4881/skype
tcp0  0 kjetil:52682TGV.ANYCAST-FO.CHI:http
ESTABLISHED 4994/firefox-bin
tcp0  0 kjetil:45666mia04s04-in-f3.1e:https
TIME_WAIT   -
tcp0  0 kjetil:35912mia04s04-in-f21.1:https
ESTABLISHED 4994/firefox-bin
kjetil@kjetil:~$


Kjetil




>
>
> One example output line of the netstat command is
>
> tcp 0 0 johan-laptop.loca:3 87.117.201.130:ircd ESTABLISHED
> 28025/xchat-gnome
>
> Saying that I have a tcp port open (there are two kinds, tcp and udp and
> sage uses tcp), from my local machine, port 3 to 87.117.201.130 port
> ircd (I assume this indicated the standard port for an irc client) and the
> port was opened by the program xchat-gnome.
>
> The wikipedia page is at  Port_%28computer_networking%29
> **>
>
>
>
>  kjetil@kjetil:~/sage/sage-5.0.**rc0$ ./sage --ipython
>> WARNING: Configuration file ipythonrc not found. Ignoring request.
>> --**--
>> Traceback (most recent call last):
>>   File
>> "/home/kjetil/sage/sage-5.0.**rc0/local/lib/python2.7/site-**
>> packages/IPython/ConfigLoader.**py",
>> line 66, in load
>> fname = filefind(fname,incpath)
>>   File
>> "/home/kjetil/sage/sage-5.0.**rc0/local/lib/python2.7/site-**
>> packages/IPython/genutils.py",
>> line 554, in filefind
>> ' not found in current or supplied directories:' + `alt_dirs`
>> IOError: File'ipythonrc' not found in current or supplied
>> directories:u'/home/kjetil/.**ipython'
>>
>> WARNING: Problems loading configuration file 'ipythonrc'
>> Starting with default -bare bon

Re: [sage-support] sage installation time from source code

2012-05-07 Thread Jan Groenewald
Hi

On 7 May 2012 16:10, arshpreet singh  wrote:

> On Mon, May 7, 2012 at 7:27 PM, Jan Groenewald  wrote:
> > Hi
> >
> > Probably 5 or 6 hours.
> thanks for reply sir/ :)
> why it takes too much time?
>

It is compiling many packages -- the components of sage, e.g. python,
maxima,
singular, atlas, etc.

http://sagemath.org/packages/standard/

This is a normal compilation time.

Regards,
Jan


-- 
  .~.
  /V\ Jan Groenewald
 /( )\www.aims.ac.za
 ^^-^^

-- 
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


Re: [sage-support] Re: sage 5.0 rc0

2012-05-07 Thread Keshav Kini
On Mon, May 7, 2012 at 1:01 PM, Johan Grönqvist
 wrote:
> This also works for local
> networking, it does not matter if the request to port 80 came from the
> outside or from another program running on the same machine.

Well, this is not strictly true. It is only true if the server is
listening on port 80 on interface 0.0.0.0. If it is listening on
interface 127.0.0.1 then it will only accept local connections; if it
is listening on any other interface x.y.z.w then it will only accept
connections addressed to recipient "x.y.z.w".

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
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


Re: [sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread Kjetil brinchmann Halvorsen
see inline.

On Mon, May 7, 2012 at 10:41 AM, Keshav Kini  wrote:

> Kjetil brinchmann Halvorsen  writes:
> > Notebook() is not working: (I am calling this from within a shell in
> emacs)
>
> And if you try it from, say, bash? I note that the code gives up trying
> to find ports if it receives 10 or more keyboard interrupts - perhaps
> something about the input stream from Emacs is confusing it?
>

Trying from a terminal emulator:

sage: notebook()
The notebook files are stored in: sage_notebook.sagenb
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (114, 0))

---
RuntimeError  Traceback (most recent call last)

/home/kjetil/.sage/ in ()

/home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/notebook/notebook_object.pyc
in __call__(self, *args, **kwds)
215 """
216 def __call__(self, *args, **kwds):
--> 217 return self.notebook(*args, **kwds)
218
219 notebook = run_notebook.notebook_twisted

/home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/notebook/run_notebook.pyc
in notebook_twisted(self, directory, port, interface, address, port_tries,
secure, reset, accounts, require_login, server_pool, ulimit, timeout,
open_viewer, sagetex_path, start_path, fork, quiet, subnets)
441 print "*" * 70
442
--> 443 port = find_next_available_port(interface, port, port_tries)
444 if open_viewer:
445 "Open viewer automatically isn't fully implemented.  You
have to manually open your web browser to the above URL."

/home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/misc/misc.pyc in
find_next_available_port(interface, start, max_tries, verbose)
132 print "Port %s is already in use."%port
133 print "Trying next port..."
--> 134 raise RuntimeError, "no available port."
135
136

RuntimeError: no available port.
sage:

That is, the same problem. Kjetil



>
> -Keshav
>
> 
> Join us in #sagemath on irc.freenode.net !
>
> --
> 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
>



-- 
"If you want a picture of the future - imagine a boot stamping on the human
face - forever."

George Orwell (1984)

-- 
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


Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Priyanka Kapoor
> Please note that I wrote
>
> b = x^2+y^2==4

I got a plot.thank you.  Sir , can't we draw it using plot() function.


-- 
Priyanka Kapoor
http://kapoorpriyanka.in
Linux User Group, Ludhiana

-- 
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: Drawing Circle using simple equation of circle

2012-05-07 Thread Jason Grout

On 5/7/12 10:27 AM, Priyanka Kapoor wrote:

Please note that I wrote

b = x^2+y^2==4


I got a plot.thank you.  Sir , can't we draw it using plot() function.


No, because it's not a y=... function.

If all you want is a circle, you can also use the circle function:

circle((0,0), 4)

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


[sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread Keshav Kini
Kjetil brinchmann Halvorsen  writes:
> ¿Why so many open ports? For the moments, the only programs I have running is
> firefox, synaptic, skype and a terminal emulator!

The second portion (where the lines start with "unix") represent
inter-process communication sockets, not network sockets, if that's what
you were thinking. I don't think the amount of network sockets you have
open is excessively many...

Anyway there's certainly enough ports for the notebook to use, from what
I can see. Something else must be going on.

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
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 5.0 rc0 notebook() not working!

2012-05-07 Thread Keshav Kini
Kjetil brinchmann Halvorsen  writes:
> That is, the same problem. Kjetil

Hmm. Well, I know this is a sort of asking a lot of you, but would you
try using the rewritten notebook version at trac ticket #11080 (
http://trac.sagemath.org/sage_trac/ticket/11080 ) and see if that works?
Hopefully it will go into Sage soon - we're thinking in 5.1 - and we are
no longer maintaining the old notebook code (and haven't for about a
year and a half (!) now).

Of course, if we find a bug in the old notebook code we can always try
to port it to the new notebook, but in many cases that bug might not
even exist in the new notebook, so if installing the new notebook makes
your problem go away then that would be the best outcome...

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
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


Re: [sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread Kjetil brinchmann Halvorsen
see inline.

On Mon, May 7, 2012 at 1:17 PM, Keshav Kini  wrote:

> Kjetil brinchmann Halvorsen  writes:
> > That is, the same problem. Kjetil
>
> Hmm. Well, I know this is a sort of asking a lot of you, but would you
> try using the rewritten notebook version at trac ticket #11080 (
> http://trac.sagemath.org/sage_trac/ticket/11080 ) and see if that works?
> Hopefully it will go into Sage soon - we're thinking in 5.1 - and we are
>

I will try, but since I have not done this sort of things with sage before,
¿How to do it? It is as simple as drop-in repacing one (or a few files) All
the files have the same name(s) as corresonding old files, so now change to
the Makefile is necessary?

Kjetil


> no longer maintaining the old notebook code (and haven't for about a
> year and a half (!) now).
>
> Of course, if we find a bug in the old notebook code we can always try
> to port it to the new notebook, but in many cases that bug might not
> even exist in the new notebook, so if installing the new notebook makes
> your problem go away then that would be the best outcome...
>
> -Keshav
>
> 
> Join us in #sagemath on irc.freenode.net !
>
> --
> 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
>



-- 
"If you want a picture of the future - imagine a boot stamping on the human
face - forever."

George Orwell (1984)

-- 
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] ./sage -docbuild ?

2012-05-07 Thread Kjetil brinchmann Halvorsen
doing:

kjetil@kjetil:~/sage/sage-5.0.rc0$ ./sage -docbuild reference pdf
sphinx-build -b latex -d
/home/kjetil/sage/sage-5.0.rc0/devel/sage/doc/output/doctrees/en/reference
   /home/kjetil/sage/sage-5.0.rc0/devel/sage/doc/en/reference
/home/kjetil/sage/sage-5.0.rc0/devel/sage/doc/output/latex/en/reference
Running Sphinx v1.1.2
loading pickled environment... done


.
.
terminates with:

(./reference.tex
LaTeX2e <2011/06/27>
Babel  and hyphenation patterns for english, dumylang, nohyphenation, us
englishmax, ukenglish, nynorsk, bokmal, galician, catalan, spanish, loaded.
(./sphinxmanual.cls
Document Class: sphinxmanual 2009/06/02 Document class (Sphinx manual)
(/usr/share/texlive/texmf-dist/tex/latex/base/report.cls
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty

! LaTeX Error: File `utf8x.def' not found.

Type X to quit or  to proceed,
or enter new name. (Default extension: def)

Enter file name:
! Emergency stop.


l.131 \endinput
   ^^M
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on reference.log.
make: *** [reference.pdf] Error 1
Build finished.  The built documents can be found in
/home/kjetil/sage/sage-5.0.rc0/devel/sage/doc/output/pdf/en/reference


???


Kjetil

--
"If you want a picture of the future - imagine a boot stamping on the
human face - forever."

George Orwell (1984)

-- 
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 -docbuild ?

2012-05-07 Thread Johan Grönqvist

2012-05-07 22:28, Kjetil brinchmann Halvorsen skrev:

kjetil@kjetil:~/sage/sage-5.0.rc0$ ./sage -docbuild reference pdf
[...]
! LaTeX Error: File `utf8x.def' not found.
[...]
!  ==>  Fatal error occurred, no output PDF file produced!



That command works on my wheezy, but I do not have that file in my 
sage-directory, so I expect it uses my system-installation to get it. Do 
you have the debian package texlive-latex-extra installed?


(The package texlive-latex-extra contains a file named utf8x.def, as can 
be seen by, e.g., searching on .)


Regards

Johan

--
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] Still no way to use interact in published notebooks?

2012-05-07 Thread allycat
Hello,

I have spent the past few days trying to figure out the best way to make an 
interactive web application related to some computational biology calculations. 
It seems like Sage could be a great way to do this: the code could easily be 
written in Sage and @interact could be used to create the desired parameter 
input from the user. However, I need a way to allow the public to interact with 
such a program. I thought that since Sage worksheets can be published, this 
would be easy. However, it seems like @interact does not work in published 
worksheets! There are some threads on this from a few years ago. Has this issue 
been solved since then? If not, does anyone know any work-arounds or other ways 
to create applet like functionality from Sage?

In a previous thread user "William" mentioned he was working on this (see 
excerpt below)..any progress?

  (2) I am hiring somebody (thanks to NSF funding) right now to create
a system for using @interact completely outside of the Sage notebook.
 I.e., you'll be able to just include them directly into your own
static html pages on your web page, but all actual computations to
make the interacts work will secretly behind the scenes use your
sagenb.org account and be done on sagenb.org. I can't guarantee
this project will succeed, but if it does, then it will nicely solve
your problem (and my problems too).

Thanks so much! All solutions appreciated, even those that don't involve Sage. 
I wanted to avoid learning Java or Javascript to do this. 

Thanks

Alison

-- 
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


Re: [sage-support] Still no way to use interact in published notebooks?

2012-05-07 Thread Dan Drake
On Mon, 07 May 2012 at 09:54PM -0700, allycat wrote:
> I have spent the past few days trying to figure out the best way to
> make an interactive web application related to some computational
> biology calculations. It seems like Sage could be a great way to do
> this: the code could easily be written in Sage and @interact could be
> used to create the desired parameter input from the user. However, I
> need a way to allow the public to interact with such a program. I
> thought that since Sage worksheets can be published, this would be
> easy. However, it seems like @interact does not work in published
> worksheets! There are some threads on this from a few years ago. Has
> this issue been solved since then? If not, does anyone know any
> work-arounds or other ways to create applet like functionality from
> Sage?

Try the Sage cell server: aleph.sagemath.org. 

>  (2) I am hiring somebody (thanks to NSF funding) right now to create
> a system for using @interact completely outside of the Sage notebook.

I think Jason Grout and his students beat you to that. :)

Dan

--
---  Dan Drake
-  http://mathsci.kaist.ac.kr/~drake
---


signature.asc
Description: Digital signature


[sage-support] Re: Still no way to use interact in published notebooks?

2012-05-07 Thread Jason Grout

On 5/7/12 11:54 PM, allycat wrote:

Hello,

I have spent the past few days trying to figure out the best way to
make an interactive web application related to some computational
biology calculations. It seems like Sage could be a great way to do
this: the code could easily be written in Sage and @interact could be
used to create the desired parameter input from the user. However, I
need a way to allow the public to interact with such a program. I
thought that since Sage worksheets can be published, this would be
easy. However, it seems like @interact does not work in published
worksheets! There are some threads on this from a few years ago. Has
this issue been solved since then? If not, does anyone know any
work-arounds or other ways to create applet like functionality from
Sage?


The do work (experimentally), but they are turned off because there are 
some serious scalability issues that are not addressed yet.


If I were you, I'd embed them into a webpage using the Sage cell server: 
aleph.sagemath.org.  See 
http://sage.math.washington.edu/home/jason/sagecell/embedding.html for 
an example of how to create a webpage with interacts embedded in it.





In a previous thread user "William" mentioned he was working on this
(see excerpt below)..any progress?


Just FYI, "William" is the guy who created Sage :).

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


[sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread Keshav Kini
Kjetil brinchmann Halvorsen  writes:
> I will try, but since I have not done this sort of things with sage before,
> ¿How to do it? It is as simple as drop-in repacing one (or a few files) All 
> the
> files have the same name(s) as corresonding old files, so now change to the
> Makefile is necessary?

Well, if you go to the ticket page I linked, you will see there is a
list of commands you can paste into a terminal to do all the setup for
you. Basically it amounts to applying a bunch of patches to Sage and
installing a couple of SPKGs.

(If you are not yet aware of it, larger parts of Sage such as bundled
applications, or for example the notebook, are distributed as .spkg
files, which are basically a tarball with an installer script inside.
See the Sage developers' guide for more info - it's in the docs.)

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
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 -docbuild ?

2012-05-07 Thread Keshav Kini
Johan Grönqvist  writes:
> (The package texlive-latex-extra contains a file named utf8x.def, as
> can be seen by, e.g., searching on .)

By the way, a faster way to find out what package created / "owns" a
file on Debian is to use the `apt-file` utility, which caches this
information locally for instant lookups.

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
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