Re: [sage-devel] Re: Creating a new module and integrating it into Sage for testing

2014-05-22 Thread mmarco
you have to import the module. 

If you want to be imported automatically at startup, you should edit the 
file all.py.

El jueves, 22 de mayo de 2014 22:47:55 UTC+2, Amit Jamadagni escribió:
>
> Hello John,
> Thanks for the reply but sage shell does not detect the link class 
> which is in link.py. I have added an empty file __init__.py. Any help on 
> this ?? Thanks 
>
>
> On Fri, May 23, 2014 at 12:06 AM, John H Palmieri 
> 
> > wrote:
>
>>
>> On Thursday, May 22, 2014 11:29:51 AM UTC-7, Amit Jamadagni wrote:
>>>
>>> Hello everyone,
>>> I have been working on writing a Link class and integrating 
>>> into Sage as a part of GSoC 2014. I have managed to get the code working 
>>> and tested it by loading the file into Sage environment. But when I make a 
>>> new folder called knots and add the link.py into it and try building sage 
>>> by giving in ./sage -b it does not recognize the added file. Any help on 
>>> this would be really great. Thanks.
>>>
>>
>>
>> Try adding an empty file called __init__.py to the directory. Does that 
>> help?
>>
>> -- 
>> John
>>
>>  
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-devel+...@googlegroups.com .
>> To post to this group, send email to sage-...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: [sage-devel] Re: Creating a new module and integrating it into Sage for testing

2014-05-22 Thread Amit Jamadagni
Hello John,
Thanks for the reply but sage shell does not detect the link class
which is in link.py. I have added an empty file __init__.py. Any help on
this ?? Thanks


On Fri, May 23, 2014 at 12:06 AM, John H Palmieri wrote:

>
> On Thursday, May 22, 2014 11:29:51 AM UTC-7, Amit Jamadagni wrote:
>>
>> Hello everyone,
>> I have been working on writing a Link class and integrating
>> into Sage as a part of GSoC 2014. I have managed to get the code working
>> and tested it by loading the file into Sage environment. But when I make a
>> new folder called knots and add the link.py into it and try building sage
>> by giving in ./sage -b it does not recognize the added file. Any help on
>> this would be really great. Thanks.
>>
>
>
> Try adding an empty file called __init__.py to the directory. Does that
> help?
>
> --
> John
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

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


[sage-devel] Re: Creating a new module and integrating it into Sage for testing

2014-05-22 Thread John H Palmieri

On Thursday, May 22, 2014 11:29:51 AM UTC-7, Amit Jamadagni wrote:
>
> Hello everyone,
> I have been working on writing a Link class and integrating 
> into Sage as a part of GSoC 2014. I have managed to get the code working 
> and tested it by loading the file into Sage environment. But when I make a 
> new folder called knots and add the link.py into it and try building sage 
> by giving in ./sage -b it does not recognize the added file. Any help on 
> this would be really great. Thanks.
>


Try adding an empty file called __init__.py to the directory. Does that 
help?

-- 
John

 

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


[sage-devel] Creating a new module and integrating it into Sage for testing

2014-05-22 Thread Amit Jamadagni
Hello everyone,
I have been working on writing a Link class and integrating 
into Sage as a part of GSoC 2014. I have managed to get the code working 
and tested it by loading the file into Sage environment. But when I make a 
new folder called knots and add the link.py into it and try building sage 
by giving in ./sage -b it does not recognize the added file. Any help on 
this would be really great. Thanks.

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


Re: [sage-devel] What is missing in ipython notebook to be usable within Sage ?

2014-05-22 Thread William Stein
On Thu, May 22, 2014 at 10:00 AM, Thierry
 wrote:
> Hi,
>
> ipython notebook is a nice software which may be a good alternative to
> sage notebook, especially in being long-term maintained (by a team of
> people focussed on notebooks, not mathematics). However, it is not clear
> to me what remains to be done in order not to lose interesting features
> of sage notebook.
>
> I started a page on the wiki to list all missing features of the ipython
> notebook, which may help us to work toward ipython integration, please
> do not hesitate to edit it, and open tickets.
>
> http://wiki.sagemath.org/IpythonNotebook

I've added a few remarks.   IPython Notebook is of course very good,
but when you look at particular design choices, it is almost always
the opposite choice as was made in sagenb (just as the design of Magma
and Matlab are very, very different), so there is going to be some
inevitable friction for users moving between the two platforms.

 -- William

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



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

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


[sage-devel] What is missing in ipython notebook to be usable within Sage ?

2014-05-22 Thread Thierry
Hi,

ipython notebook is a nice software which may be a good alternative to
sage notebook, especially in being long-term maintained (by a team of
people focussed on notebooks, not mathematics). However, it is not clear
to me what remains to be done in order not to lose interesting features
of sage notebook.

I started a page on the wiki to list all missing features of the ipython
notebook, which may help us to work toward ipython integration, please
do not hesitate to edit it, and open tickets.

http://wiki.sagemath.org/IpythonNotebook

Ciao,
Thierry

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


[sage-devel] Re: What to use instead of `%display typeset`

2014-05-22 Thread Volker Braun
This was broken in the IPython update, I think. I've hooked up our existing 
"typeset" displayhook to also work in IPython.

http://trac.sagemath.org/16389

With the ticket, the output is:

sage: %display typeset
sage: 1/2
\newcommand{\Bold}[1]{\mathbf{#1}}\frac{1}{2}



On Thursday, May 22, 2014 5:31:49 AM UTC+1, Ivan Andrus wrote:
>
> There is a thread on sage-support [0] in which it is lamented that 
> typesetting results in Emacs is broken.  This is because `%display typeset` 
> doesn’t work in 6.2.  Since I know not everyone reads sage-support, I 
> thought I would ask here what I should use instead of `%display typeset`. 
>  See also the related ticket [1] where it was suggested to use `%display 
> typeset`. 
>
> Thanks, 
> Ivan 
>
> [0] https://groups.google.com/forum/#!topic/sage-support/HD_g24L7ta8 
> [1] http://trac.sagemath.org/ticket/15271

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