Is there any way to automatically create a transcript of an interactive Python session?

Discussion in 'Python' started by Jonathan Mark, Feb 18, 2007.

  1. Some languages, such as Scheme, permit you to make a transcript of an
    interactive console session. Is there a way to do that in Python?
     
    Jonathan Mark, Feb 18, 2007
    #1
    1. Advertisements

  2. Jonathan Mark

    Roy Smith Guest

    In article <>,
    "Jonathan Mark" <> wrote:

    > Some languages, such as Scheme, permit you to make a transcript of an
    > interactive console session. Is there a way to do that in Python?


    I don't know of any way *inside* of python, but it's easy enough to run
    your interactive python session inside of something like "script", an emacs
    shell buffer, etc.
     
    Roy Smith, Feb 18, 2007
    #2
    1. Advertisements

  3. Jonathan Mark

    Kent Johnson Guest

    Re: Is there any way to automatically create a transcript of an interactivePython session?

    Jonathan Mark wrote:
    > Some languages, such as Scheme, permit you to make a transcript of an
    > interactive console session. Is there a way to do that in Python?
    >

    Maybe IPython's logging feature is what you want?
    http://ipython.scipy.org/doc/manual/node6.html#SECTION00066000000000000000

    Kent
     
    Kent Johnson, Feb 19, 2007
    #3
  4. Jonathan Mark

    Guest

    Re: Is there any way to automatically create a transcript of aninteractive Python session?

    Jonathan> Some languages, such as Scheme, permit you to make a
    Jonathan> transcript of an interactive console session. Is there a way
    Jonathan> to do that in Python?

    If you decide not to use IPython for some reason, you should be able to
    easily whip something up based on the command history features of the
    readline module or one of the interpreter classes in the code module.

    Skip
     
    , Feb 25, 2007
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    1,156
    Bruce Barker
    Nov 14, 2005
  2. Replies:
    1
    Views:
    689
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Mar 21, 2006
  3. Charles Fox
    Replies:
    3
    Views:
    1,888
    Charles Fox
    Apr 15, 2005
  4. Big Daddy
    Replies:
    2
    Views:
    493
    Laurent Bugnion
    May 8, 2006
  5. lihua
    Replies:
    19
    Views:
    1,168
    CBFalconer
    Jul 7, 2005
  6. Avner
    Replies:
    5
    Views:
    498
    Ian Collins
    Jun 27, 2006
  7. mark4asp
    Replies:
    1
    Views:
    700
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Apr 3, 2007
  8. Andries

    is there a way ..... any way

    Andries, Apr 26, 2004, in forum: Perl Misc
    Replies:
    27
    Views:
    557
    Robin
    Apr 27, 2004
Loading...