Ask Your Question

How to locate sage at Python shell

asked 2013-03-30 11:56:15 -0500

Chitrank Dixit gravatar image

I am using sage on Localhost and on Sage command Shell but I am unable to use it with Python Command Shell. I am working on a Project that needs Tkinter to take User Input and Sage to produce the Output.

Is there any way to use Sage with Tkinter (Sorry I am new to Sage if this might be a weird question)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-03-30 13:42:27 -0500

Volker Braun gravatar image

Sage includes its own private Python install (run sage -python or sage -ipython to get to it). It does not see the OS tkinter install if there is any.

To get tkinter in Sage you just have to install the tk development packages on your host and then compile Sage. This will then compile Sage's own Python with tk enabled.

edit flag offensive delete link more


I need to make a working desktop based application using Tkinter using sage. I am able to import Tkinter in sage but when I try to run a Tkinter file from sage I am unable to do so. (using "sage -python /filepath/")

Chitrank Dixit gravatar imageChitrank Dixit ( 2013-03-31 07:38:40 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-03-30 11:56:15 -0500

Seen: 126 times

Last updated: Mar 30 '13