This is one of the things I'd been planning on adding to the new programming
guide.

Your issue is that you're creating a new directory.  When you do that, you
have to add that directory to the list of packages at the bottom of
setup.pyin sage-root/devel/sage-branch/
You should also put an __init__.py file in your new directory, and probably
also an all.py file that controls the imports of that directory for the sage
namespace.

Things get more complicated if you want to add cython files, but you're not
doing that at the moment.
David

On Nov 20, 2007 7:03 AM, Jason Grout <[EMAIL PROTECTED]> wrote:

>
> Hi everyone,
>
> I have a simple question: I'm trying to write a new class in a new file.
>  How do I get that file to show up in Sage?  In this case, I'm trying
> to write a menu.py file under the sage/server/notebook/widgets directory
> (a  new directory).  But when starting up SAGE with sage -br, it doesn't
> ever say anything about my file and I can't import my file like a normal
> Sage object (i.e., from sage.server.notebook.widgets import menu).
>
> Thanks,
>
> Jason
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to