[IPython-user] ipython and logging module
piotr.zolnierczuk@gmai...
piotr.zolnierczuk@gmai...
Tue Mar 10 16:05:54 CDT 2009
Hi,
we are using Python logging module
http://docs.python.org/library/logging.html to log activity in our data
acquisition system.
I would like to provide IPython as the Python interface to the users, but I
have a small problem when we initially start our session with
we import our base module (pydas) that spits a lot of information to the
screen about initializing hardware.
Somehow IPython "remembers" these lines (they a printed to sys.stderr) and
I have to press the Enter key a number of times to "get rid of them".
- see the "screen shot" at the end which is quite annoying
Am I doing something stupid?
I should mention we use WinXP box, Python 2.5.4 and IPython 0.9.1 and no
custom configuration
--- THE "SCREEN SHOT" -----
[DEBUG] 2009-03-10 17:00:22 snsnake ====== importing SNSnake
[INFO] 2009-03-10 17:00:22 snsnake detector instance created for XYdet
[INFO] 2009-03-10 17:00:22 snsnake instance created for shutter
[INFO] 2009-03-10 17:00:22 snsnake instance created for LSlit1
[INFO] 2009-03-10 17:00:22 snsnake instance created for LSlit1Request
imported daspassing
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.9.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
[INFO] 2009-03-10 17:00:22 snsnake instance created for LSlit1Status
[INFO] 2009-03-10 17:00:22 snsnake instance created for RSlit1
[INFO] 2009-03-10 17:00:22 snsnake instance created for RSlit1Request
[INFO] 2009-03-10 17:00:22 snsnake instance created for RSlit1Status
[INFO] 2009-03-10 17:00:22 snsnake instance created for TSlit1
[INFO] 2009-03-10 17:00:22 snsnake instance created for TSlit1Request
In [1]:
### lines removed
In [24]:
In [25]:
[INFO] 2009-03-10 17:00:22 snsnake instance created for XSampleOffsetRequest
In [26]:
### lines removed
[INFO] 2009-03-10 17:00:22 snsnake instance created for
S3VCenterOffsetRequest
In [57]:
[INFO] 2009-03-10 17:00:22 snsnake instance created for S3VHeightRequest
In [58]:
imported pypassing
In [59]:
ssing.py
In [60]:
In [61]:
In [62]:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20090310/9d45c6a0/attachment.html
More information about the IPython-user
mailing list