Ticket #1 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Copy as doctests

Reported by: otaylor Assigned to: somebody
Priority: moderate Keywords:
Cc:

Description

Matt Harrison in a Blog Comment, said:

Is there a way to change the prompts so I can past code directly into doctests? (Ie, get >>> and … instead of your colored boxes)

I think the best way to achieve this would be to have a separate menu item to "Copy as doctests", that would copy the selected set of statements and their results into the clipboard properly formatted as doctests.

Change History

11/17/07 21:51:47 changed by otaylor

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

I've committed a simple implementation:

http://git.fishsoup.net/cgit/reinteract/commit/?id=2f8b34a0226c1404ebb92c8679dc964ec45bfbac

I haven't actually tested it with the doctest module so the output may be exactly right ... I'll wait for an actual user before tweaking it any more.

See also ticket #9 for pasting doctests back into Reinteract.

12/14/07 06:37:48 changed by owgzdfht

  • cc set to owgzdfht.
  • keywords set to 86870344.
  • summary changed from Copy as doctests to owgzdfht.
  • priority changed from moderate to critical.

[deleted]

12/14/07 07:21:30 changed by otaylor

  • cc deleted.
  • keywords deleted.
  • summary changed from owgzdfht to Copy as doctests.
  • priority changed from critical to moderate.

Reverting spam changes