ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 31 Mar 2013 14:38:40 +0200How to locate sage at Python shellhttps://ask.sagemath.org/question/9961/how-to-locate-sage-at-python-shell/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)Sat, 30 Mar 2013 17:56:15 +0100https://ask.sagemath.org/question/9961/how-to-locate-sage-at-python-shell/Answer by Volker Braun for <p>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.</p>
<p>Is there any way to use Sage with Tkinter (Sorry I am new to Sage if this might be a weird question)</p>
https://ask.sagemath.org/question/9961/how-to-locate-sage-at-python-shell/?answer=14711#post-id-14711Sage 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.
Sat, 30 Mar 2013 19:42:27 +0100https://ask.sagemath.org/question/9961/how-to-locate-sage-at-python-shell/?answer=14711#post-id-14711Comment by Chitrank Dixit for <p>Sage includes its own private Python install (run <code>sage -python</code> or <code>sage -ipython</code> to get to it). It does not see the OS tkinter install if there is any. </p>
<p>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.</p>
https://ask.sagemath.org/question/9961/how-to-locate-sage-at-python-shell/?comment=17980#post-id-17980I 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")Sun, 31 Mar 2013 14:38:40 +0200https://ask.sagemath.org/question/9961/how-to-locate-sage-at-python-shell/?comment=17980#post-id-17980