Ask Your Question
1

How to locate sage at Python shell

asked 12 years ago

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)

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 12 years ago

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.

Preview: (hide)
link

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 ( 12 years ago )

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: 12 years ago

Seen: 402 times

Last updated: Mar 30 '13