Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Import Module from Another File in Cloud

Hi,

I am using Sage in the cloud. I have a project folder (obviously) and within that I created a worksheet and a sub-dir called "functions". Can I create files within "function" and then import modules from within those files in my main worksheet.

e.g. in top level main file:

import myFunc from functions/function_file.py

This would help keep things a bit tidier.

Thanks in advance.