Re: [sage-support] init_printing from sympy is no longer working in SageCell

2022-02-02 Thread Andrey Novoseltsev
On Wednesday, 2 February 2022 at 14:35:35 UTC-7 dsfitz...@gmail.com wrote:

> Thanks! I just discovered that there is a separate group for Sage Cell.
> Oddly, the SageCell page links here for help! Apologies for not posting 
> there first.
>

This is on purpose - most questions people have are about Sage itself and 
they will get much better and faster help 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/b78b0e94-2023-489b-8d76-fb595a3077e7n%40googlegroups.com.


Re: [sage-support] init_printing from sympy is no longer working in SageCell

2022-02-02 Thread Andrey Novoseltsev
This is due to recent upgrade to Sage 9.5. I will try to have it fixed in a 
few hours or revert to 9.4 until I figure out the fix.

On Wednesday, 2 February 2022 at 12:28:11 UTC-7 dsfitz...@gmail.com wrote:

> Here is an example with Sage cells in context:
> https://opentext.uleth.ca/Math3410/sec-kernel-image.html#p-283-part2
>
> If I remove the init_printing() line, or change this to 
> init_printing(use_latex=False), the code will run, but I lose the 
> MathJax-formatted output.
>
> I can't tell if this is a bug in the init_printing() function (to my 
> knowledge, there is no recent update to Sympy -- I upgraded my local Python 
> installation and everything is still working) or if something is going 
> wrong with Sage Cell trying to process the output.
>
> On Wednesday, February 2, 2022 at 12:09:52 PM UTC-7 Sean Fitzpatrick wrote:
>
>> This is in SageMathCell, rather than in a local installation of Sage. I 
>> don't think there's much I can do about what is running on here.
>> [image: sagecell.png]
>>
>> On Wednesday, February 2, 2022 at 11:39:40 AM UTC-7 HG wrote:
>>
>>>  I tried it in sage 9.2 nice printing.
>>>
>>> But in sage I use show(LatexExpr("r \mu \epsilon))
>>>
>>> μϵ
>>>
>>> I am not sure that what you want (and naturaly first command in cell 
>>> %display latexin sage)
>>>
>>> One can even format text in a beautifull latex 
>>>
>>> show(LatexExpr(r"This \ is \ \mu \ and \ \epsilon"))
>>>
>>> This is μ and ϵ 
>>>
>>> best
>>>  Best
>>>
>>> Henri
>>> Le 02/02/2022 à 18:38, Sean Fitzpatrick a écrit :
>>>
>>> I'm teaching a linear algebra course where we use the Sympy Python 
>>> package for a lot of the computations. This includes a PreTeXt textbook 
>>> where there are Sage Cells throughout, with sample code supplied. 
>>>
>>> Until today (I think it was working yesterday), I've had no trouble 
>>> running code like the following:
>>>
>>> from sympy import Matrix, init_printing
>>> init_printing()
>>> A = Matrix([[1,2,3,4],[5,6,7,8],[9,0,1,2]])
>>> display(A.rref())
>>>
>>> The init_printing function from Sympy renders the output in MathJax 
>>> rather than pretty-printed plain text, which is nice for teaching. I can 
>>> run this with the language set to either Sage or Python. (the 'display' 
>>> command is only needed for Python, which is funny, because it is not needed 
>>> in Jupyter with a Python kernel.)
>>>
>>> Right now this code throws about 50 lines of error messages; the main 
>>> error is a Type Error:
>>>
>>> TypeError: Object of type  with value of '(a very, very 
>>> long string that I won't reproduce here)' is not JSON serializable
>>>
>>> Was there a change made today that would cause this error? Maybe in the 
>>> Sympy library? If I remove the init_printing() line, everything works, 
>>> except that there's no longer nice display for the output.
>>>
>>> The reason for using Python syntax is that we also do labs in Jupyter 
>>> notebooks. Our institution has a Jupyter hub with Python and R kernels, but 
>>> no Sage kernel. (We do not have a CoCalc subscription.)
>>>
>>> I know there is a Sage equivalent to init_printing (although I forget 
>>> what it is) but that won't work on the Jupyter side.
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/0262ca41-4a74-467b-8f46-0af9ad6c4df1n%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/0e36f0b7-1114-4031-9a54-0f6527c4ee02n%40googlegroups.com.


[sage-support] Re: Did something change to break Sage interactives using sagecell.sagemath.org recently?

2020-07-12 Thread Andrey Novoseltsev
Thanks for the report, while fixing other issues at 
6612cabb355699638b033567fc1cb1cdf7a7c43a 
I've broken "default route", fixed by 
https://github.com/sagemath/sagecell/commit/55ad44ca08113b078c77850b65cc20a2ad0767b0
 
and deployed!

On Saturday, 11 July 2020 09:10:02 UTC-6, Christian Seberino wrote:
>
>
> I have some simple Sage interactives that used to work but I recently 
> tried them and they don't anymore.
> I tried creating other toy examples and they also don't work.
>
> https://seberino.pythonanywhere.com/static/electric_force.html
>
> Did something change recently like the URL should use for 
> sagecell.sagemath.org?
>
> Thanks,
>
> Chris
>

-- 
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/61ff69c9-5b25-4db2-b945-7eb7f0088338o%40googlegroups.com.


[sage-support] Re: How can I increase the loading time in sagecell?

2020-05-12 Thread Andrey Novoseltsev
Configuration is discussed here: 
https://github.com/sagemath/sagecell#configuration if the problem is with 
CPU time limit, you can increase it from the default 2 minutes.

-- 
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/e8b95713-e9e8-4351-b34a-d2e74447ee0a%40googlegroups.com.


Re: [sage-support] simple desolve_tides_mpfr crash, even for SageMath Cell Server

2020-04-17 Thread Andrey Novoseltsev
tides is now available on SageMathCell as well!

https://sagecell.sagemath.org/?q=ofpfet

-- 
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/7c10036d-5635-4e5b-9425-922411a9f0db%40googlegroups.com.


[sage-support] Re: [sage-cell] Where Oh Where is my Divide By Zero Error?

2018-03-16 Thread Andrey Novoseltsev
On Fri, Mar 16, 2018 at 4:18 PM, Jorge Garcia  wrote:
> Dear Hive Mind:
>
> Why is there no Divide By Zero Error here:
> http://sagecell.sagemath.org/?z=eJwljkELgkAUhO-C_2GiAtek1kuX2Eu4pBc3NjEqCqQ2E-QlpvX3cwuGd5jHzDdjZHGyw6BUZdgoFQXYx1JLa2WxRJTkSSSxPuAotYLUWumR64zRcDEJOecBtFhOA3QitHZpyLRFZ1BR03fDvdb9raISJLjrpKItqDReyNnq9Xh-vJTZkHkXdW9DjUcMvu__F2SIlNxhk-Tyt-UHH76usxUny_a9cMbnfLkgdiHcny1oICI9_8u37AuZcDtw=sage
>
> But there is a Divide By Zero Error here (as expected):
> http://sagecell.sagemath.org/?z=eJwlj0FLw0AQhe-B_IcnVcimQTeXXmQPtRnsXrJhG6q2WAh2GwtlGmKif9_dBoY5zJvvzZsZ6rXewNerMUWGNwK9V7SqsUSht7ogvHxgR9aArDX2Lo5m6KS6z6WUGaxaPGQYVB5HXcJChWma5HP5KBdPLA78_PN9_UuCJgLZOnZ9MzicuRsH378u4_HMLVjJOCpV33DrklyKiStvkPttLmOAgg3SNF2TJegahSGfW2_JP0FTPq_GUaX2t9XTtQf7Iyg_J79K_AMYbUA7=sage
>
> Can someone please explain this to me? This came up in class and I was
> looking for a "teachable moment" asking the students to fix the Divide By
> Zero Error like this:
> http://sagecell.sagemath.org/?z=eJwljkFrg0AUhO-C_2GKKbhW0t1LLmUvwddmLxq2EtKWBKTZWkGeYjX5-3XjbXgz37yJkJmDyQjbD3ySLUDWFhav5kjZQxhE6KVeKSllCqs3jylGrcKgj1lof01i9STXcvPM4swvf7_dLfae8GTt2A3V6NBwP43Ii3JW3-10abgGaxkGuR4qrl2sUiXFQud31F2rdvKoL0OSJDuyBFMiK-gdb-ZAKHe0bJ3dMNjrr3v0pxvA8xvkp6VvL_4B6uc8qg===sage
>
> Thanx,
> AJG

Someone probably can, but perhaps not on this list: it has something
to do with 0^0 evaluating to 1 and I recall some earlier discussions
about it. Forwarding to sage-support.

-- 
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] Fwd: Bug report-Sage

2018-02-11 Thread Andrey Novoseltsev
Hello,

I got this bug report and it seems that I have seen something similar
in the past but can't find it. Is it already known/tracked?

Thank you,
Andrey

-- Forwarded message --
Dear Professor Novoseltsev,

I'm writing to report what I believe to be a bug. Please see the permanent link
http://sagecell.sagemath.org/?z=eJwrzsgv18jMK0lNL0rM0UhMKtYozszTKMjUqtDU1FGo0FEw0FEw1NTk5SrIyS_BkAdLAgDjjxPR=sage

with the code

show(integral(abs(sin(pi*x)), x, 0, 1))
plot(abs(sin(pi*x)), 0, 1)

The value of the integral is incorrectly returned as 0. (As expected,
numerical integration has no issue handling this function.)

-- 
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: Possible bug with surfaces opacity in threejs

2017-10-19 Thread Andrey Novoseltsev
No, rather in threejs only one of overlapping triangles is shown and it is 
the one whose center is closer or something like this. And show/not show is 
binary without taking transparency into account. I think this is where Paul 
was explaining some details: 
https://trac.sagemath.org/ticket/22123#comment:9

-- 
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: Possible bug with surfaces opacity in threejs

2017-10-16 Thread Andrey Novoseltsev
It is known - I have complained several times over the years, but my 
understanding is that solving this is difficult. It has to do with the 
algorithm that throws away triangles as invisible, and when the surface is 
simple like a plain and contains few triangles, you see this behaviour. It 
can be solved in each particular case by subdividing surfaces, but 
something generic and automatic will be trickier. Paul Masson who wrote the 
current implementation may say more perhaps.

-- 
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: Plotting with R in A Sage Cell

2017-08-20 Thread Andrey Novoseltsev
On Sunday, 6 August 2017 22:58:20 UTC-6, Andrey Novoseltsev wrote:
>
> The next problem is that if a linked cell does not create a new plot, then 
> the old one will be shown again - since the file is still there.
>

This problem also seems to be solved, please report if you discover any new 
issues! 

-- 
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: Plotting with R in A Sage Cell

2017-08-06 Thread Andrey Novoseltsev
Now http://faculty.sfasu.edu/judsontw/math-s304/section-16.html works fine 
for me - I don't enforce permission on user files except for group readable 
(otherwise the web server will not be able to serve them) and there is a 
timestamp added to the name to force browser to load a new version.

The next problem is that if a linked cell does not create a new plot, then 
the old one will be shown again - since the file is still there.

-- 
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: Plotting with R in A Sage Cell

2017-08-06 Thread Andrey Novoseltsev
There is one problem after another... The line I've mentioned earlier
https://github.com/sagemath/sagecell/blob/master/js/session.js#L327
saves and shows the default R plots whose names start with Rplot. This 
causes read only permissions on files via
https://github.com/sagemath/sagecell/blob/master/backend_cell.py#L65
so when R tries to create a new plotting device with the same name it 
fails. I don't recall reasons for read only but I am pretty sure that's how 
Volker's display backend system is supposed to function. I have tried to 
make the file writeable, in which case errors go away, but the same plot 
gets displayed again and again because it has the same name. Recently user 
files were prevented from caching, but it does not help here - displaying 
the same image on the same page does not generate a network request at all, 
rather the old copy is shown again.

Any ideas on how to fix it? Or how to describe the situation for a search 
engine?

-- 
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: Plotting with R in A Sage Cell

2017-07-20 Thread Andrey Novoseltsev
On Thursday, 20 July 2017 04:24:50 UTC-6, Thomas Judson wrote:
>
> I am pretty sure that this is an R problem that occurs because of linked 
> cells.  Look at 
> http://faculty.sfasu.edu/judsontw/math-s304/section-16.html.  The first 
> plot works fine, but somehow I need to clear the previous graphics when I 
> create a new plot.  I have tried dev.off() and graphics.off(), but neither 
> works.  Any ideas?
>

OK, thanks a lot for the full example, I think this is the reason:
https://github.com/sagemath/sagecell/blob/master/js/session.js#L327
R-cells have device.off() added automatically so that plotting commands 
that were given by users will all flush to a file that will be 
automatically displayed. Because R has these "live plots" that you can add 
stuff to, dealing with them in SageMathCell is a bit tricky. Not sure what 
is the best solution - perhaps in addition to "closing" commands I should 
add commands to initialize a new plot so that it is ready for the next cell 
if it exists?
 

>
> On Thursday, July 20, 2017 at 12:53:35 AM UTC+2, Andrey Novoseltsev wrote:
>>
>> On Wednesday, 19 July 2017 05:23:00 UTC-6, Thomas Judson wrote:
>>>
>>> The following code works in CoCalc
>>>
>>> cases <- c(36, 531, 4233, 8682, 7164, 2229, 600, 164, 57, 722, 1517, 
>>> 1828, 1539, 2416, 3148, 3465, 1440)
>>> deaths <- c(0, 0, 130, 552, 738, 414, 198, 90, 56, 50, 71, 137, 178, 
>>> 194, 290, 310, 149) 
>>> plot(ts(cases), col="red", main="Influenza Epidemic")
>>> lines(ts(10*deaths),col="blue”)
>>>
>>> However, I get the following error when I try to plot this in a Sage cell
>>>
>>> Error in plot.new() : cairo error 'error while writing to output stream'
>>> Error in plot.xy(xy.coords(x, y), type = type, ...) : 
>>>   plot.new has not been called yet
>>>
>>>
>>> I may or may not get the plot.
>>>
>>>
>>> Other R plots seem to work in the Sage cells.  Any ideas?
>>>
>>>
>>> Tom
>>>
>>>
>>>
>> I've tried it ten times or so and got the plot with no errors every time. 
>> Can you reproduce it in your setup reliably? I don't have any clue what can 
>> be wrong here that it works sometimes but not always...
>>
>

-- 
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: Plotting with R in A Sage Cell

2017-07-19 Thread Andrey Novoseltsev
On Wednesday, 19 July 2017 05:23:00 UTC-6, Thomas Judson wrote:
>
> The following code works in CoCalc
>
> cases <- c(36, 531, 4233, 8682, 7164, 2229, 600, 164, 57, 722, 1517, 1828, 
> 1539, 2416, 3148, 3465, 1440)
> deaths <- c(0, 0, 130, 552, 738, 414, 198, 90, 56, 50, 71, 137, 178, 194, 
> 290, 310, 149) 
> plot(ts(cases), col="red", main="Influenza Epidemic")
> lines(ts(10*deaths),col="blue”)
>
> However, I get the following error when I try to plot this in a Sage cell
>
> Error in plot.new() : cairo error 'error while writing to output stream'
> Error in plot.xy(xy.coords(x, y), type = type, ...) : 
>   plot.new has not been called yet
>
>
> I may or may not get the plot.
>
>
> Other R plots seem to work in the Sage cells.  Any ideas?
>
>
> Tom
>
>
>
I've tried it ten times or so and got the plot with no errors every time. 
Can you reproduce it in your setup reliably? I don't have any clue what can 
be wrong here that it works sometimes but not always...

-- 
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] Fwd: Problem with an integral

2017-04-08 Thread Andrey Novoseltsev
As reported,

var('r')
assume(r>0)
integrate(r * sqrt( (2*r*cos(x)/sqrt(3))^2 + ( 2/3 + 4*r*sin(x)/3 )^2 ), x)

gives

-1/12*(2*r*x - r*sin(2*x))*r

which is indeed incorrect. Is the root cause known?


-- Forwarded message --
Dear Mr Andrey Novoseltsev,



I am writing you to report a problem that I have encountered  while
computing a one variable integral with Sage. I attach a document with
the result that Sage produces for the indefinite integral. This
happens to be wrong, as can easily be proved by comparing the
derivative of the result with the function to be integrated (the
difference is not constant).



Sorry, I cannot provide any hint on how to fix this. It is not an
important issue for me anymore, since I have worked around my problem
and have solved it an a different way. I am reporting it for your
records, in case you find it interesting to know.

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


Indefinite_integral.pdf
Description: Adobe PDF document


[sage-support] Re: Android app problem

2017-04-03 Thread Andrey Novoseltsev
When I ask on mailing lists to test this app there is usually no
response, I am also unclear who is maintaining this project. So I am
of the opinion that it should be just removed from the store, but have
no idea who can do it.

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

2017-02-28 Thread Andrey Novoseltsev
No idea, but perhaps sage-support will help!

On Tuesday, 28 February 2017 03:39:22 UTC-7, Ingo Dahn wrote:
>
> solve provides the solution of inequalities as a list of equations and 
> inequalities. Is there a way to transform this into a simplified union of 
> open-closed intervals?
> For example as a solution of abs(5*x-6) >= 3*x+2 I'd like to have 
> (-oo,1/2] U [4,oo).
>

-- 
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: Can sage's palp decompress these polytopes?

2017-02-07 Thread Andrey Novoseltsev

On Monday, 6 February 2017 14:47:15 UTC-7, Dominique Laurain wrote:
>
> Summmary of work done for sagemath ...
>
>
> http://rpm.pbone.net/index.php3/stat/4/idpl/34786687/dir/fedora_other/com/sagemath-data-polytopes_db-7.3-6.fc25.noarch.rpm.html
>
> (maybe more recent updates?)
>
> I guess pcpa and Jerry James have done great job decompressing databases, 
> and coding Python interface (instead of Kreuze's java(?) code)
>

Kreuzer's code is C/C++ and part of the reason for their own database 
format is that it is highly efficient. Sage has plain text databases for 2 
and 3 dimensional cases (these are small and available as 
ReflexivePolytopes(...)) as well as a a HUGE 8GB optional package for 4 
dimensional polytopes together with Hodge numbers. I don't think we have 
some "direct" interface to reading their binary format, when I was working 
with 4 and 5 dimensional cases I used palp decoder in a pipe, reading 
polytopes from there.

On a very related note, there are recent improvements to the speed of 
lattice (including reflexive) polytopes that need review:
https://trac.sagemath.org/ticket/22309
https://trac.sagemath.org/ticket/22310

Best,
Andrey

>
> Dominique
>

-- 
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-cell] Re: [sage-support] Sage Cell Server

2017-01-27 Thread Andrey Novoseltsev
On Friday, 27 January 2017 17:26:13 UTC-7, William Stein wrote:
>
> Maybe say something about the service we (SageMath, Inc.) does provide 
> right now? 
>

Great point - SageMath, Inc. actually pays for the current GCE part of 
sagecell.sagemath.org - apart from the computational machine it hosts the 
global permalink database. (UTMOST grant should cover 2 years eventually.) 
And of course if account-less computations are not essential, SageMath, 
Inc. provides SageMathCloud!

-- 
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] Sage Cell Server

2017-01-27 Thread Andrey Novoseltsev
Hello!

Note that we have a dedicated group sage-cell (cc-ed).

At the moment we have GCE for Americas and Madrid for everyone else 
including Europe. There are occasional power problems in the building with 
the Madrid server which are supposed to go away after this last time, we 
will see if that is indeed the case. These servers are responding to 
sagecell.sagemath.org and have valid security certificates. While it is 
unfortunate that there are such interruptions in Madrid, an equivalent 
machine in GCE would cost about $2000/year, so overall I am very happy that 
this hardware is provided to us.

Those who heavily rely on SageMathCell should indeed consider running their 
own servers to make sure there are no downtimes/slowdows at the worst 
possible moment and/or unexpected upgrades that may break some particular 
code. It is possible that SageMath Inc will provide such a service in the 
future.

aleph.sagemath.org should not be used or recommended at all.

As for Android app, I can't test it and found it difficult in the past to 
get much feedback on it or figure out who is responsible for it. Personally 
I think it should be removed from the app store since having an 
unmaintained and broken app is bad for reputation.

Thank you,
Andrey

-- 
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: Trouble getting implicit_multiplication to work with sagecell.sagemath.org.

2016-11-30 Thread Andrey Novoseltsev
My guess is that this command affects what will be preparsed after its 
call, while the whole cell is preparsed before executing anything.

If you use linked cells and put these commands into separate ones, 
everything works without errors.

I'd claim that this is by design and would not be easy to change.

On Tuesday, 29 November 2016 10:53:22 UTC-7, Chris Seberino wrote:
>
> Shouldn't the 2 lines below work in SageCell?  It gives an error because 
> the implicit multiplication isn't set.  Why?
>
> implicit_multiplication(10)
> 4 5
>

-- 
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: Issue Displaying 3D Images in SageCell

2016-07-29 Thread Andrey Novoseltsev
On Wednesday, 27 July 2016 18:04:48 UTC-6, Andrey Novoseltsev wrote:
>
> On Thursday, 14 July 2016 08:41:26 UTC-6, Andrey Novoseltsev wrote:
>>
>> On Thursday, 14 July 2016 08:30:18 UTC-6, Ingo Dahn wrote:
>>>
>>> Further Info: I tested it with Chrome under Win 10 and it doesn't work 
>>> with a local page. The page on the SageCell site IS working. But when I 
>>> copy this page to my site and change all relative links to absolute links 
>>> pointing to the sage server, it shows the same problem: "3D Model loading" 
>>> and a static image.
>>> Any idea what I could try else?
>>> Ingo
>>>
>>
> 3D status update: things are more convoluted than expected. I've setup PHP 
> stuff for JSmol and it sort of works, except that with another processing 
> server in the middle load balancing is not functioning as it should and 
> those plots are now shown as empty. I believe I can solve this problem (and 
> a few others) by a) being smarter with session IDs and sticking and b) 
> upgrading to Ubuntu 16.04 and HA-Proxy 1.6 which is more flexible. I hope 
> to do both in a couple of weeks.
>

