Re: [sage-support] Importing a Python module

2010-07-20 Thread Mike Hansen
On Tue, Jul 20, 2010 at 8:58 AM, KvS wrote: > So I guess my problem is that I don't understand the namespaces > involved somehow, since sgn() lives somewhere in a Sage namespace and > importing doesn't place the code in the right name space or something? > Does anybody have a hint how I may do thi

[sage-support] Importing a Python module

2010-07-20 Thread KvS
Dear all, I was trying to find a way to import code form a python file to my notebook (the reason is mainly to save long code in a different place as just a plain text file, and also to be able to work on the code in a Python editor). However, if I copy-paste working code from a notebook to an edi