[sage-support] INSTALLATION ISSUE: SageMath 8.4 Apache Server Conflict

2018-12-12 Thread richard . w . bump
Not a question, just a For Your Information.

If you have an Apache server instance running there may be a conflict 
requiring you to modify your "httpd-vhosts.conf" file.  You may need to add 
something like this with  being the port number Sage is trying to run 
on.  The "ServerName" doesn't really seem to matter, but I put "Sage" in as 
a test and it worked.  My installation of the 8.4 app.dmg would not run the 
Jupyter notebook or for that matter the sage notebook until I made this 
modification.


   ServerName Sage


-- 
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: Solving recursion formula?

2018-12-12 Thread Simon King
On 2018-12-09, Marc Mezzarobba  wrote:
> Simon King wrote:
>> What about
>> a more complicated recurrence, such as the one given by
>> x_(n+1) = 1 + x_n*2/n
>> Any chances to solve those and similar recurrences automatically?
>
> You can try sympy's rsolve() or Maxima's solve_rec(). I don't know how 
> powerful they are.

Hi Marc,

I had a look and it seems that it is doing what I was looking for. Thank
you for the hint!

Coincidentally, William Stein today advertised a multi author book on doing
computations with Sage, and it has a chapter on solving recurrences,
also pointing to sympy.

Best regards,
Simon

-- 
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: attaching files in a jupyter notebook

2018-12-12 Thread Nils Bruin
I would expect magic commands to work a little differently in the jupyter 
gui than on the command line, so the possibility for an error doesn't 
surprise me too much. It can probably be fixed. However, a straight-up 
"attach('')" would hopefully work? It still needs to hook into 
the REPL to actually check for a changed file and do the reloading, but 
that has a better chance of being the same between the IPython CLI shell 
and the Jupyter notebook.


On Wednesday, December 12, 2018 at 9:15:46 AM UTC-8, John Cremona wrote:
>
> I have a file testcong.py which contains various functions I am 
> developing, while testing them in a jupyter notebook.  The first cell in 
> the notebook has the "magic" line "%run testcong.py" and so whenever I make 
> a change to the .py file I have to re-click on that cell.  This gets 
> tedious, especially when the testing notebook has may cells in it since I 
> am forever scrolling up and down.
>
> There has to be a better way.  From the command line one can use attach 
> instead of runfile (which automatically rereads the file when it changes) 
> but I cannot get that to work, even though there is a magic %attach command:
>
> %attach testcong.py
>
> fails with a weird error message which is incomprehensible to me:
>
> "UsageError: Invalid GUI request 'sage', valid ones are:['osx', 'widget', 
> 'qt5', None, 'qt', 'nbagg', 'gtk', 'qt4', 'gtk3', 'notebook', 'tk', 
> 'ipympl', 'inline', 'asyncio', 'wx']"
>
> while 
>
> %attach "testcong.py"
>
> (with quotes) is better, it just cannot find the file (which is in the 
> current directory, i.e. the one I started the notebook from).  But giving 
> the full pathname
>
> %attach "/home/jec/congruences/testcong.py"
>
> also gives "IOError: did not find file 
> '/home/jec/congruences/testcong.py"' to load or attach"
>
> What am I doing wrong?  I did try looking for documentation but failed...
>
>

-- 
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] attaching files in a jupyter notebook

2018-12-12 Thread John Cremona
I have a file testcong.py which contains various functions I am developing,
while testing them in a jupyter notebook.  The first cell in the notebook
has the "magic" line "%run testcong.py" and so whenever I make a change to
the .py file I have to re-click on that cell.  This gets tedious,
especially when the testing notebook has may cells in it since I am forever
scrolling up and down.

There has to be a better way.  From the command line one can use attach
instead of runfile (which automatically rereads the file when it changes)
but I cannot get that to work, even though there is a magic %attach command:

%attach testcong.py

fails with a weird error message which is incomprehensible to me:

"UsageError: Invalid GUI request 'sage', valid ones are:['osx', 'widget',
'qt5', None, 'qt', 'nbagg', 'gtk', 'qt4', 'gtk3', 'notebook', 'tk',
'ipympl', 'inline', 'asyncio', 'wx']"

while

%attach "testcong.py"

(with quotes) is better, it just cannot find the file (which is in the
current directory, i.e. the one I started the notebook from).  But giving
the full pathname

%attach "/home/jec/congruences/testcong.py"

also gives "IOError: did not find file '/home/jec/congruences/testcong.py"'
to load or attach"

What am I doing wrong?  I did try looking for documentation but failed...

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