OK, I think I made it work using a) only, although b) will make it cleaner 
eventually. Please report if you are still experiencing issues! 

-- 
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: Issue Displaying 3D Images in SageCell

2016-07-27 Thread Andrey Novoseltsev
On Thursday, 14 July 2016 08:41:26 UTC-6, Andrey Novoseltsev wrote:
>
> On Thursday, 14 July 2016 08:30:18 UTC-6, Ingo Dahn wrote:
>>
>> Further Info: I tested it with Chrome under Win 10 and it doesn't work 
>> with a local page. The page on the SageCell site IS working. But when I 
>> copy this page to my site and change all relative links to absolute links 
>> pointing to the sage server, it shows the same problem: "3D Model loading" 
>> and a static image.
>> Any idea what I could try else?
>> Ingo
>>
>
3D status update: things are more convoluted than expected. I've setup PHP 
stuff for JSmol and it sort of works, except that with another processing 
server in the middle load balancing is not functioning as it should and 
those plots are now shown as empty. I believe I can solve this problem (and 
a few others) by a) being smarter with session IDs and sticking and b) 
upgrading to Ubuntu 16.04 and HA-Proxy 1.6 which is more flexible. I hope 
to do both in a couple of weeks.

-- 
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: Seaborn in sage

2016-07-24 Thread Andrey Novoseltsev
While it is not included, you can install it yourself via pip (SageMathCell 
does it):

sage -pip install seaborn


On Saturday, 23 July 2016 13:17:26 UTC-6, Laurent Decreusefond wrote:
>
> I recently discovered Seaborn, which is a visualization library on top
> of matplotlib. It doesn't seem to be included in sage 7.2. Is there any
> projet to do so ? or is there something equivalent ?
>
> 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 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: Unpickling problem

2016-07-20 Thread Andrey Novoseltsev
On Saturday, 9 July 2016 01:50:46 UTC-6, Volker Braun wrote:
>
>
> http://doc.sagemath.org/html/en/reference/structure/sage/structure/sage_object.html#sage.structure.sage_object.register_unpickle_override
>

https://trac.sagemath.org/ticket/21065 makes it clear what old paths had to 
be fixed
https://trac.sagemath.org/ticket/21066 adds fixes necessary for this 
particular case

Do we have any general framework for dealing with such cases? It seems that 
calls to unpickle_override are scattered throughout the library, wouldn't 
it make more sense to gather them all in a single module just for this 
purpose? In the case of things moved around (which I imagine is the most 
frequent case), the error message may even suggest the replacement. Or 
perhaps show the command that will try to find a replacement since it may 
be time consuming to find the moved function or class.

-- 
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: Issue Displaying 3D Images in SageCell

2016-07-14 Thread Andrey Novoseltsev
On Thursday, 14 July 2016 08:30:18 UTC-6, Ingo Dahn wrote:
>
> Further Info: I tested it with Chrome under Win 10 and it doesn't work 
> with a local page. The page on the SageCell site IS working. But when I 
> copy this page to my site and change all relative links to absolute links 
> pointing to the sage server, it shows the same problem: "3D Model loading" 
> and a static image.
> Any idea what I could try else?
> Ingo
>

Right now you can try "threejs(your_plot)" and see if you like it. Deafult 
plotter JSmol was not functioning in Chrome for a while and higher priority 
stuff kept appearing. As of now I have fixed all regressions of switching 
to Jupyter that I am aware off, so will see what can be done with 3d.

We also have a dedicated group for SageMathCell now, 
https://groups.google.com/forum/#!forum/sage-cell

-- 
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] Dedicated group for SageMathCell

2016-07-03 Thread Andrey Novoseltsev
The group https://groups.google.com/forum/#!forum/sage-cell will now be 
used for important announcements regarding SageMathCell, issue reporting 
and any other relevant discussions. If you actively use SageMathCell and 
especially if you maintain web pages with embedded cells, please subscribe 
to it and detect/report regressions before your readers!

Thank you,
Andrey

P.S. I have already mentioned this group before, but it was rightly pointed 
out to me that the end of a long thread is not the best place for 
announcement.

-- 
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: User question about toric varieties

2016-07-01 Thread Andrey Novoseltsev
This is a lng standing bug that nobody cared about enough to fix:
https://trac.sagemath.org/ticket/11394

