Ask Your Question
1

How to locate sage at Python shell

asked 2013-03-30 17:56:15 +0100

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
2

answered 2013-03-30 19:42:27 +0100

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

Comments

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/file.py")

Chitrank Dixit gravatar imageChitrank Dixit ( 2013-03-31 14:38:40 +0100 )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

Stats

Asked: 2013-03-30 17:56:15 +0100

Seen: 353 times

Last updated: Mar 30 '13