On 03/06/2010 09:36 PM, Gokhan Sever wrote: > On Mar 6, 11:23 pm, Gokhan Sever <gokhanse...@gmail.com> wrote: >> When I run the code in shell using "python file.py" I don't get any >> results from function mapping printed out however in Sage-Notebook I >> see a huge output with WARNING: Output truncated! >> >> Any ideas what might be causing this issue? >> Thanks. > > if I do in Sage Notebook: > > foo = pool.map(f, range(1000000)) > > Then it works fine.
This *may* be a consequence of sagenb.misc.format.displayhook_hack which formats a cell's input "so that when exec'd last line is printed if it is an expression." By the way. It seems that both sage: import sagenb.misc.format sage: sagenb.misc.format.displayhook_hack? sage: sagenb.misc.format.displayhook_hack?? don't render properly in the on the command-line. The latter does in the notebook. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org