On Mon, Aug 25, 2008 at 6:45 PM, William Stein <[EMAIL PROTECTED]> wrote: > >>> i'am testing a Python module i wrote and placed it in one of the >>> pathes visited by Sage's Python while importing. >>> >>> I try to do the necessary imports at the beginning of my module but it >>> seem's to be an endless quest. > > What do you think "the necessary imports" are? Could you be way more > precise? > >>>
I wrote few classes to plot graphs in a special way. All the code worked fine if placed in a cell at the beginning of the worksheet. As far as it makes a very long cell, it is boring for the reader so i thought i could place all this in an external file and use : from FooBar import * but, naturally, the Sage commands i use in that file are unkown in the Module namespace. I started adding many import statements, one for each "unknown" command. But vector computation seemed to be needing a lot of imports. That's why i'am asking for advice. (and if it sounds like "support", i am again on the wrong list...:-[) Philippe --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] 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://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
