[sage-support] Re: Best way to develop Sage packages?

2012-04-02 Thread Volker Braun
I agree that you don't have to modify module_list.py (which probably should be replaced at one point by something that doesn't rely on a single file having information about all modules, but I digress). Emil mentioned in his OP that he is editing modules_list for some reason. On Monday,

Re: [sage-support] Re: Best way to develop Sage packages?

2012-04-02 Thread Emil
Thanks for everyone's help. I decided to make it a package that can be installed like: sage -python setup.py install My setup.py is as follows (except I changed the name of the package). I arrived at its contents by trial and error, so if anyone could have a quick look at it to see if there is

Re: [sage-support] Re: Best way to develop Sage packages?

2012-04-02 Thread John H Palmieri
On Monday, April 2, 2012 8:32:18 AM UTC-7, Emil wrote: Thanks for everyone's help. I decided to make it a package that can be installed like: sage -python setup.py install My setup.py is as follows (except I changed the name of the package). I arrived at its contents by trial and error,

Re: [sage-support] Re: %cython failing in notebook because of accessing the wrong directory

2012-04-02 Thread Maarten Derickx
In your setup everything worked ok. You just defined a function called hello. The function was never executed so you didn't see anything. To execute the function try the following: hello() Considdering you are new with sage I suggest first learn how to use python (and don't use the %cython).

Re: [sage-support] Re: Best way to develop Sage packages?

2012-04-02 Thread Emil
Thanks! Actually, I have a little problem. In setup.py I have: Extension('thing', sources=['mypackage/thing.pyx'], include_dirs = [SAGE_LOCAL + '/lib/python/site-packages/numpy/core/include',

[sage-support] Gaussian Quadrature interact: t_roots error

2012-04-02 Thread Bruce Cohen
I am trying to reproduce Jason's Gaussian Quadrature interact http://wiki.sagemath.org/interact/calculus#Gaussian_.28Legendre.29_quadrature When I copy and paste it into a single cell I get: error NameError Traceback (most recent call last) /tmp/tmpI94uOV/string

[sage-support] Re: Gaussian Quadrature interact: t_roots error

2012-04-02 Thread Jason Grout
On 4/2/12 5:36 PM, Bruce Cohen wrote: I am trying to reproduce Jason's Gaussian Quadrature interact http://wiki.sagemath.org/interact/calculus#Gaussian_.28Legendre.29_quadrature When I copy and paste it into a single cell I get: error NameError Traceback (most

[sage-support] Re: Gaussian Quadrature interact: t_roots error

2012-04-02 Thread Jason Grout
On 4/2/12 5:51 PM, Jason Grout wrote: On 4/2/12 5:36 PM, Bruce Cohen wrote: I am trying to reproduce Jason's Gaussian Quadrature interact http://wiki.sagemath.org/interact/calculus#Gaussian_.28Legendre.29_quadrature When I copy and paste it into a single cell I get: error NameError Traceback

[sage-support] Re: Gaussian Quadrature interact: t_roots error

2012-04-02 Thread Bruce Cohen
Jason, Thanks for the quick response. Can you change the wiki page? I am assuming the you is me. I've placed the text from http://aleph.sagemath.org/?q=ab695bc1-ca44-4a6e-9b13-ad662b018429 into the wiki page. Copying from the wiki worked on alpha.sagemath.org but the permalink server

[sage-support] Re: Gaussian Quadrature interact: t_roots error

2012-04-02 Thread Jason Grout
On 4/2/12 9:12 PM, Bruce Cohen wrote: Jason, Thanks for the quick response. Can you change the wiki page? I am assuming the you is me. I've placed the text from http://aleph.sagemath.org/?q=ab695bc1-ca44-4a6e-9b13-ad662b018429 http://aleph.sagemath.org/?q=ab695bc1-ca44-4a6e-9b13-ad662b018429

Re: [sage-support] Bug in edge_cut of undirected weighted graphs

2012-04-02 Thread Stephen Hartke
Doug, thanks for the smaller example! The bug may be dependent on the labels of the vertices, as all the similar small examples I tried to create worked successfully with edge_cut. I've created a trac request: ticket 12797http://trac.sagemath.org/sage_trac/ticket/12797 . Best wishes, Stephen

[sage-support] Re: Gaussian Quadrature interact: t_roots error

2012-04-02 Thread Bruce Cohen
On Monday, April 2, 2012 8:05:40 PM UTC-7, Jason Grout wrote: I'm curious: what do you mean by the permalink server is down? Do you mean that when you click on the permalink, it says The server is down? Yes. The server is not actually down, but the URL is too long. We should make a