On Nov 28, 3:00 pm, David Joyner <wdjoy...@gmail.com> wrote: > On Sat, Nov 28, 2009 at 5:43 PM, Le Fou Volant <alexaguilla...@gmail.com> > wrote: > > > Hello, > > > How can I import Python modules into Sage? Into the notebook would be > > best. > > I think you do it in the usual way that you would for ordinary Python. I don't think it can work. I tried and it didn't work. When you do the "import" command, Python looks in its default path plus whatever you set in PYTHONPATH. So imagine you have Sage and numpy separately on your computer. For Sage to pick the right numpy, I would imagine it bypasses the default PYTHONPATH. That would make sense.
Alex > > Did you try and get an error? If so, could you post the statement > you tried and the traceback? > > > Intuitively, I would have to set Python and Sage paths so that they > > coexist in > > a constructive way. I found on this post that a SAGE_PATH should exist > > however I could not find any trace of it in the official documentation > > (tutorial > > and reference manual). > > > Alex > > > -- > > To post to this group, send email to sage-support@googlegroups.com > > To unsubscribe from this group, send email to > > sage-support-unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/sage-support > > URL:http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org