I think a Sage interact should go in the new "interactive" element (though I
have not decided exactly how). You would definitely not normally see the code.
The code would be transparent in the PTX source, and probably also in the
PTX-generated HTML. Things like doctesting could, and likely would, be handled
differently. Almost surely "sandboxed" from the rest of the page, the total
opposite of current shared variables. So I agree with Mitch, and it also solves
a lot of practical problems as a result of knowing that the code is an interact.
That said, Tom's example of an R plot of data, could have a monstorous amount of
data backing it, and nobody wants to see all that. And maybe it is more than
just what "sageplot" would buy you. And I don't think the Cell server can read
from a local file like you'd like here. So I see some utility in (selectively)
hiding some cells. Though I swear I tried this once and it "didn't work."
I'll experiment.
Rob