No output when documentation say it should be
Hi all,
Consider http://doc.sagemath.org/html/en/refer... The very last command of this web page is
sage: for i in M.irange():
nab.torsion_form(i, e) == ef[i].exterior_derivative() + \
sum(nab.connection_form(i,j,e).wedge(ef[j]) for j in M.irange())
The output of this command should be: True, True, True, but I get no output at all.
In order to duplicate you should include also the previous commands beginning from the torsion_form
definition, over all 3 cells.
Daniel
It works for me (Sage 8.7.beta3, complied on Debian jessie 64bit, run from the command line). Could you please give us some informations so that someone can try to reproduce your problem:
Sage version is 8.4, Windows Native on a 64bit machine, installed from SageMath-8.4-Installer-v0.4.1.exe I did not compile Sage by myself. I use Jupyter Notebook. I don't use the command line. I did not get any errors. I just got no output at all
(more)Cont.
No output
OK I, do not have winows with me, let me just add the windows tag so that inerested people can focus on that.
I think the Sage doctest runner does use some tricks to output the value of the last statement in loops. I'm not exactly sure how that works. I think it might be this: every time you run a line of code in Python that is an expression, its value gets stored in a special variable
_
. So like:I think the doctest runner and/or the Sage command shell might do a trick with capturing the value of
_
and displaying it, but I'm not exactly sure how that works. But it leads to slightly deceptive doc examples like this since this is not normal behavior in Python or the Notebook