ma...@mendelu.cz wrote: > > I was not able to find these informations in documentation. Should > this be documented? Or is this trivial thing for skilled programers in > Python?
It should probably be documented somewhere (I don't know if it is). A google search for "sage log pexpect" yields this as the second hit: http://www.mail-archive.com/sage-devel@googlegroups.com/msg19464.html which says: First export SAGE_PEXPECT_LOG=yes this environment variable will cause all pexpect traffic to be logged to files in $DOT_SAGE/pexpect_log, i.e. usually $HOME/.sage/ pexpect_log. That way you can see *exactly* what was passed to maxima and what came back. ja...@littleone:~$ export SAGE_PEXPECT_LOG=yes ja...@littleone:~$ sage ---------------------------------------------------------------------- | Sage Version 4.1.2.alpha2, Release Date: 2009-09-21 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- ********************************************************************** * * * Warning: this is a prerelease version, and it may be unstable. * * * ********************************************************************** sage: var('x') x sage: solve(x^2-1==1,x) [x == -sqrt(2), x == sqrt(2)] sage: Exiting SAGE (CPU time 0m0.14s, Wall time 0m31.32s). Exiting spawned Maxima process. ja...@littleone:~$ cat ~/.sage/pexpect_logs/maxima-6160-173321188-2.log ;;; Loading #P"/home/jason/scratch/sage-4.1.2.alpha2/local/lib/ecl-9.8.4/defsystem.fas" ;;; Loading #P"/home/jason/scratch/sage-4.1.2.alpha2/local/lib/ecl-9.8.4/cmp.fas" ;;; Loading #P"/home/jason/scratch/sage-4.1.2.alpha2/local/lib/ecl-9.8.4/sysfun.lsp" Maxima 5.19.1 http://maxima.sourceforge.net Using Lisp ECL 9.8.4 Distributed under the GNU Public License. See the file COPYING. Dedicated to the memory of William Schelter. The function bug_report() provides bug reporting information. (%i1) 0;sconcat("__SAGE_SYNCHRO_MARKER_",(1526262204+1)); <sage-display>(%o1) 0 <sage-display>(%o2) __SAGE_SYNCHRO_MARKER_1526262205 (%i3) display2d:false; domain: complex; keepfloat: true; load(topoly_solver); <sage-display> (%o3) false <sage-display> (%o4) complex <sage-display> (%o5) true <sage-display> (%o6) "/home/jason/scratch/sage-4.1.2.alpha2/local/share/maxima/5.19.1/share/contrib/topoly_solver.mac" (%i7) 0;sconcat("__SAGE_SYNCHRO_MARKER_",(728437426+1)); <sage-display> (%o7) 0 <sage-display> (%o8) "__SAGE_SYNCHRO_MARKER_728437427" (%i9) nolabels:true; <sage-display> (%o9) true (%i10) :lisp (defun tex-derivative (x l r) (tex (if $derivabbrev (tex-dabbrev x) (tex-d x '\\partial)) l r lop rop )) 0;sconcat("__SAGE_SYNCHRO_MARKER_",(1445884692+1)); TEX-DERIVATIVE (%i10) <sage-display> (%o10) 0 <sage-display> (%o11) "__SAGE_SYNCHRO_MARKER_1445884693" (%i12) 0; <sage-display> (%o12) 0 (%i13) sage0 : ((x)^(2))+(-1) = 1$ <sage-display> (%i14) 0;sconcat("__SAGE_SYNCHRO_MARKER_",(2078004392+1)); <sage-display> (%o14) 0 <sage-display> (%o15) "__SAGE_SYNCHRO_MARKER_2078004393" (%i16) sage1 : x$ <sage-display> (%i17) 0;sconcat("__SAGE_SYNCHRO_MARKER_",(1877817802+1)); <sage-display> (%o17) 0 <sage-display> (%o18) "__SAGE_SYNCHRO_MARKER_1877817803" (%i19) sage2 : solve(sage0,sage1)$ <sage-display> (%i20) kill(sage1)$kill(sage1)$0;sconcat("__SAGE_SYNCHRO_MARKER_",(1620926103+1)); <sage-display><sage-display> (%o21) 0 <sage-display> (%o22) "__SAGE_SYNCHRO_MARKER_1620926104" (%i23) sage2; <sage-display> (%o23) [x = -sqrt(2),x = sqrt(2)] (%i24) kill(sage2)$kill(sage2)$0;sconcat("__SAGE_SYNCHRO_MARKER_",(1240911579+1)); <sage-display><sage-display> (%o25) 0 <sage-display> (%o26) "__SAGE_SYNCHRO_MARKER_1240911580" (%i27) _tmp_ : [x=-sqrt(2),x=sqrt(2)]$ <sage-display> (%i28) 0;sconcat("__SAGE_SYNCHRO_MARKER_",(1933389033+1)); <sage-display> (%o28) 0 <sage-display> (%o29) "__SAGE_SYNCHRO_MARKER_1933389034" (%i30) _tmp_; <sage-display> (%o30) [x = -sqrt(2),x = sqrt(2)] (%i31) kill(sage0)$quit(); kill(sage0)$quit(); Thanks, Jason -- Jason Grout --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---