On Friday, 1 July 2016 09:34:02 UTC-6, kcrisman wrote:
>
> On the sagenb github site (https://github.com/sagemath/sagenb/issues/402):
>
>
> Hi there,
>
> I tried to verify with Sage that P^2 is projective. Unfortunately, Sage 
> replied with 'false'. Here is what I tried:
>
> P2=toric_varieties.P2();
> P2.is_projective()
>
> The last line returned 'false'. The same happens for e.g. P1xP1.
>
> [I am running SageMath version 7.2, Release Date: 2016-05-15]
>
> Is this a bug? Thank you!
>

-- 
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: sagecell.sagemath

2016-06-30 Thread Andrey Novoseltsev
On Thursday, 30 June 2016 02:36:18 UTC-6, Cristina Flaut wrote:
>
>
> Also I can't use
>
> https://sagecell.sagemath.org/
>
> I hit "Evaluate" and nothing.
> Please, help!
> Thanks!
>

What code do you try to execute? And on what OS/browser? If the editor 
window is not functioning, does it help to reload the page? (It is 
unfortunate that this happens, I am still trying to figure out why.) 

-- 
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: Coming SageMathCell upgrade - please test!

2016-06-09 Thread Andrey Novoseltsev
This is due to the bug fixed by http://trac.sagemath.org/ticket/20797

Also, I'll try to keep further discussion of SageMathCell at 
https://groups.google.com/forum/#!forum/sage-cell

On Monday, 6 June 2016 02:14:25 UTC-6, Peter Luschny wrote:
>
> ---
> ImportError   Traceback (most recent call last)
>  in ()
> > 1 load('http://')
>   2 load('http://')
>   3 
>
> /home/sc_serv/sage/src/sage/structure/sage_object.pyx in 
> sage.structure.sage_object.load 
> (/home/sc_serv/sage/src/build/cythonized/sage/structure/sage_object.c:11408)()
>1016 
>1017 if sage.repl.load.is_loadable_filename(filename):
> -> 1018 sage.repl.load.load(filename, globals())
>1019 return
>1020 
>
> /home/sc_serv/sage/local/lib/python2.7/site-packages/sage/repl/load.pyc in 
> load(filename, globals, attach)
> 252 raise NotImplementedError("you can't attach a URL")
> 253 from sage.misc.remote_file import get_remote_file
> --> 254 filename = get_remote_file(filename, verbose=False)
> 255 
> 256 from sage.repl.attach import load_attach_path
>
> /home/sc_serv/sage/local/lib/python2.7/site-packages/sage/misc/remote_file.pyc
>  
> in get_remote_file(filename, verbose)
>  34 
>  35 # import compatible with py2 and py3
> ---> 36 from six.moves.urllib.request import urlretrieve
>  37 
>  38 global cur
>
> ImportError: No module named moves.urllib.request
>
>

-- 
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: R and Sage Cells

2016-06-08 Thread Andrey Novoseltsev
On Wednesday, 8 June 2016 14:15:57 UTC-6, Tom Judson wrote:
>
> If I go to https://sagecell.sagemath.org and use the pull down menu on 
> the right to set the language to R, everything works.  If I try %r, then I 
> don't get the desired output.
>

Exactly. There is some wrapper which is applied to the whole cell if it is 
in R mode and you can change the default mode if you need it to be R. In 
this case it may actually work better than in the cloud ;-)
Some details were discussed here: 
https://groups.google.com/forum/#!msg/sage-support/NUIxQcMJLjk/gy3TlOObAgAJ


> On Tuesday, June 7, 2016 at 3:36:22 PM UTC-5, Tom Judson wrote:
>>
>> Does anyone have any experience using R in a Sage cell?  The following 
>> code works fine on SMC but not on the Sage cell server. 
>>
>> %r 
>> age <- c(25, 30, 56) 
>> gender <- c("male", "female", "male") 
>> weight <- c(160, 110, 220) 
>> mydata <- data.frame(age,gender,weight) 
>> summary(mydata) 
>> cor(mydata$age,mydata$weight) 
>> mean(mydata$age) 
>> sd(mydata$age) 
>> plot(mydata$age,mydata$weight)]]> 
>>
>> Tom Judson
>
>

-- 
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: [sage-notebook] Coming SageMathCell upgrade - please test!

2016-05-26 Thread Andrey Novoseltsev
On Thursday, 26 May 2016 10:34:07 UTC-6, kcrisman wrote:
>
>
> http://ask.sagemath.org/question/33555/problem-with-encoding-german-characters/
>  
> could be related, or so the poster seems to imply - though probably not bad 
> enough to go back before 7.2. 
>

Thanks a lot for pointing it out - this is the worst problem I am currently 
aware of and it is definitely new. Would be solved by a switch to Python3, 
I guess ;-)

Overall things seem to be good enough that I don't plan a reversal anymore. 

-- 
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: [sage-notebook] Coming SageMathCell upgrade - please test!

2016-05-20 Thread Andrey Novoseltsev
OK, I've pressed the button - http://sagecell.sagemath.org is now
running the latest version of Sage 7.2, together with a "significantly
touched up" version of the SageMathCell code itself.

Please report any new (or old) errors that you notice - I will try to
fix them tomorrow (Saturday) afternoon (MST) and on Sunday/Monday. If
something is horribly wrong and I can't resolve it by Monday evening,
I'll pull back to the old version.

Thank you,
Andrey

-- 
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: [sage-notebook] Coming SageMathCell upgrade - please test!

2016-05-15 Thread Andrey Novoseltsev
The test server
http://cosmos.mat.uam.es:/
is now running 7.2.rc2 with upgraded ipykernel which greatly helped
with stability.

If no major issues are discovered by the next weekend (which will be
long for me and I will have a bit more time), I will roll this version
to all public servers and proceed fixing problems from there.

One problem is how 3d plots work (or rather don't), but given their
current state I don't consider it a blocker.

Thank you!
Andrey

-- 
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: [sage-notebook] Re: [sage-devel] Coming SageMathCell upgrade - please test!

2016-05-01 Thread Andrey Novoseltsev
OK, embedding seems to work for Chrome and Firefox, so reported
regressions are fixed.

I am planning to switch main servers in 3 weeks. (Probably 7.2 will be
out by then, so I'll also see how easy it is to upgrade with the new
setup.)

-- 
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: [sage-notebook] Re: [sage-devel] Coming SageMathCell upgrade - please test!

2016-05-01 Thread Andrey Novoseltsev
Made it work in Chrome via
https://github.com/sagemath/sagecell/commit/95d2b406026ea7efc73a91ef693a1dd9fb5946c6
(my attempts to create all wrappers using a loop were not successful)

Made some progress on CORS but there are still issues.

On Mon, Apr 25, 2016 at 2:35 AM, Volker Braun <vbraun.n...@gmail.com> wrote:
> sagecell.makeSagecell is already polling to see whether it is loaded; thats
> of course totally fugly but should work. You just have to make sure that it
> is defined. If its only defined once a requirejs module loads then you don't
> have control over when. Instead move the
>
> window.sagecell = window.sagecell || {};
> sagecell.makeSagecell = function (args, k) {
> ...
> }
>
> outside of requirejs to always define the entrypoint into sagecell.
>
>
> On Monday, April 25, 2016 at 3:10:02 AM UTC+2, Andrey Novoseltsev wrote:
>>
>> Update:
>>
>> 1) Chrome does not work because of executing
>> sagecell.makeSagecell(...)
>> before
>> 
>> finishes while Firefox waits till the script is processed. The issue
>> goes away if I wrap makeSagecell call in require(...), but I have no
>> idea how to make it work without, which is necessary for supporting
>> old pages. Any pointers?... I can't say I am a big fan of RequireJS,
>> but it felt natural to use it because Jupyter uses it. Should I
>> perhaps use something else instead/in addition?
>>
>> 2) TAB-completion should be fixed.
>> 3) No progress on 3D yet.
>> 4) Didn't look into CORS problems with embedding yet.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-notebook" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-notebook+unsubscr...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-notebook.
>
> 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.


[sage-support] Re: [sage-devel] Coming SageMathCell upgrade - please test!

2016-04-24 Thread Andrey Novoseltsev
Update:

1) Chrome does not work because of executing
sagecell.makeSagecell(...)
before

finishes while Firefox waits till the script is processed. The issue
goes away if I wrap makeSagecell call in require(...), but I have no
idea how to make it work without, which is necessary for supporting
old pages. Any pointers?... I can't say I am a big fan of RequireJS,
but it felt natural to use it because Jupyter uses it. Should I
perhaps use something else instead/in addition?

2) TAB-completion should be fixed.
3) No progress on 3D yet.
4) Didn't look into CORS problems with embedding yet.

-- 
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: [sage-devel] Coming SageMathCell upgrade - please test!

2016-04-18 Thread Andrey Novoseltsev
To summarize what was discovered so far:

1) Chrome does not work: I unfortunately tend to forget that different
browsers/OS should be tested - I was working on Firefox under Debian,
will try to fix is next weekend. Location should not matter when you
use the name of the server directly (sagecell.sagemath.org does
resolve to Madrid for certain locations).
2) TAB completion does not work: also didn't test as I rarely write
code in cells, will try to fix next weekend as well.
3) 3d plots have issues: these are likely to be the same as in the old
version - it will be a high priority to improve the situation after
the switch to Jupyter is done.

Any issues with interacts or embedding?

-- 
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] Coming SageMathCell upgrade - please test!

2016-04-17 Thread Andrey Novoseltsev
Hello and sorry for cross-posting, I'm trying to maximize visibility.

After quite a few changes I have a version of SageMathCell running Sage-7.1 
and using Jupyter etc. shipped with Sage, rather than a custom old branch 
of IPython.

User-visible changes should be minimal, but there are some for script 
interaction that will probably require changes to Android app, WebWorks, 
and what else.

There may be also new bugs introduced in the process. I hope that most of 
the stuff is done correctly and I will do some more 
testing/fixing/documenting over the next month or so, but it would be nice 
if other people tried it with their favourite code, interacts, web-pages, 
etc. To help with this I've pushed all changed to master, so those who have 
their own installations should be using the new version, and I have also 
set up a test instance on our Madrid server:
http://cosmos.mat.uam.es:/
for comparison you can also use old version at
http://cosmos.mat.uam.es/

Thank you!
Andrey

-- 
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: Sage cell installation ubuntu 14.04

2016-04-13 Thread Andrey Novoseltsev
On Wednesday, 13 April 2016 02:39:03 UTC-6, ilan diamond wrote:
>
> Hi 
> Thanks for the answer 
> When i ssh localhost - i get into my ubuntu. 
>

And you do it without entering any password, correct?
 

