It also disappears on page refresh/reload. The "culprit" seems to be in Cell.html(), which renders a cell as HTML, around line 1630 of cell.py:
if 'hideall' in self.percent_directives(): s = html_out else: s = html_in + introspect + html_out I'm still confused about the purpose of %hideall. Anyway, to get %hide to work, scroll down to Cell.html_in() and add something like if 'hide' in self.percent_directives(): return '' to the "if do_print:" conditional. lmc70 wrote: > I got a new issue after change to %hideall. Each time reopening the > workbook the %hideall cell is missing (the results are still there). > Cannot see the greyed %hideall and tried to click that area still > won't activate the hidden cell. I have to use the edit to comment > %hideall to let the cell shows up. It seems like if you don't close > and reopen the worksheet the greyed %hideall is always there, it > dispears only after you reopen it. > > lmc > > On Apr 8, 6:51 pm, lmc70 <limingche...@gmail.com> wrote: >> %hideall works. Thank you Pat also William. >> >> Maybe there are better ways to do it, but I don't know yet. What I am >> doing is to use the notebook like MathCad, it shows the equations and >> the results, also the comments. However, I don't want to show the >> lines of 'print "xxxx", xxxx', so I put all the print statements in >> one separate cell and hide it, so they won't show up in the >> printouts. >> >> Again, thank you and best regards, >> lmc >> >> On Apr 8, 4:50 pm, Pat LeSmithe <qed...@gmail.com> wrote: >> >>> Try %hideall ? I assume the issue here is the visibility of *input* >>> cells, but what are the exact behaviors desired for %hide and %hideall >>> for interactive, printed, and published worksheets? >>> William Stein wrote: >>>> On Wed, Apr 8, 2009 at 11:21 AM, lmc70 <limingche...@gmail.com> wrote: >>>>> Hello, >>>>> %hide works fine in the worksheet but shows up when printing. Any >>>>> advice is appreciated. >>>>> - Sage3.4 VMWare Image >>>>> - Dell Vostro 200 desktop >>>> This is a bug now being tracked here: >>>> http://trac.sagemath.org/sage_trac/ticket/5718 > > --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---