Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

python file in package not working

Hi! I have spent more than 40 hours figuring out how to install linux, then sage (from source), and even got a github account going for a new project.

I have a python file which only has the text:

def testThis(): var('x') return integrate(x,x)

But I am getting an error about the var command. If i remove it then it doesn't even recognize the integrate command.

What do I need to do in order for sage to recognize these commands? They work in sage, but why won't they work in python?

Many Thanks! I can't wait to actually start programming!

python file in package not workingworking, not recognizing "integrate" method, why?

Hi! I have spent more than 40 hours figuring out how to install linux, then sage (from source), and even got a github account going for a new project.

I have a python file which only has the text:

def testThis(): var('x') return integrate(x,x)

But I am getting an error about the var command. If i remove it then it doesn't even recognize the integrate command.

What do I need to do in order for sage to recognize these commands? They work in sage, but why won't they work in python?

Many Thanks! I can't wait to actually start programming!