Ticket #4 (closed enhancement: invalid)

Opened 4 years ago

Last modified 4 months ago

Ability to hide individual results

Reported by: ulrik.sverdrup@gmail.com Assigned to:
Priority: moderate Keywords:
Cc:

Description

Make it easier to copy and paste chunks inside reinteract, or copy a whole suite into another "pure" python script, but allowing the user to hide or clear the displayed/printed results.

Either we could have in effect everything marked for recomputation, or we could just have a toggleable state show/don't show for results.

It could also be solved by different copy-selection behaviors, but some users will want to copy just the results, some just the code and some the whole transcript (both).

Change History

11/14/07 19:50:59 changed by otaylor

Don't you always want either: a) just the python code or b) doctests format (see ticket #1)? I can't think of a case where I'd want to get just everything without distinction as currently. (And there's definitely no case where you want to copy a result and insert into the buffer tagged as not-editable, as happens currently!)

So, my instinct here is that the default should be to skip the results, and have a separate "copy as doctests", maybe with the short-cut control-shift-c

(The exception being when *just* a single result or part of a results is selected... then it should copy what's selected by default, since the user clearly didn't want to copy nothing.)

The one way I could imagine doing hide-results is treating it as "folding" - to be able to click in the margin to hide/show any result, then have options to "hide all results" and "show all results". That sounds useful just for working with the buffer, leaving aside cut-and-paste.

11/17/07 21:57:12 changed by otaylor

  • summary changed from Hide or clear result text to Ability to hide individual results.

I've committed:

  • Fixes so that by default copying doesn't include results
  • A "Copy as Doctests" menu item resolving ticket #1

I'm going to retitle this bug to refer to idea of temporarily hiding results while leaving them in the buffer.

09/27/11 23:45:39 changed by otaylor

  • status changed from new to closed.
  • resolution set to invalid.