Ask Your Question

What advantages do Tcl/Tk offer while using sage?

asked 2012-02-16 05:00:44 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I am planning to install sage in Ubuntu 10.04. I need to know if installation of Tcl/Tk is absolutely necessary or is optional for use of sage. (The associated FAQ does not clearly state that.) I have not used python earlier so I am confused. The reason I am interested in installing sage is that I will often need to solve differential equations numerically and save the output plot in ps/eps/pdf format so that I can use this in latex input file. I may need to get help with other jobs like evaluating complicated integrations etc. So should I install Tcl/Tk or can I skip it?

edit retag flag offensive close merge delete



I don't have an answer for you, but your use case suggests that you might find SageTeX useful -, among other places.

kcrisman gravatar imagekcrisman ( 2012-02-16 05:39:54 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2012-02-16 07:52:19 -0500

Emil Widmann gravatar image

updated 2012-02-16 08:06:05 -0500

I can think of 2 situations where you could need TCL/TK. First is with R. if you download additional packages from CRAN servers, then TCL/TK provides a GUI Window to select the mirror. However there should be a fallback (text) mode - so this is not crucial.

The second possibility is if you want to use MATPLOTLIB directly from the python packages (scipy, numpy). TCL/TL is one possible "graphic backend". However in that case Sage needs to be compiled with compiler option MATPLOTLIBGUI=yes.

So bottom line: Probably you won't need TCL/TK and won't even notice if you don't have it.

edit flag offensive delete link more

answered 2013-12-25 18:56:51 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

On the other hand, if you want to use R packages, there are a few that depend on tcl/tk themselves (not just the download gui). Ggplot2 comes to mind. Whether you will be able to use the tcl/tk interfaces within these libraries is moot, but they definitely won't compile/install without them.

edit flag offensive delete link more

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: 2012-02-16 05:00:44 -0500

Seen: 482 times

Last updated: Dec 25 '13