Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Importing user SAGE files "pythonically"

Hello,

I'm wondering if there's a more "pythonic" way in which to import user-written SAGE modules.

For instance, I'm able to load in a SAGE file I've written using the load keyword.

load(path_to_sage_file)

That's all well and good, however, as I start to import more and more user SAGE files, where certain functions are coming from becomes less clear. It would be ideal to do something like

from name_of_sage_file import name_of_sage_function

However, this doesn't seem to work. Is there a more "pythonic" way in which to go about doing this? Thanks!