> Here is the welcome message i get :
>
> Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-67-generic x86_64)
>
>  * Documentation:  https://help.ubuntu.com/
>
> The programs included with the Ubuntu system are free software;
> the exact distribution terms for each program are described in the
> individual files in /usr/share/doc/*/copyright.
>
> Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
> applicable law.
>
> You have new mail.
>
> What does that mean ? shouldn't i have arrived in the sage cell server 
> console ? 
>

There is no such thing as sage cell server console. The code uses ssh to 
your account without password (by default) to start worker processes. 
Needless to say this is NOT how a world available setup should function ;-) 

>
> Ilan 
>
> 2016-04-13 6:00 GMT+03:00 Andrey Novoseltsev <novo...@gmail.com 
> >:
>
>> Is it possible to "ssh localhost" under this account?
>>
>> On Tuesday, 12 April 2016 08:52:00 UTC-6, ilan diamond wrote:
>>>
>>> Hello 
>>> I have gone through the stages of this sagecell installation. 
>>> https://github.com/sagemath/sagecell
>>> I run ubuntu 14.04
>>> seems like the installation went fine.
>>> But when i run  ../sage/sage web_server.py
>>> I get the following errors (and the server does not start ) 
>>>
>>> PowmInsecureWarning: Not using mpz_powm_sec.  You should rebuild using 
>>> libgmp >= 5 to avoid timing attack vulnerability.
>>>   _warn("Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 
>>> to avoid timing attack vulnerability.", PowmInsecureWarning)
>>> Traceback (most recent call last):
>>>   File "web_server.py", line 132, in 
>>> application = SageCellServer(baseurl = args.baseurl)
>>>   File "web_server.py", line 57, in __init__
>>> max_kernel_timeout=max_kernel_timeout, tmp_dir = tmp_dir)
>>>   File "/var/www/html/sc_build/sagecell/trusted_kernel_manager.py", line 
>>> 40, in __init__
>>> comp_id = self.add_computer(comp)
>>>   File "/var/www/html/sc_build/sagecell/trusted_kernel_manager.py", line 
>>> 125, in add_computer
>>> client = self._setup_ssh_connection(cfg["host"], cfg["username"])
>>>   File "/var/www/html/sc_build/sagecell/trusted_kernel_manager.py", line 
>>> 84, in _setup_ssh_connection
>>> ssh_client.connect(host, username=username)
>>>   File 
>>> "/var/www/html/sc_build/sage/local/lib/python2.7/site-packages/paramiko/client.py",
>>>  
>>> line 367, in connect
>>> look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
>>>   File 
>>> "/var/www/html/sc_build/sage/local/lib/python2.7/site-packages/paramiko/client.py",
>>>  
>>> line 584, in _auth
>>> raise saved_exception
>>> paramiko.ssh_exception.PasswordRequiredException: Private key file is 
>>> encrypted
>>>
>>> Can you tell me what went wrong ? 
>>> Thank you :) 
>>> Ilan Diamond
>>>
>> -- 
>> 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/DfSfItCVRkI/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> sage-support...@googlegroups.com .
>> To post to this group, send email to sage-s...@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.


[sage-support] Re: Integrating Sage cell as a http sever

2016-04-12 Thread Andrey Novoseltsev
It may not be outdated yet, but will be soon (in 1-2 months). For any 
practical purposes please use develop branch of 
https://github.com/sagemath/sagecell/tree/develop
and celldev branch of
https://github.com/novoselt/sage/tree/celldev
In particular there will be no more separate shell and iopub websockets.

On Tuesday, 12 April 2016 09:33:35 UTC-6, kcrisman wrote:
>
> I feel like this should be in the Sage cell documentation, but maybe 
> https://github.com/sagemath/sagecell/wiki/Messages is helpful?  (Assuming 
> it's not outdated.)
>
> On Tuesday, April 12, 2016 at 11:00:01 AM UTC-4, ilan diamond wrote:
>>
>> Hi 
>> We are interested in using sage cell server as an API for our php 
>> website. 
>>
>> We would like the ability to send from our php application, HTTP requests 
>> to sage and receive the answer in JSON format. 
>>
>> Is this possible using sage cell server  ? 
>>
>> If so, how would we call the server (GET,POST ?),
>> can anybody send us a general example (not necessarily  in PHP) of such 
>> API call calculating 1 + 1 ? 
>>
>> If this is not possible, any other suggestions ? 
>>
>> Thanks 
>> Ilan Diamond
>>
>

-- 
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: Sage cell installation ubuntu 14.04

2016-04-12 Thread Andrey Novoseltsev
Is it possible to "ssh localhost" under this account?

On Tuesday, 12 April 2016 08:52:00 UTC-6, ilan diamond wrote:
>
> Hello 
> I have gone through the stages of this sagecell installation. 
> https://github.com/sagemath/sagecell
> I run ubuntu 14.04
> seems like the installation went fine.
> But when i run  ../sage/sage web_server.py
> I get the following errors (and the server does not start ) 
>
> PowmInsecureWarning: Not using mpz_powm_sec.  You should rebuild using 
> libgmp >= 5 to avoid timing attack vulnerability.
>   _warn("Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 to 
> avoid timing attack vulnerability.", PowmInsecureWarning)
> Traceback (most recent call last):
>   File "web_server.py", line 132, in 
> application = SageCellServer(baseurl = args.baseurl)
>   File "web_server.py", line 57, in __init__
> max_kernel_timeout=max_kernel_timeout, tmp_dir = tmp_dir)
>   File "/var/www/html/sc_build/sagecell/trusted_kernel_manager.py", line 
> 40, in __init__
> comp_id = self.add_computer(comp)
>   File "/var/www/html/sc_build/sagecell/trusted_kernel_manager.py", line 
> 125, in add_computer
> client = self._setup_ssh_connection(cfg["host"], cfg["username"])
>   File "/var/www/html/sc_build/sagecell/trusted_kernel_manager.py", line 
> 84, in _setup_ssh_connection
> ssh_client.connect(host, username=username)
>   File 
> "/var/www/html/sc_build/sage/local/lib/python2.7/site-packages/paramiko/client.py",
>  
> line 367, in connect
> look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
>   File 
> "/var/www/html/sc_build/sage/local/lib/python2.7/site-packages/paramiko/client.py",
>  
> line 584, in _auth
> raise saved_exception
> paramiko.ssh_exception.PasswordRequiredException: Private key file is 
> encrypted
>
> Can you tell me what went wrong ? 
> Thank you :) 
> Ilan Diamond
>

-- 
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: How Does Sage Display Graphical Output?

2016-04-06 Thread Andrey Novoseltsev
If you want to know all details, you best option is figuring it out from 
the code at github, as there is no real documentation/description. You may 
start with
https://github.com/sagemath/sagecell/blob/master/backend_cell.py
Basically, plots are saved as files and these files are embedded into the 
output via HTML, so the browser loads them as usual images, there are no 
special communication channels etc. In "automatic" cases the plots are 
displayed, for manually saved ones a link is displayed below the output. 
The way how HTML tags are inserted into a page with embedded cells does not 
differ much for pictures and text. Again your best bet for all details is 
the source code, although you should use develop branch:
https://github.com/sagemath/sagecell/tree/develop
(I hope it will be finished and deployed in a month or so).


On Wednesday, 6 April 2016 13:37:53 UTC-6, kjapolson wrote:
>
> I am trying to understand how Sage is working in the background when 
> displaying graphical output. Specifically, how does a SageCell embedded in 
> an html website send its data to the SageCell server, and what does the 
> SageCell do to process graphical data and provide output? I have done some 
> extensive googling to try and figure out the answers to this question with 
> no luck. Any information someone has on this subject is greatly 
> appreciated! 
>

-- 
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: Problems Running a Local SageCell Server

2016-03-12 Thread Andrey Novoseltsev
On Sat, Mar 12, 2016 at 8:56 AM, kjapolson . <kjapol...@gmail.com> wrote:
> I do get the following error in the browser console:
>
> Cross-Origin Request Blocked: The Same Origin Policy disallows reading the
> remote resource at http://localhost:/sockjs/info?t=1457796945558.
> (Reason: CORS header 'Access-Control-Allow-Origin' does not match '*').

Ah, I though you have used the script for building everything. Your
problem is likely to be taken care of by
https://github.com/sagemath/sagecell/commit/0f51ab68b617348aafb95222e75a169b229335a7
but only in "production installation".

>
> On Fri, Mar 11, 2016 at 11:16 AM, Andrey Novoseltsev <novos...@gmail.com>
> wrote:
>>
>> I can't say what is wrong either, but have you checked the browser console
>> for any error messages? On a related note I am in the process of upgrading
>> to new IPython/Jupiter (see develop branch on github) which may solve some
>> issues as a side effect (or at least make it more clear what is going on).
>>
>>
>> On Thursday, 10 March 2016 11:08:37 UTC-7, kjapolson wrote:
>>>
>>> I am attempting to make a version of the SageCell server in VirtualBox
>>> using Kubuntu 15.10. I have followed the installation instructions at
>>> https://github.com/sagemath/sagecell, and I believe I have SageCell built
>>> correctly. I have also done most of the configuration instructions and made
>>> slight modifications to the config.py file to fit my specific needs. When I
>>> attempt to run the SageCell server with the command ../sage/sage
>>> web_server.py using the default parameters for web_server.py, I get no error
>>> messages in the command line and it appears to be working when I look at the
>>> syslog file outputs as well. And when I open my html file in Firefox that
>>> has an embedded SageCell in it, the "Activate" button to start the SageCell
>>> appears. However, when I click the activate button, the SageCell just spins
>>> for a long time and never shows any output. There are not any error messages
>>> that show up in the syslog file when the SageCell is activated either, so I
>>> have no idea what the problem is. I am wondering if it has to do with some
>>> error or miscommunication occurring between the high level kernels that are
>>> running the SageCell server and something at a lower level. Any suggestions
>>> are greatly appreciated!
>>
>> --
>> 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/vCEJMn-aGMc/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 a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/vCEJMn-aGMc/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.


[sage-support] Re: Problems Running a Local SageCell Server

2016-03-11 Thread Andrey Novoseltsev
I can't say what is wrong either, but have you checked the browser console 
for any error messages? On a related note I am in the process of upgrading 
to new IPython/Jupiter (see develop branch on github) which may solve some 
issues as a side effect (or at least make it more clear what is going on).

On Thursday, 10 March 2016 11:08:37 UTC-7, kjapolson wrote:
>
> I am attempting to make a version of the SageCell server in VirtualBox 
> using Kubuntu 15.10. I have followed the installation instructions at 
> https://github.com/sagemath/sagecell, and I believe I have SageCell built 
> correctly. I have also done most of the configuration instructions and made 
> slight modifications to the config.py file to fit my specific needs. When I 
> attempt to run the SageCell server with the command ../sage/sage 
> web_server.py using the default parameters for web_server.py, I get no 
> error messages in the command line and it appears to be working when I look 
> at the syslog file outputs as well. And when I open my html file in Firefox 
> that has an embedded SageCell in it, the "Activate" button to start the 
> SageCell appears. However, when I click the activate button, the SageCell 
> just spins for a long time and never shows any output. There are not any 
> error messages that show up in the syslog file when the SageCell is 
> activated either, so I have no idea what the problem is. I am wondering if 
> it has to do with some error or miscommunication occurring between the high 
> level kernels that are running the SageCell server and something at a lower 
> level. Any suggestions are greatly appreciated!
>

-- 
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: typeset mode in single cell server

2016-03-08 Thread Andrey Novoseltsev
In sagenb and cloud you put "typeset on" command in one "cell" and the
output of the last command of all cells is typeset rather than
printed. But in SageMathCloud originally called Single Cell Server
there are no other cells to affect (well, there are technically linked
cells but it is not very clear to the user what is linked and what is
not).

On Tue, Mar 8, 2016 at 7:03 PM, david.guichard <david.guich...@gmail.com> wrote:
> I have some sage cells in a couple of online textbooks, and mostly just
> wanted to unclutter the line for students. Using "show" is OK, I was just
> hoping that like sagenb and the cloud I could make it the default.
>
> -- David
>
>
> On Tuesday, March 8, 2016 at 7:06:47 AM UTC-8, kcrisman wrote:
>>
>>
>>
>> On Friday, March 4, 2016 at 12:47:43 PM UTC-5, Andrey Novoseltsev wrote:
>>>
>>>
>>>
>>> On Thursday, 3 March 2016 15:39:47 UTC-7, kcrisman wrote:
>>>>
>>>>
>>>>> Is it possible to turn on typeset mode in the single cell server?
>>>>>
>>>>
>>>> I guess one can use "show" in some cases...
>>>> http://sagecell.sagemath.org/?q=jqrxkt
>>>> but I don't think this is configurable by end users, though perhaps it
>>>> wouldn't be very hard - ?
>>>
>>>
>>> And how would it look like? Putting something like "%typeset" on the top
>>> is not going to be better than "show(...)" on the last line.
>>>
>>
>> It could be if one is outputting multiple things, maybe?  Maybe the
>> original poster (David, sorry for the slowness of this conversation) could
>> give us some potential use cases to help refine this idea.
>>
>>>
>>> There can be an argument made for always using rich representation
>>> perhaps (and those who dislike it can use "print(...)" explicitly).
>>> Thoughts?
>>
>>
>> I'd be open to that, but then again I don't really care.But if a lot
>> of people would find it useful... or maybe it could be another "engine" like
>> R or Singular.

-- 
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: typeset mode in single cell server

2016-03-04 Thread Andrey Novoseltsev


On Thursday, 3 March 2016 15:39:47 UTC-7, kcrisman wrote:
>
>
> Is it possible to turn on typeset mode in the single cell server?
>>
>>
> I guess one can use "show" in some cases...
> http://sagecell.sagemath.org/?q=jqrxkt
> but I don't think this is configurable by end users, though perhaps it 
> wouldn't be very hard - ?
>

And how would it look like? Putting something like "%typeset" on the top is 
not going to be better than "show(...)" on the last line.

There can be an argument made for always using rich representation perhaps 
(and those who dislike it can use "print(...)" explicitly). Thoughts? 

-- 
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: Issue Displaying 3D Images in SageCell

2016-02-09 Thread Andrey Novoseltsev
On Monday, 8 February 2016 20:09:49 UTC-7, kcrisman wrote:
>
>
>
>
> I have created html code for a website that has an embedded SageCell 
>> within it. The code plots a 3D image of two lines obtained from the RK4 
>> solution of two differential equations. In SMC, using show(line1+line2) 
>> outputs a 3D image that can be rotated using the mouse. However, in the 
>> embedded SageCell, it outputs the 3D image but it is no longer movable. 
>> From my extensive google searching, I am guessing it is due to some issue 
>> with jmol in the SageCell. Is there a way around this to make the 3D image 
>> movable like it is in SMC? Changing the viewer to tachyon produces the same 
>> problem.
>>
>>
> Hmm, that's interesting.  Probably it just isn't becoming auto-live like 
> it's supposed to when embedded.  E.g. try 
> http://sagecell.sagemath.org/?z=eJwrLshILUrV0AQADokC2Q===sage and 
> that should (after a slight pause) start being rotatable.  What happens 
> when you click on the image you get in the Sage cell - does it become live 
> after a bit? 
>

It may depend on the browser as well, I suspect I only made JSmol work in 
Firefox. It should not be terribly hard to do it for other browsers, but 
other things got higher priority on my little time and nobody else works on 
SageMathCell. Pull requests welcome, as they say ;-)

As a workaround, one can try to use "threejs(your_plot_here)" and hope for 
the best - the quality is not as good as in JSmol and in certain cases I 
saw plots completely disappear for no clear reason. 

-- 
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: ERR_CONTENT_LENGTH_MISMATCH: SageMathCell Minimum Requirements

2016-01-08 Thread Andrey Novoseltsev
No idea, but the configuration of public servers is mostly public as well at
https://github.com/sagemath/sagecell/tree/master/contrib/vm
(what is missing are details of handling SSL certificates and some "high 
level" network adjustments for particular configuration - I highly doubt 
they can cause subtle issues like yours)

On Tuesday, 5 January 2016 20:51:36 UTC-7, Ruslan Korniichuk wrote:
>
>
> Hi all,
>
> we have very interesting bug with our SagaMathCell.
>
> Code example:
>
> plt = point( [(i,random()) for i in range(1)] )
> plt.save('1.png')
>
>
> Error from Chrome:
>
> GET 
> http://155.158.128.81:6363/kernel/c0bd901f-1705-4848-b95d-37fe1f45f37c/files/23.png?q=0
>  
> net::*ERR_CONTENT_LENGTH_MISMATCH*
>
>
> Your SageMath:
> https://sagecell.sagemath.org/?q=edajsy
>
>
> 
>
>
> Our first SageMathCell:
>
> https://sagecell.paad.us.edu.pl/
>
> Power: 8C CPU / 8GB RAM / Ubuntu OS
>
>
> 
>
> Our second SageMathCell:
>
> http://sagecell.icse.us.edu.pl:6363/
>
> Power: 8C CPU / 8GB RAM / Debian OS
>
>
> 
>
> Why it is not working as well as your SageMathCell?
>
>

-- 
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: Sagecell not loading in webpage

2015-12-27 Thread Andrey Novoseltsev
On Wednesday, 23 December 2015 05:59:43 UTC-7, paad.ruslan...@gmail.com 
wrote:
>
> *Local files don't work with the public server...*
>
> *How do you fixed it for your server: https://sagecell.sagemath.org/ 
> ?*
> I tried:
> add_header Access-Control-Allow-Origin $http_origin;
> or
> add_header Access-Control-Allow-Origin *;
> It is doesn't work for uor server: http://sagecell.icse.us.edu.pl:6363/.
>

https://github.com/sagemath/sagecell/commit/0f51ab68b617348aafb95222e75a169b229335a7
deals with
https://github.com/mrjoes/sockjs-tornado/pull/83
which is ignored upstream for half a year 

-- 
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] division by zero bug in EllipticCurve rank()

2015-12-27 Thread Andrey Novoseltsev
A report from Lee Morgenstern using SageMathCell running Sage 6.9.beta6, 
but the same happens in 6.10:

the following code produces
NTLError: RR: division by zero


m = 239; n = 48
X = 2*m*n; Y = m^2 - n^2; Z = m^2 + n^2
E = EllipticCurve([0, 2*(Z^2-X*Y), 0, (X*Y)^2, 0])
E.rank()


The same error also happens with E.gens(),
but takes longer to get it. But if you use
E.gens(descent_second_limit=9)
you can get the error sooner.

-- 
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: Octave and R plots in sagecell

2015-11-06 Thread Andrey Novoseltsev
On Monday, 26 October 2015 06:13:08 UTC-6, Benedikt Magnússon wrote:
>
> Hi
>
> I wish to be able to plot in Octave/R inside a sagecell.
> and in Octave you only get a Ascii plot
> https://sagecell.sagemath.org/?z=eJwryMkv0Yg21DGM1QQAFu8DVw===octave
>

I have to say that R documentation is more pleasant/clear than 
Octave/gnuplot.

My understanding is that (unlike for R) we do not try to do anything for 
Octave plotting, so everything is "default". Plotting commands in Octave 
use either gnuplot or OpenGL, but it seems that in our setup only gnuplot 
is available. How extractly it is used I don't know, but my guess is that 
Octave creates some input file and then passes it to "gnuplot" and you have 
an option to change the name of the called binary and supply some options 
to it. For whatever reason, default options result in just ASCII plot in 
SageMathCell and SageNB. When I try to add explicit commands for saving in 
a particular format I am just getting the same ASCII plot one more time and 
some warnings. Starting Octave from a local terminal allows me to open 
plots in a new window, while saving files works but still shows warning 
about missing things. It would be nice if someone who knows Octave and 
gnuplot figured out what do we need to do to get some plots and no warnings 
- I am stopping for now.

Andrey

-- 
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: Octave and R plots in sagecell

2015-11-06 Thread Andrey Novoseltsev
On Thursday, 5 November 2015 21:16:03 UTC-7, William wrote:
>
> Thanks -- I've made a ticket: 
>
>https://github.com/sagemathinc/smc/issues/234 
>
> Where's a link to exactly your code (so I can add it to the SMC ticket)? 
>

Commits linked at github ticket above! 

>
> On Thu, Nov 5, 2015 at 7:09 PM, kcrisman  
> wrote: 
> > Impressive! 
> > 
> > 
> >> 
> >> SageMathCell now defaults to producing SVG plots in R and displays all 
> >> automatic plots that it can (BMP, JPEG, PNG, SVG). Users are free to 
> start 
> >> new plotting devices, pass any options to them, and create multiple 
> plots in 
> >> the same cell. Plots with custom names or harder formats like PDF will 
> be 
> >> provided as links only. With SageMathCloud approach you cannot change 
> format 
> >> and changing options is done not from R code using R commands, you are 
> also 
> >> limited to a single plot displayed automatically. The code above does 
> not 
> >> show any plots at all in the cloud. 
> >> 
> >> What had to be done: 
> >> 1) R interface is recreated after each forking (via "r=R()" command) to 
> >> make sure that a new working directory is picked up. Would be great if 
> >> interfaces followed changing directories of the main process, but I 
> don't 
> >> know how feasible that is. 
> >> 2) There is site configuration file installed into R in Sage setting 
> two 
> >> options including default graphing device SVG. In Sage R interface is 
> >> prohibited from picking up configuration from anywhere and device is 
> forced 
> >> in addition - I had to change it and I think it makes a lot of sense to 
> >> change it for Sage itself. 
> >> 3) After each R cell is executed, all graphic devices are now closed 
> and 
> >> plots with default R names are shown automatically if possible. 
> (Everything 
> >> else gets a link to.) R plots produced not in "R cells" will be always 
> >> linked to only, without auto display - this is similar to cloud showing 
> >> plots only if r-decorator was used. 
> >> 
> >> Andrey 
> >> 
> >> On Monday, 26 October 2015 10:27:23 UTC-6, William wrote: 
> >>> 
> >>> On Mon, Oct 26, 2015 at 7:39 AM, kcrisman  wrote: 
> >>> >> 
> >>> >> 
> >>> >> I wish to be able to plot in Octave/R inside a sagecell. 
> >>> >> Therefore, I just set up a sagecell server using the instructions 
> here 
> >>> >> https://github.com/sagemath/sagecell 
> >>> >> 
> >>> >> 
> >>> >> I compiled my own sagecell server because when you use 
> >>> >> https://sagecell.sagemath.org 
> >>> >> you get the following when trying to plot in R: 
> >>> >> "Error in png() : X11 is not available" 
> >>> >> 
> >>> >> 
> >>> >> 
> https://sagecell.sagemath.org/?z=eJwryMkv0UjWMNRRMNZRMNNRMNFRsNTUBABEDAT8=r
>  
> >>> >> and in Octave you only get a Ascii plot 
> >>> >> 
> >>> >> 
> https://sagecell.sagemath.org/?z=eJwryMkv0Yg21DGM1QQAFu8DVw===octave 
> >>> >> 
> >>> >> Using my own server plotting in R gives me nothing 
> >>> >> (not even "Error in png() : X11 is not available") 
> >>> >> and Octave still gives me only Ascii. 
> >>> >> 
> >>> >> I have two related questions: 
> >>> >> 1. Is it possible to get R plots in sagecell? 
> >>> >> 
> >>> > 
> >>> > It should be. 
> >>> > http://www.dan-erik.com/phdblog/2013/05/using-sage-with-r/ 
> >>> > might be helpful. 
> >>> > 
> >>> > But http://statisfactions.com/2013/interactive-r-code-widget/ used 
> to 
> >>> > work 
> >>> > and doesn't any more, so that doesn't bode well.  Andrey, did you 
> maybe 
> >>> > use 
> >>> > a version of Sage compiled without png support for R?  Unfortunately 
> >>> > even 
> >>> > the comment on that page no longer works. 
> >>> > 
> >>> > The graphics work with 
> >>> > pdf("Figname.pdf") 
> >>> > plot(...) 
> >>> > dev.off() 
> >>> 
> >>> Requiring the user to actually do that is a disaster regarding 
> >>> usability.  In SageMathCloud I just make it automatic.  E.g.,doing 
> >>> this just works: 
> >>> 
> >>> %r 
> >>> cars <- c(1, 3, 6, 4, 9) 
> >>> plot(cars, type="o", col="blue") 
> >>> title(main="Autos", col.main="red", font.main=4) 
> >>> 
> >>> See: 
> >>> 
> >>> 
> >>> 
> https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-10-26-092322-r-plot.sagews
>  
> >>> 
> >>> I don't think I've done the analogous thing for Octave yet, but 
> should. 
> >>> 
> >>> The way it works is by making %r  *slower* when used interactively, by 
> >>> having it check to see if a new graphic was created each time it runs, 
> >>> and if so, displaying it.   The codes all open source. Sage Cell 
> >>> server should be changed to do the same, in my opinion.  However, 
> >>> leave the sage library's r.eval itself alone, since doing the above 
> >>> would slow it down. 
> >>> 
> >>> William 
> >>> 
> >>> 
> >>> -- 
> >>> William (http://wstein.org) 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "sage-support" group. 
> > To unsubscribe from this 

Re: [sage-support] Re: Octave and R plots in sagecell

2015-11-05 Thread Andrey Novoseltsev
OK, here is my take on R plots:
http://sagecell.sagemath.org/?z=eJwryMkv0SjKyy_K1TA0MNDU5OUqwBDJKkhN1yjPTCnJsDUGimBTUpCSpoFdAkMkOTGzKD8epCE_LzUtMyfV1s3RJ9iVSN3FZekaIE15ibmptkrOpcUl-bl6QEElrKoB67NCZQ===r

SageMathCell now defaults to producing SVG plots in R and displays all 
automatic plots that it can (BMP, JPEG, PNG, SVG). Users are free to start 
new plotting devices, pass any options to them, and create multiple plots 
in the same cell. Plots with custom names or harder formats like PDF will 
be provided as links only. With SageMathCloud approach you cannot change 
format and changing options is done not from R code using R commands, you 
are also limited to a single plot displayed automatically. The code above 
does not show any plots at all in the cloud.

What had to be done:
1) R interface is recreated after each forking (via "r=R()" command) to 
make sure that a new working directory is picked up. Would be great if 
interfaces followed changing directories of the main process, but I don't 
know how feasible that is.
2) There is site configuration file installed into R in Sage setting two 
options including default graphing device SVG. In Sage R interface is 
prohibited from picking up configuration from anywhere and device is forced 
in addition - I had to change it and I think it makes a lot of sense to 
change it for Sage itself.
3) After each R cell is executed, all graphic devices are now closed and 
plots with default R names are shown automatically if possible. (Everything 
else gets a link to.) R plots produced not in "R cells" will be always 
linked to only, without auto display - this is similar to cloud showing 
plots only if r-decorator was used.

Andrey

On Monday, 26 October 2015 10:27:23 UTC-6, William wrote:
>
> On Mon, Oct 26, 2015 at 7:39 AM, kcrisman  
> wrote: 
> >> 
> >> 
> >> I wish to be able to plot in Octave/R inside a sagecell. 
> >> Therefore, I just set up a sagecell server using the instructions here 
> >> https://github.com/sagemath/sagecell 
> >> 
> >> 
> >> I compiled my own sagecell server because when you use 
> >> https://sagecell.sagemath.org 
> >> you get the following when trying to plot in R: 
> >> "Error in png() : X11 is not available" 
> >> 
> >> 
> https://sagecell.sagemath.org/?z=eJwryMkv0UjWMNRRMNZRMNNRMNFRsNTUBABEDAT8=r
>  
> >> and in Octave you only get a Ascii plot 
> >> 
> https://sagecell.sagemath.org/?z=eJwryMkv0Yg21DGM1QQAFu8DVw===octave 
> >> 
> >> Using my own server plotting in R gives me nothing 
> >> (not even "Error in png() : X11 is not available") 
> >> and Octave still gives me only Ascii. 
> >> 
> >> I have two related questions: 
> >> 1. Is it possible to get R plots in sagecell? 
> >> 
> > 
> > It should be.   
> http://www.dan-erik.com/phdblog/2013/05/using-sage-with-r/ 
> > might be helpful. 
> > 
> > But http://statisfactions.com/2013/interactive-r-code-widget/ used to 
> work 
> > and doesn't any more, so that doesn't bode well.  Andrey, did you maybe 
> use 
> > a version of Sage compiled without png support for R?  Unfortunately 
> even 
> > the comment on that page no longer works. 
> > 
> > The graphics work with 
> > pdf("Figname.pdf") 
> > plot(...) 
> > dev.off() 
>
> Requiring the user to actually do that is a disaster regarding 
> usability.  In SageMathCloud I just make it automatic.  E.g.,doing 
> this just works: 
>
> %r 
> cars <- c(1, 3, 6, 4, 9) 
> plot(cars, type="o", col="blue") 
> title(main="Autos", col.main="red", font.main=4) 
>
> See: 
>
>   
> https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-10-26-092322-r-plot.sagews
>  
>
> I don't think I've done the analogous thing for Octave yet, but should. 
>
> The way it works is by making %r  *slower* when used interactively, by 
> having it check to see if a new graphic was created each time it runs, 
> and if so, displaying it.   The codes all open source. Sage Cell 
> server should be changed to do the same, in my opinion.  However, 
> leave the sage library's r.eval itself alone, since doing the above 
> would slow it down. 
>
> William 
>
>
> -- 
> William (http://wstein.org) 
>

-- 
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: Octave and R plots in sagecell

2015-10-29 Thread Andrey Novoseltsev
On Thursday, 29 October 2015 04:12:36 UTC-6, Benedikt Magnússon wrote:
>
> Thanks for the replies.
>
> kcrisman: 
> I already installed xorg-dev, as sugested at dan-erik's blog. 
> Using dev.off() gives me "null device 1"
>

My understanding is that this is normal R output and the plot is created. 
You just don't see it because it is in a wrong directory.
 

>
> Andrey:
> Do you think it is possible to use the sage_salvus.py code in Sage Cell?
>

Yes, I am looking into it. Definitely will not start working today, but 
perhaps in a week or so I can fix it so that you get a link to "general 
files" created from R and plots are displayed automatically.


> One more question, is there some log file for sage cell which I dig into?
>
See
https://github.com/sagemath/sagecell/blob/master/log.py
which works in default configuration (I guess messages will just go to your 
syslog), as well as
https://github.com/sagemath/sagecell/blob/master/contrib/vm/container_manager.py#L171
and
https://github.com/sagemath/sagecell/blob/master/contrib/vm/compute_node/etc/rsyslog.d/sagecell.conf
which are used "in production": there are detailed logs inside of each 
container and a summary one on the host.

I doubt these logs are very useful with debugging R (or Sage) issues since 
from the point of view of the cell server "everything works", you just 
don't have access to results.

>
> -Benedikt
>
> On Monday, October 26, 2015 at 12:13:08 PM UTC, Benedikt Magnússon wrote:
>>
>> Hi
>>
>> I wish to be able to plot in Octave/R inside a sagecell.
>> Therefore, I just set up a sagecell server using the instructions here
>> https://github.com/sagemath/sagecell
>>
>>
>> I compiled my own sagecell server because when you use 
>> https://sagecell.sagemath.org 
>> you get the following when trying to plot in R:
>> "Error in png() : X11 is not available"
>>
>> https://sagecell.sagemath.org/?z=eJwryMkv0UjWMNRRMNZRMNNRMNFRsNTUBABEDAT8=r
>> and in Octave you only get a Ascii plot
>> https://sagecell.sagemath.org/?z=eJwryMkv0Yg21DGM1QQAFu8DVw===octave
>>
>> Using my own server plotting in R gives me nothing 
>> (not even "Error in png() : X11 is not available")
>> and Octave still gives me only Ascii.
>>
>> I have two related questions:
>> 1. Is it possible to get R plots in sagecell?
>> 2. Is it possible to get Octave non-ascii plots in sagecell?
>>
>> When I look at the log files (./sage/logs/pkgs/r-3.2.2.p0.log) it seems 
>> that X11 and png is used:
>> "using X11 ... yes" etc.  
>> Btw I'm using xubuntu 15.10. 
>>
>> Cheers,
>> Benedikt
>>
>>

-- 
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: Octave and R plots in sagecell

2015-10-27 Thread Andrey Novoseltsev
On Monday, 26 October 2015 10:27:23 UTC-6, William wrote:
>
> On Mon, Oct 26, 2015 at 7:39 AM, kcrisman  
> wrote: 
> >> 
> >> 
> >> I wish to be able to plot in Octave/R inside a sagecell. 
> >> Therefore, I just set up a sagecell server using the instructions here 
> >> https://github.com/sagemath/sagecell 
> >> 
> >> 
> >> I compiled my own sagecell server because when you use 
> >> https://sagecell.sagemath.org 
> >> you get the following when trying to plot in R: 
> >> "Error in png() : X11 is not available" 
> >> 
> >> 
> https://sagecell.sagemath.org/?z=eJwryMkv0UjWMNRRMNZRMNNRMNFRsNTUBABEDAT8=r
>  
> >> and in Octave you only get a Ascii plot 
> >> 
> https://sagecell.sagemath.org/?z=eJwryMkv0Yg21DGM1QQAFu8DVw===octave 
> >> 
> >> Using my own server plotting in R gives me nothing 
> >> (not even "Error in png() : X11 is not available") 
> >> and Octave still gives me only Ascii. 
> >> 
> >> I have two related questions: 
> >> 1. Is it possible to get R plots in sagecell? 
> >> 
> > 
> > It should be.   
> http://www.dan-erik.com/phdblog/2013/05/using-sage-with-r/ 
> > might be helpful. 
> > 
> > But http://statisfactions.com/2013/interactive-r-code-widget/ used to 
> work 
> > and doesn't any more, so that doesn't bode well.  Andrey, did you maybe 
> use 
> > a version of Sage compiled without png support for R?  Unfortunately 
> even 
> > the comment on that page no longer works. 
> > 
> > The graphics work with 
> > pdf("Figname.pdf") 
> > plot(...) 
> > dev.off() 
>
> Requiring the user to actually do that is a disaster regarding 
> usability.  In SageMathCloud I just make it automatic.  E.g.,doing 
> this just works: 
>
> %r 
> cars <- c(1, 3, 6, 4, 9) 
> plot(cars, type="o", col="blue") 
> title(main="Autos", col.main="red", font.main=4) 
>
> See: 
>
>   
> https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-10-26-092322-r-plot.sagews
>  
>
> I don't think I've done the analogous thing for Octave yet, but should. 
>
> The way it works is by making %r  *slower* when used interactively, by 
> having it check to see if a new graphic was created each time it runs, 
> and if so, displaying it.   The codes all open source. Sage Cell 
> server should be changed to do the same, in my opinion.  However, 
> leave the sage library's r.eval itself alone, since doing the above 
> would slow it down. 
>
> William 
>
>
> -- 
> William (http://wstein.org) 
>

 
 Hi William,

Can you please give a pointer to where this is implemented in SMC? 

Somewhat related: one of the problems with cells is that R works from a 
wrong directory (home) and writes its files there. They should be instead 
in a proper temp folder where at least links to plots will be given.

Andrey

-- 
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: Tutorial to setup sage cell server? 2015

2015-10-04 Thread Andrey Novoseltsev

On Sunday, 4 October 2015 03:46:59 UTC-6, Dmitrij Moreinis wrote:
>
> Hi everyone, I would like to set up a sage cell server. Is there a actual 
> tutorial? I have have found few, but they are dated back 2013. Or is the 
> project on hold/ not further developed? 
> Amazon Web services provides a free account, so I would use theirs 
> services. Any suggestions?
>

Have you instructions at
https://github.com/sagemath/sagecell
which were working a month or so ago? If something was unclear/not-working 
I definitely would try to help, ideally by clarifying those instructions.

For production use VM scripts linked from there are actually used to deploy 
public instances and so are known/guaranteed to work on Ubuntu 14.04 LTS.

Also, where are the ones that you have found? We probably should delete 
them and replace with links to the repository - current build system is 
completely different from 2 years ago.

-- 
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: read file from embedded sagecell

2015-07-19 Thread Andrey Novoseltsev
On Sunday, 19 July 2015 06:40:51 UTC-6, springfield .gion wrote:

 Hi! I have a few programs running in embedded sagecells on my homepage; I 
 need to implement some programs that produce output from some files stored 
 in the folder containing all the html. Is there an easy way to do it?
 thanks in advance 


You can use load(http://your.site/path/file;) if you want to load some 
extra code.

If you want to read a data file, you need to use some Python library that 
will let you read a remote file - when the code is executing you have no 
access to the file system from which the page was served.

Best,
Andrey

-- 
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: Sagecell not running in moodle pages

2015-07-10 Thread Andrey Novoseltsev
On Friday, 10 July 2015 04:10:04 UTC-6, Modlo Eugene wrote:

 Hi everyone!
 Trying to use sagecell in moodle pages. A few month ago everything was 
 fine, but now, after accepting the terms of service i see only rounding 
 circle at right side of cell. 
 Same promblem was in local pages, but now this is solved, as i know (
 https://groups.google.com/forum/#!searchin/sage-support/sagecell$20not$20work$20local/sage-support/6d6GyGtDTUE/jGM_gpllrjIJ
 ).


Local pages didn't work because of a bug in sockjs-tornado:
https://github.com/mrjoes/sockjs-tornado/pull/83
which I am patching manually for SageMathCell: 
https://github.com/sagemath/sagecell/commit/0f51ab68b617348aafb95222e75a169b229335a7#diff-d877e477b460df963a363956a4c2a672


 moodle page with sagecell: 
 http://vtutor.ccjournals.eu/mod/page/view.php?id=927 (use guest access)
 Thanks!


Thanks a lot for providing an example! The console complains about
ReferenceError: SockJS is not defined
and
ReferenceError: CodeMirror is not defined
which is a bit puzzling for my limited JS skills. I'll try to track it down 
over the weekend and next week.

Andrey

-- 
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: Sagecell not loading in webpage

2015-06-03 Thread Andrey Novoseltsev
On Wednesday, 3 June 2015 02:00:28 UTC-6, Tobias Brenner wrote:

 Dear Andrey,

  

 thanks for your answer. I am using a local HTML-File, so I can’t provide 
 you with a link.

  

 I even tried the given example HTML-File of 
 https://sagecell.sagemath.org/static/about.html and this one isn’t 
 working ether.

  

 Do you have any suggestions for me?


Dear Tobias,

Local files don't work with the public server because of our nginx CORS 
misconfiguration:
https://github.com/sagemath/sagecell/blob/master/contrib/vm/compute_node/etc/nginx/conf.d/sagecell.conf
My understanding is that we cannot use * when Origin is null, we have to 
return null instead. Suggestions on a better configuration are welcome, 
although I'll try to figure it out myself in the near future (maybe this 
weekend).

Best,
Andrey

  

 Regards,

  

 Tobias


 On Tuesday, 2 June 2015 18:11:54 UTC+2, Andrey Novoseltsev wrote:

 On Tuesday, 2 June 2015 07:02:03 UTC-6, Tobias Brenner wrote:

 Hi Everyone,

 unfortunately I still have the problem that my sageCell Sheets aren’t 
 working. My browser console says:

 XMLHttpRequest cannot load 
 http://sagecell.sagemath.org/sockjs/info?t=1433249523462. A wildcard 
 '*' cannot be used in the 'Access-Control-Allow-Origin' header when the 
 credentials flag is true. Origin 'null' is therefore not allowed access.

 Has anyone an idea why it isn’t working?

  

 Regards,

 Tobias


 Can you please provide a link to the page that causes the error? There 
 are ongoing changes with SageMathCell (which are likely to continue into 
 foreseeable future), so something may have changed that broke your use case 
 and we are definitely interested in trying to fix it.

 Thank you,
 Andrey



-- 
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: Sagecell not loading in webpage

2015-06-02 Thread Andrey Novoseltsev
On Tuesday, 2 June 2015 07:02:03 UTC-6, Tobias Brenner wrote:

 Hi Everyone,

 unfortunately I still have the problem that my sageCell Sheets aren’t 
 working. My browser console says:

 XMLHttpRequest cannot load 
 http://sagecell.sagemath.org/sockjs/info?t=1433249523462. A wildcard '*' 
 cannot be used in the 'Access-Control-Allow-Origin' header when the 
 credentials flag is true. Origin 'null' is therefore not allowed access.

 Has anyone an idea why it isn’t working?

  

 Regards,

 Tobias


Can you please provide a link to the page that causes the error? There are 
ongoing changes with SageMathCell (which are likely to continue into 
foreseeable future), so something may have changed that broke your use case 
and we are definitely interested in trying to fix it.

Thank you,
Andrey

-- 
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: Why does html with embedded SAGE files work from the internet but not when on my computer?

2015-05-29 Thread Andrey Novoseltsev
On Thursday, 28 May 2015 16:54:53 UTC-6, Martin Flashman wrote:

 I have tried to run the same files from the internet and from my computer 
 on various browsers using Windows 7 and 8. The internet versions run 
 perfectly. The files from my computer used to work, but now when evaluated 
 the SAGE response box opens and then spins without any further response. I 
 just can't figure out what has changed on my machines to corrupt the 
 HTML/SAGE embedded files which used to work perfectly. 


This is due to cross-site scripting policies: we do set Allow-Origin to *, 
but apparently that's not enough for local files. If anyone knows how to 
fix, I'll be very happy to incorporate the fix into SageMathCell.

Andrey

-- 
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: Sagecell not loading in webpage

2015-05-15 Thread Andrey Novoseltsev
On Tuesday, 12 May 2015 08:39:40 UTC-6, springfield .gion wrote:

 Sure! I did not modify in any way the pages, and they just stopped loading 
 about 3 days ago. Here is one of them:
 http://poisson.dm.unipi.it/~celoria/grid_drawing.html


Your server appears to be down, but can you please check how things are 
working now? It seems that redirects to secure connection were causing some 
issues.

Andrey 

-- 
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: Sagecell not loading in webpage

2015-05-12 Thread Andrey Novoseltsev
I don't control the entry point for Germany, but ccing Sven Köppel who 
administers it. Hopefully we can resolve it in a day or so.

Andrey

On Tuesday, 12 May 2015 16:12:53 UTC-6, William wrote:

 On Tue, May 12, 2015 at 1:31 PM, Volker Braun vbrau...@gmail.com 
 javascript: wrote: 
  Does it work for you? If you see something then either you got 
  round-robin'ed a different server 

 It's Geo-location DNS (on Amazon Route 53), and you would get a 
 different one in Europe than in the US... 

  or your browser lacks protection against 
  xss attacks. My browesr console says: 
  
  XMLHttpRequest cannot load 
  http://sagecell.sagemath.org/sagecell.html?rand=0.5507597345858812. No 
  'Access-Control-Allow-Origin' header is present on the requested 
 resource. 
  Origin 'http://poisson.dm.unipi.it' is therefore not allowed access. 
  sagecell.sagemath.org/static/embedded_sagecell.js:433 Uncaught 
 TypeError: 
  Cannot read property 'parentNode' of undefined 
  grid_drawing.html:1 Font from origin 'null' has been blocked from 
 loading by 
  Cross-Origin Resource Sharing policy: Received an invalid response. 
 Origin 
  'http://poisson.dm.unipi.it' is therefore not allowed access. 
  . 
  
  
  
  On Tuesday, May 12, 2015 at 9:44:09 PM UTC+2, kcrisman wrote: 
  
  
  Sure! I did not modify in any way the pages, and they just stopped 
  loading about 3 days ago. Here is one of them: 
  http://poisson.dm.unipi.it/~celoria/grid_drawing.html 
  
  
  It's working now, anyway...  By the way, this looks cool! 
  
  -- 
  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...@googlegroups.com javascript:. 
  To post to this group, send email to sage-s...@googlegroups.com 
 javascript:. 
  Visit this group at http://groups.google.com/group/sage-support. 
  For more options, visit https://groups.google.com/d/optout. 



 -- 
 William (http://wstein.org) 


-- 
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: memory leak when building sage-6.6.rc0

2015-05-04 Thread Andrey Novoseltsev
Cython was using too much memory, should be fixed in recent beta.

On Monday, 4 May 2015 07:14:18 UTC-6, 94n...@gmail.com wrote:

 I can only agree with the original posting: Sage-6.6 release on gentoo 
 requires more than 1.5GB for compiling, on a 2GB computer about half a GB 
 is needed for running gnome (especially now that polkit has an unfixed 
 memory-leak in gentoo), so during single-threaded builds Swapfile will 
 definitely be used. from what I see up to 5GB per thread is needed for 
 building, inside some python scripts. would be nice if this got reverted in 
 next release. if not, at least warn about it, so people with only 16GB can 
 avoid using more than 4 threads...

 as for 1GB being used: there is a script setup.py which ps shows 3 times 
 with the parameter build, even though I told make to use at most 2 
 threads and only when load is 1. ps aux shows 0.1 400736 2272, 27.8 
 1675752 568952 and 40.5 1638940 829452 in their %MEM VSZ RSS columns, 
 their size shows as 275,612 1,531,976 and 1,495,164 respectively. is it a 
 bug in make that swap-file management doesn't count as load? ps doesn't 
 show any process called make in that phase though...

 Am Donnerstag, 26. März 2015 19:30:58 UTC+1 schrieb bogda...@gmail.com:

 My computer runs out of memory when I attempt to build sage from source. 
 I want to build sage-6.6.rc0.



-- 
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: possible fallout of rich output

2015-04-24 Thread Andrey Novoseltsev
On Thursday, 23 April 2015 19:36:23 UTC-6, kcrisman wrote:


 Nothing changed with HTML output so far, if its broken then that is 
 because the current behavior . I've opened

 http://trac.sagemath.org/ticket/18292


 Thanks.  This did work previously, as Andrey points out on the ticket, 
 though I'm not sure how long ago.


This works:

n=7
L = map(None,[p for p in prime_range(n+1) if p%4==1],[p for p in 
prime_range(n+1) if p%4==3])
L = [['',l[1]] if l[0] is None else l for l in L]
T = [['$p\equiv 1\\text{ mod }(4)$','$p\equiv 3\\text{ mod }(4)$']]
html(str(table(T+L,header_row=True)))

Note conversion to str. I am not sure what is the root case here and won't 
be able to investigate it for a few days, but will try to do something 
eventually...

-- 
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: Manually Moving Worksheets

2015-02-19 Thread Andrey Novoseltsev
On Thursday, 19 February 2015 12:17:24 UTC-7, kcrisman wrote:


 f.write(old_heading + g.read())
 exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 
 0xc2 in position 5454: ordinal not in range(128)

 Any help would be appreciated.


 I would recommend looking at what happens when you do them - which 
 worksheet seems to trigger this?  My guess is there is some unusual 
 character, see for instance 

 http://stackoverflow.com/questions/16508539/unicodedecodeerror-ascii-codec-cant-decode-byte-0xc2
 or 
 http://blog.webforefront.com/archives/2011/02/python_ascii_co.html
 for some details - maybe it even is the same character in question.  I 
 guess we need to ask this to be written with utf-8 or something.  Andrey, 
 any suggestions?


Well, my guess is that there are some worksheet titles with non-Latin 
characters. Luis - do you have any? Can you try to download them separately 
and in a small group? (Separately meaning a single one into sws file, and a 
group means two or more that should be packed into an archive.) I am not 
sure where exactly encoding commands should be added, but to start with we 
need a reproducible behaviour. 

-- 
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: Manually Moving Worksheets

2015-02-12 Thread Andrey Novoseltsev
On Wednesday, 11 February 2015 13:26:26 UTC-7, Luis Finotti wrote:

 Dear all,

 After some problems with an older computer, I'm trying to move its 
 worksheets to a new one.  (Both running Linux.)

 The problem is that I cannot download the worksheets via Sage: when I try 
 I can select the worksheets and click Download, but nothing happens.  It 
 could very well be due to the computer itself, which is having some 
 hardware/memory problems.  I can still access the files, though, and could 
 manually move them.

 Note that the new computer already has some worksheets in it, so I cannot 
 simply move the '.sage directory.

 Also, FWIW, the old computer seems to have two places for worksheets: 
 sage_notebook/ and  sage_notebook.sagenb/.  I can see:




 boole[~/.sage]$ ls sage_notebook/worksheets/admin/
 0/ 10/ 12/ 14/ 16/ 18/ 2/ 21/ 23/ 25/ 27/ 29/ 30/ 4/ 6/ 8/ history.sobj
 1/ 11/ 13/ 15/ 17/ 19/ 20/ 22/ 24/ 26/ 28/ 3/ 31/ 5/ 7/ 9/

 boole[~/.sage]$ ls sage_notebook.sagenb/home/admin/
 0/ 10/ 12/ 14/ 16/ 18/ 2/ 21/ 23/ 25/ 27/ 29/ 30/ 32/ 34/ 36/ 38/ 4/ 41/ 
 43/ 45/ 47/ 5/ 7/ 9/
 1/ 11/ 13/ 15/ 17/ 19/ 20/ 22/ 24/ 26/ 28/ 3/ 31/ 33/ 35/ 37/ 39/ 40/ 42/ 
 44/ 46/ 48/ 6/ 8/ history.pickle*



 Is there a way to move these worksheets?

 Thanks,

 Luis


Hi Luis,

I believe you want the folder with .sagenb extension -  the other one is 
from a quite old version which should have been migrated to the new one 
(but a copy of an old one remains).

If you put it anywhere on the new computer, you can launch notebook with 
directory option specifying the path. Then try to download those that you 
want and upload into your new installation.

Best,
Andrey

-- 
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] 3d plotting does not work on sage cell server

2015-02-02 Thread Andrey Novoseltsev
On Monday, 2 February 2015 08:15:12 UTC-7, kcrisman wrote:

 threejs(A+B)

 This does require WebGL enabled, I *think* (not 100% sure).


It does not - will use (slow) canvas instead.

I'm making progress with JSmol, hopefully in a week or so we will have Sage 
6.5 with working 3D on sagecell.sagemath.org.

Best,
Andrey 

-- 
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 Notebook for input forms

2014-12-23 Thread Andrey Novoseltsev
On Saturday, 20 December 2014 20:06:15 UTC-7, kcrisman wrote:

  

 I would like to create different calculations where the normal user 
 only sees input fields for the variables to define and a calculate button.

 After clicking on it, the result values as well as some visualizations 
 should be shown. The whole code should be hidden.

  

 Are there any “best practices” on using the sage notebook for creating 
 input forms that will be calculated and that the results are displayed, 
 without showing the sage-code?

 (e.g. creating the code in a separate worksheet and creating a view 
 Version of the calculation).

  


 Hi again,

 I think that for this purpose I would personally use the Sage cell server 
 http://sagecell.sagemath.org/ (documentation at 
 http://sagecell.sagemath.org/static/about.html ) inside of ordinary web 
 pages.  This is a proven and flexible technology, which is pretty easy to 
 use; I'm cc:ing the current maintainer, who may have some thoughts on how 
 to run your own Sage cell server if need be.

 - kcrisman


Well, I certainly would appreciate any feedback on
https://github.com/sagemath/sagecell/blob/master/contrib/vm/README.md
There are still no promised templates for configuring proxies, but I've 
tried my best to make setting up new SageCell servers easy. I am running 3 
setups on slightly different machines using these instructions.

Thank you,
Andrey

-- 
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: Arbitrary precision linear programming

2014-10-23 Thread Andrey Novoseltsev
On Wednesday, 22 October 2014 21:38:39 UTC-6, Mike wrote:

 I'd like to be able to do linear programming to arbitrary precision.  The 
 documentation that I've found claims that both the glpk  and PPL solvers 
 should do this, but I haven't been able to get either to work.

 As an example, the following code prints c to high precision, but the 
 solutions only to 12 digits.  Where should I look for guidance?
 Note: this seeks to maximize x+y given that 3x=1 and 3y=1, so the 
 solution is (1/3, 1/3)

 Mike M

 R=RealField(100)
 c=Matrix(R, 2, 1, [-1, -1])
 G=Matrix(R, 2, 2, [3, 0, 0, 3])
 h=Matrix(R, 2, 1, [1, 1])
 print c  # To check the precision being used by print
 print

 sol=linear_program(c,G,h)
 print sol['x']
 sol=linear_program(c,G,h, solver='glpk')
 print sol['x']
 sol=linear_program(c,G,h, solver='PPL')
 print sol['x']


My straightforward simplex method for teaching can handle this one 
correctly:

http://sagecell.sagemath.org/?z=eJxljUGLwjAQhe-F_oeHe0kgLa2ee60XhVL3JoukSdwOGxNJIui_31hkYRHeDLx58_HGbjTS9mSsZm3T8LJQ3V6mQHc2CqwFWoFjlVfVfuVw-z_MOm4EmkWb58P8TudZ2Gsgl6CAD3x6qNmoH6TZ4BqMokjeYTLkvnGLRmN6YLUAqxdYFmUxoMNuGIKfrLkcknRaBt37cGFbgbm2FBPjAqxS_GX-aof6TE7akyaVcpUMD8brSUZSp-jt7Xlj_BfTdE8Xlang=sage

It can get pretty bad on degenerate problems, however, since it assumes all 
computations are exact even when they are not.

Andrey

-- 
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] QEPCAD in sagecell

2014-10-09 Thread Andrey Novoseltsev
On Thursday, 9 October 2014 03:45:40 UTC-6, kcrisman wrote:



  Nevertheless, it seems that QEPCAD is not anymore installed/working. Try 
  http://sagecell.sagemath.org/?q=xlgebu 

 That's a pity. I was using it [1], but I didn't find the time to learn 
 how to fix (and update) the broken [2] qepcad spkg. 

  
 But I'm sure if #10224 is fixed somehow then Andrey (current sagecell 
 maintainer/admin) would be happy to include it.


Indeed, it was dropped during upgrade to Sage-6.3 since I was not able to 
build it anymore. Any optional/experimental package which does build 
correctly can be installed into sagecell.sagemath.org on request.

Thank you,
Andrey

-- 
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: sagecell permalink down?

2014-09-22 Thread Andrey Novoseltsev
Thanks for reporting it, should be fixed now!

On Mon, Sep 22, 2014 at 12:27 PM, kcrisman kcris...@gmail.com wrote:



 On Monday, September 22, 2014 2:07:49 PM UTC-4, A. Jorge Garcia wrote:

 I've been using http://sagecell.sagemath.org a lot in class lately.

 We had a problem today. When we tried to get a permalink nothing
 happened. SAGE worked fine otherwise.

 Is there a problem with permalink?


 The long permalinks should always work.  Perhaps the database for the
 temp permalinks was renewed/down?


-- 
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: Connection beetwen sage and notebook/sagemathcloud

2014-03-17 Thread Andrey Novoseltsev
Is it at all possible to hook into (I)Python to catch traceback and replace 
it with a translation? Such an approach would work with all frontends 
including SMC. There can be a problem with error messages that are 
constructed from pieces, but, of course, even partial translation is 
better than none.

If things really have to be handled by frontends, then sagenb may not be 
worth putting in a lot of effort since it is likely to be replaced and 
William is the right person to ask about SMC!

Best regards,
Andrey

On Sunday, 16 March 2014 00:10:15 UTC-6, Андрей Ширшов wrote:

 Hello!

 I decided to make a study of internationalization of error messages 
 (python traceback).
 I came to decision there should be next steps:
 1. to find error messages at code of all functions/modules and systematize 
 these messages.
 2. to translate all messages and create table (maybe, .csv file).
 3. to learn how notebook or sagemathcloud connect to sage.
 4. to write function that catch error messages from sage to notebook or 
 sagemathcloud and translate these messages.

 I tried to understand how notebook connects to sage (I read source code or 
 notebook_object.py, run_notebook.py and online documentation and some code 
 on twisted site) but not I can't to understand how it's realized. Please 
 advise me where I can read about setting and getting information beetwin 
 sage and notebook. Because there isn't any way to install sagemathcloud on 
 local computer I don't know how I can do such internationalization for 
 sagemathcloud. Is there any way to do know how sagemathcloud connect to 
 sage? Help me please.

 Best regards,
 Andrei Shirshov.


-- 
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] LDAP (again...) on version 5.10.

2013-07-07 Thread Andrey Novoseltsev
On Friday, 5 July 2013 14:53:49 UTC-6, Patrick ABOU BAKAR wrote:

 Run this before the easy_install: 

 apt-get install python-dev libldap2-dev libsasl2-dev libssl-dev


This worked, thank you! 

-- 
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/groups/opt_out.




[sage-support] Re: LDAP (again...) on version 5.10.

2013-07-05 Thread Andrey Novoseltsev
On Friday, 5 July 2013 04:58:11 UTC-6, Dima Pasechnik wrote:

 (pyhton)-openssl, it seems, is necessary to make easy_install working. 


I have installed optional packages openssl and pyopenssl and now I am 
getting this:
(sage-sh) novoselt@sage:~$ easy_install python-ldap 
Searching for python-ldap
Reading http://pypi.python.org/simple/python-ldap/
Best match: python-ldap 2.4.13
Downloading 
https://pypi.python.org/packages/source/p/python-ldap/python-ldap-2.4.13.tar.gz#md5=74b7b50267761540451eade44b2049ee
Processing python-ldap-2.4.13.tar.gz
Running python-ldap-2.4.13/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-97rtiU/python-ldap-2.4.13/egg-dist-tmp-KwQNj5
defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
extra_compile_args: 
extra_objects: 
include_dirs: /opt/openldap-RE24/include /usr/include/sasl /usr/include
library_dirs: /opt/openldap-RE24/lib /usr/lib
libs: ldap_r
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/controls.py (for module ldap.controls) not found
file Lib/ldap/extop.py (for module ldap.extop) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
In file included from Modules/LDAPObject.c:9:0:
Modules/errors.h:8:18: fatal error: lber.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit 
status 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Re: LDAP (again...) on version 5.10.

2013-07-04 Thread Andrey Novoseltsev

On Thursday, 4 July 2013 01:53:36 UTC-6, jori.ma...@uta.fi wrote:

 (And for others reading this thread: first say ./sage -sh and then to 
 prompt just easy_install python-ldap.) 


For me this gives

Searching for python-ldap
Reading http://pypi.python.org/simple/python-ldap/
Download error: unknown url type: https -- Some packages may not be found!
Reading http://pypi.python.org/simple/python-ldap/
Download error: unknown url type: https -- Some packages may not be found!
Couldn't find index page for 'python-ldap' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: unknown url type: https -- Some packages may not be found!
No local packages or download links found for python-ldap
error: Could not find suitable distribution for 
Requirement.parse('python-ldap')
 

-- 
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/groups/opt_out.




[sage-support] Re: Cannot sign out

2011-07-14 Thread Andrey Novoseltsev
Based on my experience, it seems to be a Firefox 5 issue, I just got
it on a fresh install of Windows 7 Enterprise 64-bit and Firefox
5.0.1. Given that e.g. google accounts behave normally, it still can
indicate issues with Sage authentication mechanism that gets broken in
certain circumstances.

On Jul 13, 7:36 am, Andrey Novoseltsev novos...@gmail.com wrote:
 Hello,

 I have the following problem on my machine:
 - connect to a new secure Sage notebook
 - log in
 - log out
 - log in
 - now it is not possible to log out, I am just thrown to the home page
 (and it does work, i.e. I still have access to all the worksheets).

 Clearing the history of the browser helps in the sense of restoring
 the original state - I can log out once.

 I have this problem with different servers to which I am trying to
 connect from this machine, some of those servers worked fine for a
 long time.

 I cannot reproduce this problem on another machine so far (I tried one
 more) - everything is working fine there.

 So - what can be the problem and how can I solve it?

 System: fresh (~10 days after installation on a clean disk) Linux Mint
 11 Katya 64-bit, almost nothing installed except for LaTeX/Sage and
 editors.
 Browser: Firefox 5.0.

 Thank you!
 Andrey

-- 
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] Cannot sign out

2011-07-13 Thread Andrey Novoseltsev
Hello,

I have the following problem on my machine:
- connect to a new secure Sage notebook
- log in
- log out
- log in
- now it is not possible to log out, I am just thrown to the home page
(and it does work, i.e. I still have access to all the worksheets).

Clearing the history of the browser helps in the sense of restoring
the original state - I can log out once.

I have this problem with different servers to which I am trying to
connect from this machine, some of those servers worked fine for a
long time.

I cannot reproduce this problem on another machine so far (I tried one
more) - everything is working fine there.

So - what can be the problem and how can I solve it?

System: fresh (~10 days after installation on a clean disk) Linux Mint
11 Katya 64-bit, almost nothing installed except for LaTeX/Sage and
editors.
Browser: Firefox 5.0.

Thank you!
Andrey

-- 
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: Cannot sign out

2011-07-13 Thread Andrey Novoseltsev
P.S. I tried removing the cookie of the notebook site - this
disconnects me from the notebook server, but after the first login I
cannot logout anymore.

-- 
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: Need help in starting a sage server

2009-12-30 Thread Andrey Novoseltsev
I am having the same issue with Ubuntu 9.10 64-bit running in a
VirtualBox. I've tried installing some packages (although not all)
appearing in the package manager for openssl, but nothing has
changed.

Andrey

On Nov 12, 12:53 am, William Stein wst...@gmail.com wrote:
 On Wed, Nov 11, 2009 at 6:22 PM, Kwankyu ekwan...@gmail.com wrote:

  Hi,

  I have a problem starting a sage server after, I think, upgrading to
  Ubuntu 9.10 server edition. It just hangs at the point Generating a
  2048 bit RSA private key... See the following transcript:

  s...@ubuntu:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 9.10
  Release:        9.10
  Codename:       karmic
  s...@ubuntu:~$ sage -notebook secure=True
  --
  | Sage Version 4.2, Release Date: 2009-10-24                         |
  | Type notebook() for the GUI, and license() for information.        |
  --

  Please wait while the Sage Notebook server starts...
  ...
  notebook(secure=True)
  The notebook files are stored in: sage_notebook.sagenb
  In order to use an SECURE encrypted notebook, you must first run
  notebook.setup().
  Now running notebook.setup()
  Using dsage certificates.
  ==
  Generating public/private key pair for authentication...
  Your key will be stored in /home/sage/.sage/dsage/dsage_key
  Just hit enter when prompted for a passphrase
  ==
  /home/sage/.sage/dsage/dsage_key already exists.
  Overwrite (y/n)?

  Client configuration finished.

  Worker configuration finished.

  Choose a domain name for your SAGE notebook server,
  for example, localhost (personal use) or ubuntu.chosun.ac.kr (to allow
  outside connections).
  Domain name [localhost]:
  Using default localhost
  ==
  Generating SSL certificate for server...
  Using certtool to generate key
  certtool --generate-privkey --outfile /home/sage/.sage/dsage/
  cacert.pem
  Generating a 2048 bit RSA private key...

  Any idea to fix the problem?

 I have seen that.  I think it's a bug in certtool.  I don't know how
 to fix the problem though.  You might try installing all
 openssl-related Ubuntu packages...

 William

-- 
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: Need help in starting a sage server

2009-12-30 Thread Andrey Novoseltsev
After reading the whole topic, doing find / in another terminal
window helped indeed, in a few minutes everything was working (before
I was waiting for several hours).

Andrey

On Dec 30, 8:08 pm, Andrey Novoseltsev novos...@gmail.com wrote:
 I am having the same issue with Ubuntu 9.10 64-bit running in a
 VirtualBox. I've tried installing some packages (although not all)
 appearing in the package manager for openssl, but nothing has
 changed.

 Andrey

 On Nov 12, 12:53 am, William Stein wst...@gmail.com wrote:

  On Wed, Nov 11, 2009 at 6:22 PM, Kwankyu ekwan...@gmail.com wrote:

   Hi,

   I have a problem starting a sage server after, I think, upgrading to
   Ubuntu 9.10 server edition. It just hangs at the point Generating a
   2048 bit RSA private key... See the following transcript:

   s...@ubuntu:~$ lsb_release -a
   No LSB modules are available.
   Distributor ID: Ubuntu
   Description:    Ubuntu 9.10
   Release:        9.10
   Codename:       karmic
   s...@ubuntu:~$ sage -notebook secure=True
   --
   | Sage Version 4.2, Release Date: 2009-10-24                         |
   | Type notebook() for the GUI, and license() for information.        |
   --

   Please wait while the Sage Notebook server starts...
   ...
   notebook(secure=True)
   The notebook files are stored in: sage_notebook.sagenb
   In order to use an SECURE encrypted notebook, you must first run
   notebook.setup().
   Now running notebook.setup()
   Using dsage certificates.
   ==
   Generating public/private key pair for authentication...
   Your key will be stored in /home/sage/.sage/dsage/dsage_key
   Just hit enter when prompted for a passphrase
   ==
   /home/sage/.sage/dsage/dsage_key already exists.
   Overwrite (y/n)?

   Client configuration finished.

   Worker configuration finished.

   Choose a domain name for your SAGE notebook server,
   for example, localhost (personal use) or ubuntu.chosun.ac.kr (to allow
   outside connections).
   Domain name [localhost]:
   Using default localhost
   ==
   Generating SSL certificate for server...
   Using certtool to generate key
   certtool --generate-privkey --outfile /home/sage/.sage/dsage/
   cacert.pem
   Generating a 2048 bit RSA private key...

   Any idea to fix the problem?

  I have seen that.  I think it's a bug in certtool.  I don't know how
  to fix the problem though.  You might try installing all
  openssl-related Ubuntu packages...

  William

-- 
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] Automatic coercion between polynomial rings

2009-10-07 Thread Andrey Novoseltsev

Is the following behaviour a  bug or an intended one?

sage: R1 = PolynomialRing(QQ, x, y)
sage: R2 = PolynomialRing(QQ, y, x)
sage: R3 = PolynomialRing(QQ, a1, a2)
sage: R1.inject_variables()
Defining x, y
sage: print R1(R3(R2(x))), R1(R3(R2(y)))
y x

Personally I don't think that R3 has any relation to R1 and R2,
therefore there should be no conversion possible without some extra
work.

Thank you,
Andrey
--~--~-~--~~~---~--~~
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: What is the difference between double and single quotes?

2009-02-03 Thread Andrey Novoseltsev

On Feb 3, 12:36 pm, Carl Witty carl.wi...@gmail.com wrote:
 On Feb 2, 10:38 pm, Andrey Novoseltsev novos...@gmail.com wrote:

  Hello,

  I was sure there is no difference in Python and Sage. However, when I
  try to return I_0 in _latex_ function of my class, it typesets as
  I_0, because somehow it gets wrapped into \text{I\_0}. When I change
  the return value to 'I_0' everything works as expected. Why is it so
  and are there other differences?

 I was also sure that there was no difference, so this doesn't make
 sense to me.

 Are you sure that's the only thing you changed?

I was sure that this was the only thing that I have changed, but
apparently I cannot replicate it - if I change back to double quotes,
everything works fine now. On the other hand I remember that I already
had this issue in the past - not being able to output latex version of
the object as I want, because it was interpreted as text.


 Are you calling the _latex_ method directly to test this, or how are
 you testing?


I was using typeset mode in notebook and when I saw that it does not
look like I want, I clicked on the output to see the latex code, that
was wrapping my latex output as text rather than math. Maybe there
was something wrong with reloading the class definition after defining
the _latex_ method. Well, at least it is pleasant to know that there
should be no difference, I'll report if I can see this behaviour again
and can reproduce it.

 Carl

Thank you!
Andrey
--~--~-~--~~~---~--~~
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] What is the difference between double and single quotes?

2009-02-02 Thread Andrey Novoseltsev

Hello,

I was sure there is no difference in Python and Sage. However, when I
try to return I_0 in _latex_ function of my class, it typesets as
I_0, because somehow it gets wrapped into \text{I\_0}. When I change
the return value to 'I_0' everything works as expected. Why is it so
and are there other differences?

Thank you,
Andrey
--~--~-~--~~~---~--~~
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: Maple in Sage on Mac

2009-01-16 Thread Andrey Novoseltsev


 This is a known bug:

 http://trac.sagemath.org/sage_trac/ticket/2120

 I hope it gets looked at again at Sage Days next week (which is a week
 of developers fixing bugs).


I will be really glad if this happens!

Andrey
--~--~-~--~~~---~--~~
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: Normalizing symbolic polynomial

2008-07-19 Thread Andrey Novoseltsev

On Jul 19, 7:35 am, William Stein [EMAIL PROTECTED] wrote:
 sage: f.coeffs(t)
 [[1, -2], [sqrt(a), 1]]

 Notice the -2, which gives the degree.

Thank you, that's exactly what I wanted!

Andrey
--~--~-~--~~~---~--~~
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] Fractional powers for polynomial variables

2008-07-18 Thread Andrey Novoseltsev

Hello,

I need to substitute some variable in a polynomial ring with a
fractional power of another one. I know that the result still will be
a polynomial, however I have discovered the following behaviour (v.
3.0.5 on sage.math):

sage: pr = PolynomialRing(QQ, u,v)
sage: pr.injvar()
Defining u, v
sage: u^(1/2)
1
sage: pr = PolynomialRing(QQ, w)
sage: pr.injvar()
Defining w
sage: w^(1/2)
---
TypeError Traceback (most recent call
last)

/home/novoselt/ipython console in module()

/home/novoselt/polynomial_element.pyx in
sage.rings.polynomial.polynomial_element.Polynomial.__pow__ (sage/
rings/polynomial/polynomial_element.c:8179)()

/home/novoselt/element.pyx in
sage.structure.element.RingElement.__mul__ (sage/structure/element.c:
8814)()

/home/novoselt/coerce.pyx in
sage.structure.coerce.CoercionModel_cache_maps.bin_op_c (sage/
structure/coerce.c:5582)()

TypeError: unsupported operand parent(s) for '*': 'type 'list'' and
'Rational Field'
sage: sqrt(w)
sqrt(w)

Is it how things were supposed to work for some reason or a bug?

Thank you,
Andrey
--~--~-~--~~~---~--~~
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] Normalizing symbolic polynomial

2008-07-18 Thread Andrey Novoseltsev

Hello,

I have a symbolic expression which is a polynomial in t and t^(-1). I
want to multiply it by some power of t so that it is a polynomial of
t. How can I determine this power? Coefficients are some symbolic
expressions in other variables, e.g. sqrt(a)*t+1/t^2.

Thank you,
Andrey
--~--~-~--~~~---~--~~
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] Mixing polynomial rings

2008-06-03 Thread Andrey Novoseltsev

Hello,

What is wrong with the code below and how to fix it? I have a function
that produces a polynomial in t. Then I want to plug in u/v in another
function. The code works if I replace QQ by ZZ at least for the first
ring, but rationals seem to be much faster.

Thank you!
Andrey


Rt.t = PolynomialRing(QQ,1)
p = 1+t
R.u,v = PolynomialRing(QQ, 2)
p(u/v)

Output:

Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/novoselt/.sage/sage_notebook/worksheets/admin/27/code/
50.py, line 9, in module
p(u/v)
  File /home/novoselt/sage/sage-3.0.1/local/lib/python2.5/site-
packages/sympy/plotting/, line 1, in module

  File multi_polynomial_libsingular.pyx, line 1461, in
sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular.__call__
(sage/rings/polynomial/multi_polynomial_libsingular.cpp:10503)
TypeError: object of type 'FractionFieldElement' has no len()
--~--~-~--~~~---~--~~
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] Time limit for computation

2008-05-26 Thread Andrey Novoseltsev

Is there any way to automatically terminate the current computation if
it takes longer than given amount of time (say, a minute)? I want it
to be inside a loop that will stop some iterations and continue, if
they are taking too long.

Thank you,
Andrey

--~--~-~--~~~---~--~~
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: Time limit for computation

2008-05-26 Thread Andrey Novoseltsev

Thank you, that's exactly what I need!

Andrey

On May 26, 4:46 pm, William Stein [EMAIL PROTECTED] wrote:
 On Mon, May 26, 2008 at 4:38 PM, Andrey Novoseltsev [EMAIL PROTECTED] wrote:

  Is there any way to automatically terminate the current computation if
  it takes longer than given amount of time (say, a minute)? I want it
  to be inside a loop that will stop some iterations and continue, if
  they are taking too long.

 Yes, I wrote something to do this a long time ago.
 Use the alarm command:

 {{{id
 alarm(3)
 for i in range(10):
     print i
     sleep(1)
 ///

 0
 1
 2
 Traceback (most recent call last):        sleep(1)
   File /Users/was/s/local/lib/python2.5/site-packages/sympy/plotting/,
 line 3, in module

   File /Users/was/s/local/lib/python2.5/site-packages/sage/misc/misc.py,
 line 1345, in __mysig
     raise KeyboardInterrupt, computation timed out because alarm was
 set for %s seconds%__alarm_time
 KeyboardInterrupt: computation timed out because alarm was set for 3 seconds



 }}}- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---