| 1 | initial version |
Use Data -> Upload to upload your python file, say, myfile.py. Then, in a cell, type
load(DATA + 'myfile.py')
This will load your python file. If you want to only import certain objects then you can write the following in a cell
os.environ['PYTHONPATH'] += DATA
from myfile import myfunction
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.