[IPython-user] IPython 0.6.0 on OS X.3.3

Ted Leung twl at sauria.com
Thu May 27 18:00:05 CDT 2004


Hi,

I upgraded to IPython 0.6, and now autologging doesn't work.

in my .ipython ipythonrc I have:
log 1

auto logging seems to be broken.  Here's a session transcript:

Python 2.3 (#1, Sep 13 2003, 00:49:11)
Type "copyright", "credits" or "license" for more information.

IPython 0.6.0 -- An enhanced Interactive Python.
?       -> Introduction to IPython's features.
@magic  -> Information about IPython's 'magic' @ functions.
help    -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

Activating auto-logging.
Current session state plus future input saved to: ipython.log
Logging mode:  rotate


Error messages. Log by Configuration Loader:
WARNING: Couldn't start log: [Errno 2] No such file or directory

In [1]: @logstate

File:   ipython.log
Mode:   rotate
State:  temporarily suspended

In [2]: @logoff

Logging hasn't been started yet (use @logstart for that).

@logon/@logoff are for temporarily starting and stopping logging for a 
logfile
which already exists. But you must first start the logging process with
@logstart (optionally giving a logfile name).

In [3]: @logstart
Activating auto-logging.
Current session state plus future input saved to: ipython.log
Logging mode:  rotate
WARNING: Couldn't start log: [Errno 2] No such file or directory

In [4]: @logstart ipython.log
Activating auto-logging.
Current session state plus future input saved to: ipython.log
Logging mode:  backup


----
Ted Leung                          Blog: <http://www.sauria.com/blog>
PGP Fingerprint: 1003 7870 251F FA71 A59A  CEE3 BEBA 2B87 F5FC 4B42




More information about the IPython-user mailing list