# Background

I am working in the notebook GUI.

I have code that produces graphics (.png files) to display arrays with colors satisfying certain combinatorial criteria. When the output gets too long, Sage returns the message

WARNING: Output truncated!
full_output.txt


The .txt file contains some html code, but doesn't display in a web browser.

# Question

How do I see my graphical arrays?

Sammy Black
81 1 1 8
It would be very helpful to have a minimal case that produces this. You can get it by having a loop like "for i in range(100000): print factorial(i)" but I haven't seen it in this context.  (Mar 30 '11)
This seems to be related: http://osdir.com/ml/sage-support/2009-10/msg01882.html (Apr 02 '11)
By the way, wrapping the .txt file in standard HTML headers and <body> etc. then renaming that to html *might* work... just a random chance.  (Apr 02 '11)

 3 Try writing your output to an html file. Do something like: f=open('myoutput.html','w') f.write(some output) f.write(some more output) f.close()  That file should appear as a link in the output of the cell. If you click on the link, you should see your output as an html file. posted Apr 05 '11 Jason Grout 3305 ● 7 ● 28 ● 74 This could be helpful to have on the standard notebook help page as an FAQ or something. kcrisman (Apr 06 '11)
 3 I found this solves the problem: put this line in your notebook cell before you create output. html('')  Worked for me. posted Mar 13 '12 akm 41 ● 2 ● 3

[hide preview]