From andresete.chaos at gmail.com  Fri Jun  4 10:06:49 2010
From: andresete.chaos at gmail.com (=?UTF-8?Q?Omar_Andr=C3=A9s_Zapata_Mesa?=)
Date: Fri, 4 Jun 2010 09:06:49 -0500
Subject: [IPython-dev] ipython-zmq messages help
Message-ID: <AANLkTinkptkI_7TT5-0mhIEZZw6lj8mwZyOTykDbjl-m@mail.gmail.com>

hi all.
what is a valid python json message?
I am sending string that content dictionaries and in  REQ/REP sockets it
dont show me error, but in SUB/PUB it show me
msg=self._subscribe_socket.recv_json()
  File "_zmq.pyx", line 918, in zmq._zmq.Socket.recv_json (zmq/_zmq.c:6989)
  File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.6/json/decoder.py", line 336, in raw_decode
    obj, end = self._scanner.iterscan(s, **kw).next()
  File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
  File "/usr/lib/python2.6/json/decoder.py", line 171, in JSONObject
    raise ValueError(errmsg("Expecting property name", s, end))
ValueError: Expecting property name: line 1 column 1 (char 1)

some idea?
O.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100604/eb2b6d5d/attachment.html>

From ellisonbg at gmail.com  Fri Jun  4 10:44:44 2010
From: ellisonbg at gmail.com (Brian Granger)
Date: Fri, 4 Jun 2010 07:44:44 -0700
Subject: [IPython-dev] ipython-zmq messages help
In-Reply-To: <AANLkTinkptkI_7TT5-0mhIEZZw6lj8mwZyOTykDbjl-m@mail.gmail.com>
References: <AANLkTinkptkI_7TT5-0mhIEZZw6lj8mwZyOTykDbjl-m@mail.gmail.com>
Message-ID: <AANLkTim-LNkCcG9RJhMJ4UehPAgbWrQiRWw-9YjyUyiv@mail.gmail.com>

Can you print the message you are receiving by calling recv instead of
recv_json?  If there is a topic, you may be trying to decode the
topic, which won't work.  But let's see what the message is first.

Brian

2010/6/4 Omar Andr?s Zapata Mesa <andresete.chaos at gmail.com>:
> hi all.
> what is a valid python json message?
> I am sending string that content dictionaries and in??REQ/REP sockets it
> dont show me error, but in SUB/PUB it show me
> msg=self._subscribe_socket.recv_json()
> ??File "_zmq.pyx", line 918, in zmq._zmq.Socket.recv_json (zmq/_zmq.c:6989)
> ??File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
> ?? ?return _default_decoder.decode(s)
> ??File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
> ?? ?obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> ??File "/usr/lib/python2.6/json/decoder.py", line 336, in raw_decode
> ?? ?obj, end = self._scanner.iterscan(s, **kw).next()
> ??File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
> ?? ?rval, next_pos = action(m, context)
> ??File "/usr/lib/python2.6/json/decoder.py", line 171, in JSONObject
> ?? ?raise ValueError(errmsg("Expecting property name", s, end))
> ValueError: Expecting property name: line 1 column 1 (char 1)
> some idea?
> O.
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com


From andresete.chaos at gmail.com  Fri Jun  4 11:55:30 2010
From: andresete.chaos at gmail.com (=?UTF-8?Q?Omar_Andr=C3=A9s_Zapata_Mesa?=)
Date: Fri, 4 Jun 2010 10:55:30 -0500
Subject: [IPython-dev] ipython-zmq messages help
In-Reply-To: <AANLkTim-LNkCcG9RJhMJ4UehPAgbWrQiRWw-9YjyUyiv@mail.gmail.com>
References: <AANLkTinkptkI_7TT5-0mhIEZZw6lj8mwZyOTykDbjl-m@mail.gmail.com> 
	<AANLkTim-LNkCcG9RJhMJ4UehPAgbWrQiRWw-9YjyUyiv@mail.gmail.com>
Message-ID: <AANLkTinRu1pVlkz-pHLxvtKUYW2lU4PbKl4_XHseDeJN@mail.gmail.com>

Thanks Biran!!!
whithout reciv_json  and with recv SUB/PUB is working very fine

Thanks again!

El 4 de junio de 2010 09:44, Brian Granger <ellisonbg at gmail.com> escribi?:

> Can you print the message you are receiving by calling recv instead of
> recv_json?  If there is a topic, you may be trying to decode the
> topic, which won't work.  But let's see what the message is first.
>
> Brian
>
> 2010/6/4 Omar Andr?s Zapata Mesa <andresete.chaos at gmail.com>:
> > hi all.
> > what is a valid python json message?
> > I am sending string that content dictionaries and in  REQ/REP sockets it
> > dont show me error, but in SUB/PUB it show me
> > msg=self._subscribe_socket.recv_json()
> >   File "_zmq.pyx", line 918, in zmq._zmq.Socket.recv_json
> (zmq/_zmq.c:6989)
> >   File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
> >     return _default_decoder.decode(s)
> >   File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
> >     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> >   File "/usr/lib/python2.6/json/decoder.py", line 336, in raw_decode
> >     obj, end = self._scanner.iterscan(s, **kw).next()
> >   File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
> >     rval, next_pos = action(m, context)
> >   File "/usr/lib/python2.6/json/decoder.py", line 171, in JSONObject
> >     raise ValueError(errmsg("Expecting property name", s, end))
> > ValueError: Expecting property name: line 1 column 1 (char 1)
> > some idea?
> > O.
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> >
> >
>
>
>
> --
> Brian E. Granger, Ph.D.
> Assistant Professor of Physics
> Cal Poly State University, San Luis Obispo
> bgranger at calpoly.edu
> ellisonbg at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100604/f29b75a6/attachment.html>

From andresete.chaos at gmail.com  Sat Jun  5 14:19:08 2010
From: andresete.chaos at gmail.com (=?UTF-8?Q?Omar_Andr=C3=A9s_Zapata_Mesa?=)
Date: Sat, 5 Jun 2010 13:19:08 -0500
Subject: [IPython-dev] ipython zmq GSoC
Message-ID: <AANLkTinFCXIBR3i-CF9Ucrg__it2DQGMeDOOfxmhY4cP@mail.gmail.com>

Hi all.

ipython zmq was transferred to http://github.com/omazapa/ipython-zmq my
mentor says not to work on the prototype I've been working instead that
other.
to test kernel
http://github.com/omazapa/ipython-zmq/blob/master/IPython/kernel/kernel.py

to run frontend
http://github.com/omazapa/ipython-zmq/blob/master/IPython/frontend/zmq/frontend.py

this prototype support  ipython's InteractiveShell in kernel but not yet in
frontend, because I and dividing InteractiveShell in two parts, but this
prototype support tab-completion perfectly.

open in a console kernel and in other console frontend and run commands in
frontend to test it.

this is the protoype suggested to merge in trunk, like Fernando tell me.

Best.
O.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100605/6369d562/attachment.html>

From andresete.chaos at gmail.com  Sun Jun  6 14:41:35 2010
From: andresete.chaos at gmail.com (=?UTF-8?Q?Omar_Andr=C3=A9s_Zapata_Mesa?=)
Date: Sun, 6 Jun 2010 13:41:35 -0500
Subject: [IPython-dev] Help InteractiveShell
Message-ID: <AANLkTimDO75QCoLEKDQa6muY7eeHuMdSv2_f4m1hMhwJ@mail.gmail.com>

Hi all.
how  can I  get stdout, stderr and traceback generated by InteractiveShell?

thanks!!
O.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100606/e224d412/attachment.html>

From fperez.net at gmail.com  Sun Jun  6 16:10:43 2010
From: fperez.net at gmail.com (Fernando Perez)
Date: Sun, 6 Jun 2010 22:10:43 +0200
Subject: [IPython-dev] Help InteractiveShell
In-Reply-To: <AANLkTimDO75QCoLEKDQa6muY7eeHuMdSv2_f4m1hMhwJ@mail.gmail.com>
References: <AANLkTimDO75QCoLEKDQa6muY7eeHuMdSv2_f4m1hMhwJ@mail.gmail.com>
Message-ID: <AANLkTimBRox_QzSyQg0QMlr9hkyoYbai-RrnkmjBfQ0m@mail.gmail.com>

2010/6/6 Omar Andr?s Zapata Mesa <andresete.chaos at gmail.com>:
> Hi all.
> how ?can I ?get stdout, stderr and traceback generated by InteractiveShell?

Have a look at the examples we mentioned in pyzmq, they show how that
works in just a few lines of code.  If something in that code doesn't
make sense, please let us know.  My brain will be less jet-lagged and
sleep deprived tomorrow and I can then give better answers.

f


From andresete.chaos at gmail.com  Mon Jun  7 21:17:25 2010
From: andresete.chaos at gmail.com (=?UTF-8?Q?Omar_Andr=C3=A9s_Zapata_Mesa?=)
Date: Mon, 7 Jun 2010 20:17:25 -0500
Subject: [IPython-dev] display_hooks ipython
Message-ID: <AANLkTinFqvtv-cCEuA9gBwq39us8K3yP67wzFIj2_vMo@mail.gmail.com>

hi all.
how could I set my display hook in ipython?
I am using

I am  inheriting from InteractiveShell and I need get the runlines output

 self.display_hook=DisplayHook(self.session,self.pub_socket)
 for name in hooks.__all__:
               self.set_hook(name,self.display_hook)

but the error is
/home/omazapa/MyProjects/GSoC/ipython-zmq/IPython/core/hooks.py", line 144,
in __call__
__call__() takes exactly 2 arguments (5 given)



how can I do it?

O.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100607/4ec20f66/attachment.html>

From andresete.chaos at gmail.com  Tue Jun  8 00:27:09 2010
From: andresete.chaos at gmail.com (=?UTF-8?Q?Omar_Andr=C3=A9s_Zapata_Mesa?=)
Date: Mon, 7 Jun 2010 23:27:09 -0500
Subject: [IPython-dev] display_hooks ipython
In-Reply-To: <AANLkTinFqvtv-cCEuA9gBwq39us8K3yP67wzFIj2_vMo@mail.gmail.com>
References: <AANLkTinFqvtv-cCEuA9gBwq39us8K3yP67wzFIj2_vMo@mail.gmail.com>
Message-ID: <AANLkTin5-_nrpwt0fM9ZlDZvagtCU3lQtkBtwuB0j5IB@mail.gmail.com>

Hi all
I can  now get tracebacks output, but I cant get ipython outputs like

Out[4]:2
how can I get it?
thanks

El 7 de junio de 2010 20:17, Omar Andr?s Zapata Mesa <
andresete.chaos at gmail.com> escribi?:

> hi all.
> how could I set my display hook in ipython?
> I am using
>
> I am  inheriting from InteractiveShell and I need get the runlines output
>
>  self.display_hook=DisplayHook(self.session,self.pub_socket)
>  for name in hooks.__all__:
>                self.set_hook(name,self.display_hook)
>
> but the error is
> /home/omazapa/MyProjects/GSoC/ipython-zmq/IPython/core/hooks.py", line 144,
> in __call__
> __call__() takes exactly 2 arguments (5 given)
>
>
>
> how can I do it?
>
> O.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100607/cc7f040f/attachment.html>

From fperez.net at gmail.com  Tue Jun  8 06:55:21 2010
From: fperez.net at gmail.com (Fernando Perez)
Date: Tue, 8 Jun 2010 12:55:21 +0200
Subject: [IPython-dev] ipython zmq GSoC
In-Reply-To: <AANLkTinFCXIBR3i-CF9Ucrg__it2DQGMeDOOfxmhY4cP@mail.gmail.com>
References: <AANLkTinFCXIBR3i-CF9Ucrg__it2DQGMeDOOfxmhY4cP@mail.gmail.com>
Message-ID: <AANLkTikz0tCUCH9tA_DFpdZuiRe9pATJJDNLZjS9L34Z@mail.gmail.com>

Hi Omar,

2010/6/5 Omar Andr?s Zapata Mesa <andresete.chaos at gmail.com>:
>
> ipython zmq was transferred to?http://github.com/omazapa/ipython-zmq?my
> mentor says not to work on the prototype I've been working instead that
> other.
> to test kernel
> http://github.com/omazapa/ipython-zmq/blob/master/IPython/kernel/kernel.py
> to run frontend
> http://github.com/omazapa/ipython-zmq/blob/master/IPython/frontend/zmq/frontend.py
> this prototype support ?ipython's InteractiveShell in kernel but not yet in
> frontend, because I and dividing InteractiveShell in two parts, but this
> prototype support tab-completion perfectly.
> open in a console kernel and in other console frontend and run commands in
> frontend to test it.
> this is the protoype suggested to merge in trunk, like Fernando tell me.

Thanks for creating this while I was unavailable traveling, though it
would be better if you can change it to live in a *branch* of a real
IPython repository forked from the main IPython one.

Right now, by creating a brand new repo from scratch, it becomes
harder to connect your work to the rest of IPython.  Git supports
branches so well that there's no point in creating a brand new
repository that seems to be a fresh new project, that will only
confuse everyone.

What you want to do is make a *branch* of the IPython repo where this
work is developed.  Do you understand this?

And by the way, Gerardo should follow the same process for the qt
stuff, so that we can clearly find branches where each project is
being worked on, but that maintain a tie with the main project.

Let me know when you have these branches up and I'll review the work
and will  comment on it.

Cheers,

f


From fperez.net at gmail.com  Tue Jun  8 07:02:29 2010
From: fperez.net at gmail.com (Fernando Perez)
Date: Tue, 8 Jun 2010 13:02:29 +0200
Subject: [IPython-dev] display_hooks ipython
In-Reply-To: <AANLkTinFqvtv-cCEuA9gBwq39us8K3yP67wzFIj2_vMo@mail.gmail.com>
References: <AANLkTinFqvtv-cCEuA9gBwq39us8K3yP67wzFIj2_vMo@mail.gmail.com>
Message-ID: <AANLkTin0mUfgPRFyEhr1zZneMzm6Z4awxTyQdYnboCwd@mail.gmail.com>

2010/6/8 Omar Andr?s Zapata Mesa <andresete.chaos at gmail.com>:
>
> I am??inheriting from InteractiveShell and I need get the runlines output
> ?self.display_hook=DisplayHook(self.session,self.pub_socket)
> ?for name in hooks.__all__:
> ?? ? ? ? ? ? ? self.set_hook(name,self.display_hook)
> but the error is
> /home/omazapa/MyProjects/GSoC/ipython-zmq/IPython/core/hooks.py", line 144,
> in __call__
> __call__() takes exactly 2 arguments (5 given)

Let me know when you have the repo set up as a branch (as I mentioned
in the previous email) and I'll give you some pointers there.

Cheers,

f


From andresete.chaos at gmail.com  Thu Jun 10 22:52:53 2010
From: andresete.chaos at gmail.com (=?UTF-8?Q?Omar_Andr=C3=A9s_Zapata_Mesa?=)
Date: Thu, 10 Jun 2010 21:52:53 -0500
Subject: [IPython-dev] ipython zmq GSoC
In-Reply-To: <AANLkTikz0tCUCH9tA_DFpdZuiRe9pATJJDNLZjS9L34Z@mail.gmail.com>
References: <AANLkTinFCXIBR3i-CF9Ucrg__it2DQGMeDOOfxmhY4cP@mail.gmail.com> 
	<AANLkTikz0tCUCH9tA_DFpdZuiRe9pATJJDNLZjS9L34Z@mail.gmail.com>
Message-ID: <AANLkTimFTltTjUwxH9LGsSRrJ42nBq7GLy4UtyPYBbX-@mail.gmail.com>

ok  it is clear,
I have ready the branch and some code.

Thk
O.

El 8 de junio de 2010 05:55, Fernando Perez <fperez.net at gmail.com> escribi?:

> Hi Omar,
>
> 2010/6/5 Omar Andr?s Zapata Mesa <andresete.chaos at gmail.com>:
> >
> > ipython zmq was transferred to http://github.com/omazapa/ipython-zmq my
> > mentor says not to work on the prototype I've been working instead that
> > other.
> > to test kernel
> >
> http://github.com/omazapa/ipython-zmq/blob/master/IPython/kernel/kernel.py
> > to run frontend
> >
> http://github.com/omazapa/ipython-zmq/blob/master/IPython/frontend/zmq/frontend.py
> > this prototype support  ipython's InteractiveShell in kernel but not yet
> in
> > frontend, because I and dividing InteractiveShell in two parts, but this
> > prototype support tab-completion perfectly.
> > open in a console kernel and in other console frontend and run commands
> in
> > frontend to test it.
> > this is the protoype suggested to merge in trunk, like Fernando tell me.
>
> Thanks for creating this while I was unavailable traveling, though it
> would be better if you can change it to live in a *branch* of a real
> IPython repository forked from the main IPython one.
>
> Right now, by creating a brand new repo from scratch, it becomes
> harder to connect your work to the rest of IPython.  Git supports
> branches so well that there's no point in creating a brand new
> repository that seems to be a fresh new project, that will only
> confuse everyone.
>
> What you want to do is make a *branch* of the IPython repo where this
> work is developed.  Do you understand this?
>
> And by the way, Gerardo should follow the same process for the qt
> stuff, so that we can clearly find branches where each project is
> being worked on, but that maintain a tie with the main project.
>
> Let me know when you have these branches up and I'll review the work
> and will  comment on it.
>
> Cheers,
>
> f
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100610/c8d25e9c/attachment.html>

From andresete.chaos at gmail.com  Sat Jun 12 05:08:34 2010
From: andresete.chaos at gmail.com (=?UTF-8?Q?Omar_Andr=C3=A9s_Zapata_Mesa?=)
Date: Sat, 12 Jun 2010 04:08:34 -0500
Subject: [IPython-dev] testing ipython-zmq
Message-ID: <AANLkTinGbGP9gOTVRlFVZCotWzOPU-6caJMl22If-E65@mail.gmail.com>

hi all.
some code of ipython-zmq is ready in github repo.
you can see it this way.

install firts pyzmq read howto here:
http://www.zeromq.org/bindings:python

get ipython-zmq experimental code

$git clone github.com/omazapa/ipython.git

like root
#cd ipython
#python setup.py build
#python setup.py install

like a user.
you need open two terminals

terminal One:
$cd ipython/IPython/core/
$python iplib_kernel.py

terminal two:
$cd ipython/IPython/core/
$python iplib_frontend.py

Features:
-> zmq communication (using json)
-> tab completion (support magics commands, alias and imported modules very
fine)
-> ipython prompt indentation
-> colors (no in tracebacks yet)
-> ipython output capture ie:
In [1] : 2
Out [3] : 2
In [2] :_3
Out [4] : 2

-> some magics commands are working fine but we need to restructured to two
processes


I think we need write some magics to frontend and kernel
I suggest for now:

%kernel history
%kernel reset (restore to empty kernel)
%kernel quit (close the kernel)
%kernel start (start a new kernel)
%kernel save_status session_name  (save code and variables in a file asigned
to session_file  )
%kernel load_status session_name  (load code and variables fron session_name
)
%kernel restore  (restore last log, it if kernel fail and crash )

%frontend quit
%frontend colors colors_type

Note: remember that it is just a experimental code.

Best wishes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100612/51327cf2/attachment.html>

From m.hubbard at imperial.ac.uk  Mon Jun 14 10:27:56 2010
From: m.hubbard at imperial.ac.uk (Hubbard, Matt R W)
Date: Mon, 14 Jun 2010 15:27:56 +0100
Subject: [IPython-dev] Specifying histfile
Message-ID: <7C6797F0609197449F0A01FED70715A884BC@icexm2.ic.ac.uk>

Dear All,

Could someone tell me whether or not it will be possible to specify the histfile in the new configuration system coming in 0.11?

I wanted to write a ipy_user_conf.py that would rename the histfile with a suffix based on the optional existence of an environment variable, but I've been scuppered by IP.histfile being set after ipy_user_conf is loaded.

Cheers,
Matt.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100614/4447fc7c/attachment.html>

From ellisonbg at gmail.com  Tue Jun 15 16:11:01 2010
From: ellisonbg at gmail.com (Brian Granger)
Date: Tue, 15 Jun 2010 13:11:01 -0700
Subject: [IPython-dev] Specifying histfile
In-Reply-To: <7C6797F0609197449F0A01FED70715A884BC@icexm2.ic.ac.uk>
References: <7C6797F0609197449F0A01FED70715A884BC@icexm2.ic.ac.uk>
Message-ID: <AANLkTinf36frj4zZnVv0Gxid9QzIQdS-o17Gr34XplQF@mail.gmail.com>

If you look in IPython/config/default/ipython_config.py

You will find the line:

# c.InteractiveShell.logfile = u'ipython_log.py'

You can set this in the config file.  If you want to have IPython
install the default config file in the right location do:

%install_default_config

That will put ipython_config.py in $HOME/.ipython



On Mon, Jun 14, 2010 at 7:27 AM, Hubbard, Matt R W
<m.hubbard at imperial.ac.uk> wrote:
> Dear All,
>
>
>
> Could someone tell me whether or not it will be possible to specify the
> histfile in the new configuration system coming in 0.11?
>
>
>
> I wanted to write a ipy_user_conf.py that would rename the histfile with a
> suffix based on the optional existence of an environment variable, but I?ve
> been scuppered by IP.histfile being set after ipy_user_conf is loaded.

ipy_user_conf is not used in 0.11.

Cheers,

Brian

>
>
> Cheers,
>
> Matt.
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com


From ellisonbg at gmail.com  Tue Jun 15 16:30:17 2010
From: ellisonbg at gmail.com (Brian Granger)
Date: Tue, 15 Jun 2010 13:30:17 -0700
Subject: [IPython-dev] testing ipython-zmq
In-Reply-To: <AANLkTinGbGP9gOTVRlFVZCotWzOPU-6caJMl22If-E65@mail.gmail.com>
References: <AANLkTinGbGP9gOTVRlFVZCotWzOPU-6caJMl22If-E65@mail.gmail.com>
Message-ID: <AANLkTikpfAVUIENDpm8U1Yv8M7xUWJD8niowaVoNICP-@mail.gmail.com>

Omar,

This looks very interesting and promising.  I will try to look at it
further and try it out soon.

Cheers,

Brian

2010/6/12 Omar Andr?s Zapata Mesa <andresete.chaos at gmail.com>:
> hi all.
> some code of ipython-zmq is ready in github repo.
> you can see it this way.
> install firts pyzmq read howto here:
> http://www.zeromq.org/bindings:python
> get ipython-zmq experimental code
> $git clone github.com/omazapa/ipython.git
> like root
> #cd ipython
> #python setup.py build
> #python setup.py install
> like a user.
> you need open two terminals
> terminal One:
> $cd ipython/IPython/core/
> $python iplib_kernel.py
> terminal two:
> $cd ipython/IPython/core/
> $python iplib_frontend.py
> Features:
> -> zmq?communication (using json)
> -> tab completion (support magics commands, alias and imported modules very
> fine)
> -> ipython prompt indentation
> -> colors (no in tracebacks yet)
> -> ipython output capture ie:
> In [1] : 2
> Out [3] : 2
> In [2] :_3
> Out [4] : 2
> -> some magics commands are working fine but we need to restructured to two
> processes
>
> I think we need write some magics to frontend and kernel
> I suggest for now:
> %kernel history
> %kernel reset (restore to empty kernel)
> %kernel quit (close the kernel)
> %kernel start (start a new kernel)
> %kernel save_status session_name ?(save code and variables in a file asigned
> to session_file ?)
> %kernel load_status session_name ?(load code and variables fron session_name
> )
> %kernel restore ?(restore last log, it if kernel fail and crash )
> %frontend quit
> %frontend colors colors_type
> Note: remember that it is just a experimental code.
> Best wishes.
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com


From andresete.chaos at gmail.com  Tue Jun 15 17:40:59 2010
From: andresete.chaos at gmail.com (=?UTF-8?Q?Omar_Andr=C3=A9s_Zapata_Mesa?=)
Date: Tue, 15 Jun 2010 16:40:59 -0500
Subject: [IPython-dev] testing ipython-zmq
In-Reply-To: <AANLkTikpfAVUIENDpm8U1Yv8M7xUWJD8niowaVoNICP-@mail.gmail.com>
References: <AANLkTinGbGP9gOTVRlFVZCotWzOPU-6caJMl22If-E65@mail.gmail.com> 
	<AANLkTikpfAVUIENDpm8U1Yv8M7xUWJD8niowaVoNICP-@mail.gmail.com>
Message-ID: <AANLkTim9UJNLLOAH64R_N98F96bKpIlqVkbDcYS6GAT2@mail.gmail.com>

Thanks Brian.
I am working in this moment in how to support magics,
the idea is write a class MagicFronted
that rewrite the magics funtions but some run locals commands and other will
be send to kernel.
like InteractiveShell Inherited from Magic then InteractiveShellFrontend
should inherit from MagicFrontend.

some magics like command running with "!"  should run locally and not in the
kernel you can try !kate or some graphic application and it will be executed
in the kernel, stopping the others process.

What you think about this?
have you some idea to me?


El 15 de junio de 2010 15:30, Brian Granger <ellisonbg at gmail.com> escribi?:

> Omar,
>
> This looks very interesting and promising.  I will try to look at it
> further and try it out soon.
>
> Cheers,
>
> Brian
>
> 2010/6/12 Omar Andr?s Zapata Mesa <andresete.chaos at gmail.com>:
> > hi all.
> > some code of ipython-zmq is ready in github repo.
> > you can see it this way.
> > install firts pyzmq read howto here:
> > http://www.zeromq.org/bindings:python
> > get ipython-zmq experimental code
> > $git clone github.com/omazapa/ipython.git
> > like root
> > #cd ipython
> > #python setup.py build
> > #python setup.py install
> > like a user.
> > you need open two terminals
> > terminal One:
> > $cd ipython/IPython/core/
> > $python iplib_kernel.py
> > terminal two:
> > $cd ipython/IPython/core/
> > $python iplib_frontend.py
> > Features:
> > -> zmq communication (using json)
> > -> tab completion (support magics commands, alias and imported modules
> very
> > fine)
> > -> ipython prompt indentation
> > -> colors (no in tracebacks yet)
> > -> ipython output capture ie:
> > In [1] : 2
> > Out [3] : 2
> > In [2] :_3
> > Out [4] : 2
> > -> some magics commands are working fine but we need to restructured to
> two
> > processes
> >
> > I think we need write some magics to frontend and kernel
> > I suggest for now:
> > %kernel history
> > %kernel reset (restore to empty kernel)
> > %kernel quit (close the kernel)
> > %kernel start (start a new kernel)
> > %kernel save_status session_name  (save code and variables in a file
> asigned
> > to session_file  )
> > %kernel load_status session_name  (load code and variables fron
> session_name
> > )
> > %kernel restore  (restore last log, it if kernel fail and crash )
> > %frontend quit
> > %frontend colors colors_type
> > Note: remember that it is just a experimental code.
> > Best wishes.
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> >
> >
>
>
>
> --
> Brian E. Granger, Ph.D.
> Assistant Professor of Physics
> Cal Poly State University, San Luis Obispo
> bgranger at calpoly.edu
> ellisonbg at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100615/079023fd/attachment.html>

From ellisonbg at gmail.com  Tue Jun 15 17:56:52 2010
From: ellisonbg at gmail.com (Brian Granger)
Date: Tue, 15 Jun 2010 14:56:52 -0700
Subject: [IPython-dev] testing ipython-zmq
In-Reply-To: <AANLkTim9UJNLLOAH64R_N98F96bKpIlqVkbDcYS6GAT2@mail.gmail.com>
References: <AANLkTinGbGP9gOTVRlFVZCotWzOPU-6caJMl22If-E65@mail.gmail.com>
	<AANLkTikpfAVUIENDpm8U1Yv8M7xUWJD8niowaVoNICP-@mail.gmail.com>
	<AANLkTim9UJNLLOAH64R_N98F96bKpIlqVkbDcYS6GAT2@mail.gmail.com>
Message-ID: <AANLkTin9NttA-W7S1OtGcmnsAHysVe37x8J-pdhzgkgA@mail.gmail.com>

Omar,

2010/6/15 Omar Andr?s Zapata Mesa <andresete.chaos at gmail.com>:
> Thanks Brian.
> I am working in this moment in how to support magics,
> the idea is write a class MagicFronted
> that rewrite the magics funtions but some run locals commands and other will
> be send to kernel.

This is a great question.  The other issue is that some magic
functions that run on the kernel won't always work.  That is, some
magics will require a kernel that is running on the same host as the
frontend.  But, I think by default the stardard magics (using %) and
the command line (!) should all happen on the kernel.  The magics that
run on the frontend will be pretty limited right?  I guess just using
the %frontend syntax for those initially is a good idea.  I would just
start to play around with things.

Brian

> like InteractiveShell?Inherited from Magic then InteractiveShellFrontend
> should inherit from MagicFrontend.
> some magics like command running with "!" ?should run locally and not in the
> kernel you can try !kate or some graphic application and it will be?executed
> in the kernel, stopping the others process.
> What you think?about this?
> have you some idea to me?
>
>
> El 15 de junio de 2010 15:30, Brian Granger <ellisonbg at gmail.com> escribi?:
>>
>> Omar,
>>
>> This looks very interesting and promising. ?I will try to look at it
>> further and try it out soon.
>>
>> Cheers,
>>
>> Brian
>>
>> 2010/6/12 Omar Andr?s Zapata Mesa <andresete.chaos at gmail.com>:
>> > hi all.
>> > some code of ipython-zmq is ready in github repo.
>> > you can see it this way.
>> > install firts pyzmq read howto here:
>> > http://www.zeromq.org/bindings:python
>> > get ipython-zmq experimental code
>> > $git clone github.com/omazapa/ipython.git
>> > like root
>> > #cd ipython
>> > #python setup.py build
>> > #python setup.py install
>> > like a user.
>> > you need open two terminals
>> > terminal One:
>> > $cd ipython/IPython/core/
>> > $python iplib_kernel.py
>> > terminal two:
>> > $cd ipython/IPython/core/
>> > $python iplib_frontend.py
>> > Features:
>> > -> zmq?communication (using json)
>> > -> tab completion (support magics commands, alias and imported modules
>> > very
>> > fine)
>> > -> ipython prompt indentation
>> > -> colors (no in tracebacks yet)
>> > -> ipython output capture ie:
>> > In [1] : 2
>> > Out [3] : 2
>> > In [2] :_3
>> > Out [4] : 2
>> > -> some magics commands are working fine but we need to restructured to
>> > two
>> > processes
>> >
>> > I think we need write some magics to frontend and kernel
>> > I suggest for now:
>> > %kernel history
>> > %kernel reset (restore to empty kernel)
>> > %kernel quit (close the kernel)
>> > %kernel start (start a new kernel)
>> > %kernel save_status session_name ?(save code and variables in a file
>> > asigned
>> > to session_file ?)
>> > %kernel load_status session_name ?(load code and variables fron
>> > session_name
>> > )
>> > %kernel restore ?(restore last log, it if kernel fail and crash )
>> > %frontend quit
>> > %frontend colors colors_type
>> > Note: remember that it is just a experimental code.
>> > Best wishes.
>> > _______________________________________________
>> > IPython-dev mailing list
>> > IPython-dev at scipy.org
>> > http://mail.scipy.org/mailman/listinfo/ipython-dev
>> >
>> >
>>
>>
>>
>> --
>> Brian E. Granger, Ph.D.
>> Assistant Professor of Physics
>> Cal Poly State University, San Luis Obispo
>> bgranger at calpoly.edu
>> ellisonbg at gmail.com
>
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com


From ehabkost at raisama.net  Thu Jun 17 17:28:40 2010
From: ehabkost at raisama.net (Eduardo Habkost)
Date: Thu, 17 Jun 2010 18:28:40 -0300
Subject: [IPython-dev] IPython handles code input as latin1 instead of the
	system encoding
Message-ID: <20100617212840.GO14947@blackpad.lan.raisama.net>


Hi,

I just noticed a problem with non-ascii input in ipython, that can be
seen below:

Python behavior (expected):

---------
$ python
Python 2.6 (r26:66714, Nov  3 2009, 17:33:38)
[GCC 4.4.1 20090725 (Red Hat 4.4.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, locale
>>> print sys.stdin.encoding,locale.getdefaultlocale()
UTF-8 ('en_US', 'UTF8')
>>> print repr(u'??')
u'\xe1\xe9'
-------------
(two unicode characters as result, as expected)


IPython behavior:

------------------
$ ipython
Python 2.6 (r26:66714, Nov  3 2009, 17:33:38)
Type "copyright", "credits" or "license" for more information.

IPython 0.11.alpha1.git -- 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.

In [1]: import sys, locale

In [2]: print sys.stdin.encoding,locale.getdefaultlocale()
UTF-8 ('en_US', 'UTF8')

In [3]: print repr(u'??')
u'\xc3\xa1\xc3\xa9'

In [4]: 
----------------------
(four unicode characters as result, because the utf-8 source code was
evaluated as if it was encoded as latin1)


System info:
Fedora 11
python-2.6-12.fc11.i586
IPython compiled from git (commit 01435682f2751a31eb3dbe0eaae9fc6dc960f8fb)


By looking at the code, the problem seems to be that all code is being
converted back to byte strings before being passed to the Python compiler. This
makes the compiler just guess the encoding of the source string. Passing a
unicode object to CommandCompiler() makes Python behave as expected:


>>> import codeop
>>> cp = codeop.CommandCompiler()
>>> exec cp('print repr(u"??")')   # not the expected behavior
u'\xc3\xa1\xc3\xa9'
>>> exec cp(u'print repr(u"??")')  # the expected behavior
u'\xe1\xe9'

To prove it's not a local problem on my terminal encoding, the same issue can
be seen using ascii-only '\x' strings as source:

>>> code = 'print repr(u"\xc3\xa1\xc3\xa9")' # utf-8 source code
>>> print code
print repr(u"??")
>>> exec cp(code)
u'\xc3\xa1\xc3\xa9'
>>> exec cp(unicode(code, 'utf-8'))
u'\xe1\xe9'
>>> 


I believe the cause of the problem is at IPython/core/iplib.py, at
InteractiveShell.runsource():

    def runsource(self, source, filename='<input>', symbol='single'):
       [...]
       source=source.encode(self.stdin_encoding)


I don't know why IPython reencodes the unicode object to a byte string before
passing it to the Python compiler. The Python interactive shell doesn't do that
with the unicode objects given as input, it just passes the unicode object
directly to CommandCompiler, as it can be seen at:

http://svn.python.org/projects/python/trunk/Lib/code.py

(there are no calls to .encode() in the Python code at the URL above).

The patch below solves the problem to me, but I am not completely sure
it won't cause any trouble on other platforms or older Python versions.

---
diff --git a/IPython/core/iplib.py b/IPython/core/iplib.py
index ae56cfb..477a45c 100644
--- a/IPython/core/iplib.py
+++ b/IPython/core/iplib.py
@@ -2146,9 +2146,8 @@ class InteractiveShell(Component, Magic):
         # this allows execution of indented pasted code. It is tempting
         # to add '\n' at the end of source to run commands like ' a=1'
         # directly, but this fails for more complicated scenarios
-        source=source.encode(self.stdin_encoding)
-        if source[:1] in [' ', '\t']:
-            source = 'if 1:\n%s' % source
+        if source[:1] in [u' ', u'\t']:
+            source = u'if 1:\n%s' % source
 
         try:
             code = self.compile(source,filename,symbol)

-- 
Eduardo


From andresete.chaos at gmail.com  Fri Jun 18 15:49:59 2010
From: andresete.chaos at gmail.com (=?UTF-8?Q?Omar_Andr=C3=A9s_Zapata_Mesa?=)
Date: Fri, 18 Jun 2010 14:49:59 -0500
Subject: [IPython-dev] ipython-zmq and graphical outputs
Message-ID: <AANLkTinCOHriXn5VxbDvCE2-Zr0GqmnMitaGQgYD5FoF@mail.gmail.com>

hi all!!
I am thinking so many things about ipython-zmq project.
I dont know how we will handle the outputs matplotlib, when you run a plot
the kernel stop while user see the plot, if user dont stop plot others users
dont can run the request of them.

Some suggestion?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100618/50241af7/attachment.html>

From ellisonbg at gmail.com  Fri Jun 18 15:57:49 2010
From: ellisonbg at gmail.com (Brian Granger)
Date: Fri, 18 Jun 2010 12:57:49 -0700
Subject: [IPython-dev] ipython-zmq and graphical outputs
In-Reply-To: <AANLkTinCOHriXn5VxbDvCE2-Zr0GqmnMitaGQgYD5FoF@mail.gmail.com>
References: <AANLkTinCOHriXn5VxbDvCE2-Zr0GqmnMitaGQgYD5FoF@mail.gmail.com>
Message-ID: <AANLkTikgmmj-HiEtGLR-nnH5QaqcX7W8XDKWbPh5RuJp@mail.gmail.com>

Omar,

The kernel will have to be refactored to start a qt/wx/etc event loop
and run the zmq stuff inside of that event loop.

Brian

2010/6/18 Omar Andr?s Zapata Mesa <andresete.chaos at gmail.com>:
> hi all!!
> I am thinking so many things about ipython-zmq project.
> I dont know?how we will handle the outputs matplotlib, when you run a plot
> the kernel stop while user see the plot, if user dont stop plot others users
> dont can run?the request of them.
> Some suggestion?
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com


From tomspur at fedoraproject.org  Sat Jun 19 14:58:05 2010
From: tomspur at fedoraproject.org (Thomas Spura)
Date: Sat, 19 Jun 2010 20:58:05 +0200
Subject: [IPython-dev] unbundle libraries
Message-ID: <20100619205805.01e8e725@earth>

Hi list,

I read this list now for a while (and I am the package maintainer in
fedora), and started working on ipython now...

There is a current bug in fedora, because ipython bundles libraries
[1], what is not allowed. So another one from fedora and I worked on
unbundle everything, so the system ones can easily be used and you
still don't require a hard dependency on all the libraries.

This work is done in the github repository:
http://github.com/tomspur/ipython/commits/my_bundled_libs

Please have a look and hopefully pull from there :)

Just a note:
The decorator module was a bit tricky, because some functions was
marked as deprecated to 'import *' won't work. I import the
update_wrapper from functools instead, as upstream suggests.
This will require python 2.5 at least, but that won't be a problem,
because I ought to remember, that you already require that version.

Am I right?

Thanks
   Thomas


[1] https://bugzilla.redhat.com/show_bug.cgi?id=603937


From ellisonbg at gmail.com  Tue Jun 22 00:34:54 2010
From: ellisonbg at gmail.com (Brian Granger)
Date: Mon, 21 Jun 2010 21:34:54 -0700
Subject: [IPython-dev] unbundle libraries
In-Reply-To: <20100619205805.01e8e725@earth>
References: <20100619205805.01e8e725@earth>
Message-ID: <AANLkTin5ca47d6pLShN786vRuhpm_oJiIsbcSJiJd4fS@mail.gmail.com>

I glanced at this briefly and if this helps the packagers I think this
is fine.  We will be sprinting on IPython next week and hopefully we
can look at this and do the merge.

Thanks!

Brian

On Sat, Jun 19, 2010 at 11:58 AM, Thomas Spura
<tomspur at fedoraproject.org> wrote:
> Hi list,
>
> I read this list now for a while (and I am the package maintainer in
> fedora), and started working on ipython now...
>
> There is a current bug in fedora, because ipython bundles libraries
> [1], what is not allowed. So another one from fedora and I worked on
> unbundle everything, so the system ones can easily be used and you
> still don't require a hard dependency on all the libraries.
>
> This work is done in the github repository:
> http://github.com/tomspur/ipython/commits/my_bundled_libs
>
> Please have a look and hopefully pull from there :)
>
> Just a note:
> The decorator module was a bit tricky, because some functions was
> marked as deprecated to 'import *' won't work. I import the
> update_wrapper from functools instead, as upstream suggests.
> This will require python 2.5 at least, but that won't be a problem,
> because I ought to remember, that you already require that version.
>
> Am I right?
>
> Thanks
> ? Thomas
>
>
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=603937
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com


From tomspur at fedoraproject.org  Tue Jun 22 06:44:20 2010
From: tomspur at fedoraproject.org (Thomas Spura)
Date: Tue, 22 Jun 2010 12:44:20 +0200
Subject: [IPython-dev] unbundle libraries
In-Reply-To: <AANLkTin5ca47d6pLShN786vRuhpm_oJiIsbcSJiJd4fS@mail.gmail.com>
References: <20100619205805.01e8e725@earth>
	<AANLkTin5ca47d6pLShN786vRuhpm_oJiIsbcSJiJd4fS@mail.gmail.com>
Message-ID: <20100622124420.5eac0675@earth>

Great. Currently after these patches, we remove the files in
IPython/external/*/_* so the __init__.py files will automatically
import the local installed libraries, and fail otherwise.

I can't think of another solution, that is that easy later on, but
maybe there is one ;)

	Thomas

Am Mon, 21 Jun 2010 21:34:54 -0700
schrieb Brian Granger:

> I glanced at this briefly and if this helps the packagers I think this
> is fine.  We will be sprinting on IPython next week and hopefully we
> can look at this and do the merge.
> 
> Thanks!
> 
> Brian


From JDM at MarchRay.net  Tue Jun 22 07:38:00 2010
From: JDM at MarchRay.net (Jonathan March)
Date: Tue, 22 Jun 2010 06:38:00 -0500
Subject: [IPython-dev] unbundle libraries
In-Reply-To: <AANLkTin5ca47d6pLShN786vRuhpm_oJiIsbcSJiJd4fS@mail.gmail.com>
References: <20100619205805.01e8e725@earth>
	<AANLkTin5ca47d6pLShN786vRuhpm_oJiIsbcSJiJd4fS@mail.gmail.com>
Message-ID: <AANLkTikX7zzpG5SbhiKc7XyvrtkIC-EUp-JDoRKAxr5s@mail.gmail.com>

Ipython is not listed at:
http://conference.scipy.org/scipy2010/sprints.html
nor was it listed on the sprint preference poll that went out by email last
week.
Too late for that poll, but can the listing be updated?
Jonathan

On Mon, Jun 21, 2010 at 11:34 PM, Brian Granger <ellisonbg at gmail.com> wrote:
We will be sprinting on IPython next week
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100622/e7a3ca31/attachment.html>

From ellisonbg at gmail.com  Tue Jun 22 13:29:11 2010
From: ellisonbg at gmail.com (Brian Granger)
Date: Tue, 22 Jun 2010 10:29:11 -0700
Subject: [IPython-dev] unbundle libraries
In-Reply-To: <AANLkTikX7zzpG5SbhiKc7XyvrtkIC-EUp-JDoRKAxr5s@mail.gmail.com>
References: <20100619205805.01e8e725@earth>
	<AANLkTin5ca47d6pLShN786vRuhpm_oJiIsbcSJiJd4fS@mail.gmail.com>
	<AANLkTikX7zzpG5SbhiKc7XyvrtkIC-EUp-JDoRKAxr5s@mail.gmail.com>
Message-ID: <AANLkTime_Zy9p8vN8y1O91NHfm-JTJ8QekkYJtliWzeJ@mail.gmail.com>

We were busy when the sprint polling happened, but many of the core
ipython devs will be at the sprints working on ipython.

Cheers,

Brian

On Tue, Jun 22, 2010 at 4:38 AM, Jonathan March <JDM at marchray.net> wrote:
> Ipython is not listed at:
> http://conference.scipy.org/scipy2010/sprints.html
> nor was it listed on the sprint preference poll that went out by email last
> week.
> Too late for that poll, but can the listing be updated?
> Jonathan
> On Mon, Jun 21, 2010 at 11:34 PM, Brian Granger <ellisonbg at gmail.com> wrote:
> We will be sprinting on IPython next week



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com


From muzgash.lists at gmail.com  Wed Jun 23 04:28:45 2010
From: muzgash.lists at gmail.com (Gerardo Gutierrez)
Date: Wed, 23 Jun 2010 03:28:45 -0500
Subject: [IPython-dev] IPythonQt development update
Message-ID: <AANLkTin_PePplLV81Jn3-9sNjNWW6z9Hl_wWXcmCcsqK@mail.gmail.com>

Hi everyone.
I'm sorry I haven't been in contact later, just thinking (erroneously) that
I needed to have something nicely working for you guys, but you're really
the help I need and the decision makers.

So, something (not working as planned) is in git at github.com:
muzgash/ipython.git
You have to install pyzmq and I think that with python-qt4-dev and
pyqt4-dev-tools also will be enough.
The frontend have pure graphical features working well (until someone finds
a bug :p ) however, I have some problems trying to run several lines, I
think I don't understand well this piece of code from the frontend.py file
from the pyzmq examples:

def runcode(self, code):
print code, type(code)
# We can't pickle code objects, so fetch the actual source
src = '\n'.join(self.buffer)

# for non-background inputs, if we do have previoiusly backgrounded
# jobs, check to see if they've produced results
if not src.endswith(';'):
while self.backgrounded > 0:
#print 'checking background'
rep = self.recv_reply()
if rep:
self.backgrounded -= 1
time.sleep(0.05)

# Send code execution message to kernel
omsg = self.session.send(self.request_socket,
'execute_request', dict(code=src))
self.messages[omsg.header.msg_id] = omsg

# Fake asynchronicity by letting the user put ';' at the end of the line
if src.endswith(';'):
self.backgrounded += 1
return

# For foreground jobs, wait for reply
while True:
rep = self.recv_reply()
if rep is not None:
break
self.recv_output()
time.sleep(0.05)

I've tried a lot of things but nothing seems to clarify to me the way I
should implement this in the project, please take a look at the IPyhonQt's
files: ipqt_frontend.py and ipythonqt.py.
In ipqt_frontend.py I'm just inheriting frontend's console class since I
don't really want to change it (although I'm practically rewriting the whole
class)


One thing I want to discuss, or at least read some opinions is what to do
with different outputs from inputs from the same cell, I mean:
________
| a=0      |
| a          |
| *a+10**    *|

Suppose this is the input cell, so there will be two ouputs, the question is
then, does this outputs need to be in the same cell or in different ones?
There's a new file pushed today (ipqt_popups.py) which will contain every
extra widget, until today it hast the stdin linedit to handle request from
raw_input (which I don't really know how to do that) and the foreign stream
to handle ouputs and inputs from other clients.
There're also some graphical features still to implement such as the
debugging, magic toolbar and function and tab popups. And another one very
important, every output cell has to be related to the input cell it came so
if the input cell is edited, the new output overwrites the old one in the
same cell or if there's no output,the cell is erased. I don't really know a
good way to achieve this, I think that with a relating attribute will be
good enough.


Thanks in advance for your help and comments.



Best regards.
--
Gerardo Guti?rrez Guti?rrez <http://he1.udea.edu.co/gweb>
Physics student
Universidad de Antioquia
Computational physics and astrophysics group
(FACom<http://urania.udea.edu.co/sites/sites.php>
)
Computational science and development
branch(FACom-dev<http://urania.udea.edu.co/sites/facom-dev/>
)
Usuario Linux #492295
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100623/cf958b4e/attachment.html>

From fperez.net at gmail.com  Wed Jun 23 22:20:43 2010
From: fperez.net at gmail.com (Fernando Perez)
Date: Wed, 23 Jun 2010 19:20:43 -0700
Subject: [IPython-dev] IPythonQt development update
In-Reply-To: <AANLkTin_PePplLV81Jn3-9sNjNWW6z9Hl_wWXcmCcsqK@mail.gmail.com>
References: <AANLkTin_PePplLV81Jn3-9sNjNWW6z9Hl_wWXcmCcsqK@mail.gmail.com>
Message-ID: <AANLkTikA0CM6gAD34ylSiXffNSp5T_ThNmQuYbK7eXbC@mail.gmail.com>

Hi Gerardo,

On Wed, Jun 23, 2010 at 1:28 AM, Gerardo Gutierrez
<muzgash.lists at gmail.com> wrote:
> So, something (not working as planned) is in
> git at github.com:muzgash/ipython.git
> You have to install pyzmq and I think that with python-qt4-dev and
> pyqt4-dev-tools also will be enough.
> The frontend have pure graphical features working well (until someone finds
> a bug :p ) however, I have some problems trying to run several lines, I
> think I don't understand well this piece of code from the frontend.py file
> from the pyzmq examples

I've cleaned that code up a little bit and fixed the multiline
problem.  I just pushed to your master branch, so do

git pull

before continuing and multiline input should be working.

Some notes on your current prototype:

- when hitting Ctrl-Return, a new cell should be automatically created
below and the cursor moved to the new cell.

- there should be a way to move the cursor between cells

- pyout isn't being captured now, don't worry about it.  Fixing
multiline input handling in the simple way I did it disables
sys.displayhook.  This is a slightly thorny problem and I don't have a
solution yet, I'll post more details later to get some ideas from
others though.  For now, it's better to have multiline input than
expression output (since print always works).  We'll find a suitable
solution later.

- Your handling of exceptions is broken:

Traceback (most recent call last):
  File "./ipythonqt.py", line 60, in execute
    self.console.runcode(src)
  File "/home/fperez/ipython/ipython/IPython/gui/qt/ipqt_frontend.py",
line 98, in runcode
    rep = self.recv_reply()
  File "/home/fperez/ipython/ipython/IPython/gui/qt/frontend.py", line
118, in recv_reply
    self.handle_reply(rep)
  File "/home/fperez/ipython/ipython/IPython/gui/qt/frontend.py", line
102, in handle_reply
    self.recv_output()
  File "/home/fperez/ipython/ipython/IPython/gui/qt/frontend.py", line
98, in recv_output
    self.handle_output(omsg)
  File "/home/fperez/ipython/ipython/IPython/gui/qt/ipqt_frontend.py",
line 88, in handle_output
    handler(omsg)
  File "/home/fperez/ipython/ipython/IPython/gui/qt/ipqt_frontend.py",
line 69, in handle_pyerr
    pyerr_msg=omsg.content.etype+':'+omsg.content.evaule+'\n
'+omsg.content.traceback
AttributeError: 'Message' object has no attribute 'evaule'


>
> One thing I want to discuss, or at least read some opinions is what to do
> with different outputs from inputs from the same cell, I mean:
> ________
> | a=0 ? ? ?|
> | a ? ? ? ? ?|
> | a+10 ? ?|
> Suppose this is the input cell, so there will be two ouputs, the question is
> then, does this outputs need to be in the same cell or in different ones?

We'll first have to figure out how to get cleanly multi-line input
*and* expression output.  But once that's fixed, I think the outputs
should end up in different output cells, so that one output cell
contains one result each (for use with _NN variables, for example).

> There's a new file pushed today (ipqt_popups.py) which will contain every
> extra widget, until today it hast the stdin linedit to handle request from
> raw_input (which I don't really know how to do that) and the foreign stream
> to handle ouputs and inputs from other clients.
> There're also some graphical features still to implement such as the
> debugging, magic toolbar and function and tab popups. And another one very
> important, every output cell has to be related to the input cell it came so
> if the input cell is edited, the new output overwrites the old one in the
> same cell or if there's no output,the cell is erased. I don't really know a
> good way to achieve this, I think that with a relating attribute will be
> good enough.
>
> Thanks in advance for your help and comments.

Have a go at fixing the problems above and the code cleanups we
discussed over skype, and post more frequently on the list so we can
give you timely feedback.

Cheers,

f


From fperez.net at gmail.com  Wed Jun 23 22:21:58 2010
From: fperez.net at gmail.com (Fernando Perez)
Date: Wed, 23 Jun 2010 19:21:58 -0700
Subject: [IPython-dev] unbundle libraries
In-Reply-To: <20100619205805.01e8e725@earth>
References: <20100619205805.01e8e725@earth>
Message-ID: <AANLkTikPIAHEkOQAbBAGZFaKA8Haa6_ndBsg5Re6NcId@mail.gmail.com>

Hi Tom,

On Sat, Jun 19, 2010 at 11:58 AM, Thomas Spura
<tomspur at fedoraproject.org> wrote:
>
>
> I read this list now for a while (and I am the package maintainer in
> fedora), and started working on ipython now...
>
> There is a current bug in fedora, because ipython bundles libraries
> [1], what is not allowed. So another one from fedora and I worked on
> unbundle everything, so the system ones can easily be used and you
> still don't require a hard dependency on all the libraries.
>
> This work is done in the github repository:
> http://github.com/tomspur/ipython/commits/my_bundled_libs
>
> Please have a look and hopefully pull from there :)

Thanks for this work!  We'll have a look at it next week at scipy.

>
> Just a note:
> The decorator module was a bit tricky, because some functions was
> marked as deprecated to 'import *' won't work. I import the
> update_wrapper from functools instead, as upstream suggests.
> This will require python 2.5 at least, but that won't be a problem,
> because I ought to remember, that you already require that version.
>
> Am I right?

Yes, Python 2.5 is OK for all new code in trunk.

Cheers,

f


From satra at mit.edu  Thu Jun 24 11:20:23 2010
From: satra at mit.edu (Satrajit Ghosh)
Date: Thu, 24 Jun 2010 11:20:23 -0400
Subject: [IPython-dev] taskclient engineid
Message-ID: <AANLkTikKsgkygqTObB9naNLdcxSjOmuipyjCuEy7_Tii@mail.gmail.com>

hi all,

is there a way to retrieve which machine a particular engine is running on?
from the results of a taskclient.get_task_result() i can get the engineid.
can i use this to get more information about the machine and the enviroment
that engine is running on?

cheers,

satra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100624/f039826c/attachment.html>

From satra at mit.edu  Thu Jun 24 11:23:01 2010
From: satra at mit.edu (Satrajit Ghosh)
Date: Thu, 24 Jun 2010 11:23:01 -0400
Subject: [IPython-dev] ipcluster running for all users
Message-ID: <AANLkTikndNQV5TxSdY5w-l2KOL4S28oWu4QojgouCufk@mail.gmail.com>

is it possible to set up ipcluster over ssh such that it runs for all users?
i.e., there is a single controller on the cluster and any user can talk to
it and their tasks get executed in their namespace (under their uid).

cheers,

satra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100624/26288fd7/attachment.html>

From ellisonbg at gmail.com  Thu Jun 24 13:52:33 2010
From: ellisonbg at gmail.com (Brian Granger)
Date: Thu, 24 Jun 2010 10:52:33 -0700
Subject: [IPython-dev] taskclient engineid
In-Reply-To: <AANLkTikKsgkygqTObB9naNLdcxSjOmuipyjCuEy7_Tii@mail.gmail.com>
References: <AANLkTikKsgkygqTObB9naNLdcxSjOmuipyjCuEy7_Tii@mail.gmail.com>
Message-ID: <AANLkTimmdOFWQZ0dGx7EXbOlTu8YAiwsOaJJwGcK_SMH@mail.gmail.com>

Satra,

I would simply import sys and os in the task, call the relevant
functions with the info you want, and then save the info to a dict
that you return with the task result.

Brian

On Thu, Jun 24, 2010 at 8:20 AM, Satrajit Ghosh <satra at mit.edu> wrote:
> hi all,
>
> is there a way to retrieve which machine a particular engine is running on?
> from the results of a taskclient.get_task_result() i can get the engineid.
> can i use this to get more information about the machine and the enviroment
> that engine is running on?
>
> cheers,
>
> satra
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com


From ellisonbg at gmail.com  Thu Jun 24 13:54:24 2010
From: ellisonbg at gmail.com (Brian Granger)
Date: Thu, 24 Jun 2010 10:54:24 -0700
Subject: [IPython-dev] ipcluster running for all users
In-Reply-To: <AANLkTikndNQV5TxSdY5w-l2KOL4S28oWu4QojgouCufk@mail.gmail.com>
References: <AANLkTikndNQV5TxSdY5w-l2KOL4S28oWu4QojgouCufk@mail.gmail.com>
Message-ID: <AANLkTinqk51mfCBz4ra139p_rphA3EuoLgu4_94lnijV@mail.gmail.com>

Satra,

ipcluster+ssh only uses ssh for starting the engines and controller.
Once running, they only use the twisted networking framework.  To
allow multiple users access, you will simply need to distribute the
FURLs to all users and then each user can pass the FURL to the
MultiEngineClient/TaskClient.  Does this make sense?

Cheers,

Brian

On Thu, Jun 24, 2010 at 8:23 AM, Satrajit Ghosh <satra at mit.edu> wrote:
> is it possible to set up ipcluster over ssh such that it runs for all users?
> i.e., there is a single controller on the cluster and any user can talk to
> it and their tasks get executed in their namespace (under their uid).
>
> cheers,
>
> satra
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com


From david.n.mashburn at gmail.com  Thu Jun 24 14:27:00 2010
From: david.n.mashburn at gmail.com (David Mashburn)
Date: Thu, 24 Jun 2010 13:27:00 -0500
Subject: [IPython-dev] IPythonQt development update
In-Reply-To: <AANLkTikA0CM6gAD34ylSiXffNSp5T_ThNmQuYbK7eXbC@mail.gmail.com>
References: <AANLkTin_PePplLV81Jn3-9sNjNWW6z9Hl_wWXcmCcsqK@mail.gmail.com>
	<AANLkTikA0CM6gAD34ylSiXffNSp5T_ThNmQuYbK7eXbC@mail.gmail.com>
Message-ID: <4C23A374.9030706@gmail.com>

Hello Gerardo,

With PySlices (part of wxPython now), I went for the easy route and put 
all the outputs together in one cell.  The advantages either way as I 
see them:

One output cell: Easy for the user to delete the entire output quickly.

Multiple cells: Easy for the user to delete chunks of the output that 
are unnecessarily large.

One thing I could see as very useful if you are going to have multiple 
output cells would be to let the user either collapse or delete all the 
output from any single input (that is one of the few gripes I've had 
with the way Mathematica works, for example).

Just my 2 cents!

-David

Fernando Perez wrote:
> Hi Gerardo,
>
> On Wed, Jun 23, 2010 at 1:28 AM, Gerardo Gutierrez
> <muzgash.lists at gmail.com> wrote:
>   
>> So, something (not working as planned) is in
>> git at github.com:muzgash/ipython.git
>> You have to install pyzmq and I think that with python-qt4-dev and
>> pyqt4-dev-tools also will be enough.
>> The frontend have pure graphical features working well (until someone finds
>> a bug :p ) however, I have some problems trying to run several lines, I
>> think I don't understand well this piece of code from the frontend.py file
>> from the pyzmq examples
>>     
>
> I've cleaned that code up a little bit and fixed the multiline
> problem.  I just pushed to your master branch, so do
>
> git pull
>
> before continuing and multiline input should be working.
>
> Some notes on your current prototype:
>
> - when hitting Ctrl-Return, a new cell should be automatically created
> below and the cursor moved to the new cell.
>
> - there should be a way to move the cursor between cells
>
> - pyout isn't being captured now, don't worry about it.  Fixing
> multiline input handling in the simple way I did it disables
> sys.displayhook.  This is a slightly thorny problem and I don't have a
> solution yet, I'll post more details later to get some ideas from
> others though.  For now, it's better to have multiline input than
> expression output (since print always works).  We'll find a suitable
> solution later.
>
> - Your handling of exceptions is broken:
>
> Traceback (most recent call last):
>   File "./ipythonqt.py", line 60, in execute
>     self.console.runcode(src)
>   File "/home/fperez/ipython/ipython/IPython/gui/qt/ipqt_frontend.py",
> line 98, in runcode
>     rep = self.recv_reply()
>   File "/home/fperez/ipython/ipython/IPython/gui/qt/frontend.py", line
> 118, in recv_reply
>     self.handle_reply(rep)
>   File "/home/fperez/ipython/ipython/IPython/gui/qt/frontend.py", line
> 102, in handle_reply
>     self.recv_output()
>   File "/home/fperez/ipython/ipython/IPython/gui/qt/frontend.py", line
> 98, in recv_output
>     self.handle_output(omsg)
>   File "/home/fperez/ipython/ipython/IPython/gui/qt/ipqt_frontend.py",
> line 88, in handle_output
>     handler(omsg)
>   File "/home/fperez/ipython/ipython/IPython/gui/qt/ipqt_frontend.py",
> line 69, in handle_pyerr
>     pyerr_msg=omsg.content.etype+':'+omsg.content.evaule+'\n
> '+omsg.content.traceback
> AttributeError: 'Message' object has no attribute 'evaule'
>
>
>   
>> One thing I want to discuss, or at least read some opinions is what to do
>> with different outputs from inputs from the same cell, I mean:
>> ________
>> | a=0      |
>> | a          |
>> | a+10    |
>> Suppose this is the input cell, so there will be two ouputs, the question is
>> then, does this outputs need to be in the same cell or in different ones?
>>     
>
> We'll first have to figure out how to get cleanly multi-line input
> *and* expression output.  But once that's fixed, I think the outputs
> should end up in different output cells, so that one output cell
> contains one result each (for use with _NN variables, for example).
>
>   
>> There's a new file pushed today (ipqt_popups.py) which will contain every
>> extra widget, until today it hast the stdin linedit to handle request from
>> raw_input (which I don't really know how to do that) and the foreign stream
>> to handle ouputs and inputs from other clients.
>> There're also some graphical features still to implement such as the
>> debugging, magic toolbar and function and tab popups. And another one very
>> important, every output cell has to be related to the input cell it came so
>> if the input cell is edited, the new output overwrites the old one in the
>> same cell or if there's no output,the cell is erased. I don't really know a
>> good way to achieve this, I think that with a relating attribute will be
>> good enough.
>>
>> Thanks in advance for your help and comments.
>>     
>
> Have a go at fixing the problems above and the code cleanups we
> discussed over skype, and post more frequently on the list so we can
> give you timely feedback.
>
> Cheers,
>
> f
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>   



From satra at mit.edu  Fri Jun 25 01:29:34 2010
From: satra at mit.edu (Satrajit Ghosh)
Date: Fri, 25 Jun 2010 01:29:34 -0400
Subject: [IPython-dev] ipcluster running for all users
In-Reply-To: <AANLkTinqk51mfCBz4ra139p_rphA3EuoLgu4_94lnijV@mail.gmail.com>
References: <AANLkTikndNQV5TxSdY5w-l2KOL4S28oWu4QojgouCufk@mail.gmail.com>
	<AANLkTinqk51mfCBz4ra139p_rphA3EuoLgu4_94lnijV@mail.gmail.com>
Message-ID: <AANLkTilXqSZFNysFGIon6UJV21ASa9gOVBie_kO5Npr3@mail.gmail.com>

thanks brian. yes. this makes sense. on a related note then, is this the
same for pbs and the other communication protocols as well? i.e that
protocol is used to start the engines and controller and then twisted is
used for communication?

cheers,

satra


On Thu, Jun 24, 2010 at 1:54 PM, Brian Granger <ellisonbg at gmail.com> wrote:

> Satra,
>
> ipcluster+ssh only uses ssh for starting the engines and controller.
> Once running, they only use the twisted networking framework.  To
> allow multiple users access, you will simply need to distribute the
> FURLs to all users and then each user can pass the FURL to the
> MultiEngineClient/TaskClient.  Does this make sense?
>
> Cheers,
>
> Brian
>
> On Thu, Jun 24, 2010 at 8:23 AM, Satrajit Ghosh <satra at mit.edu> wrote:
> > is it possible to set up ipcluster over ssh such that it runs for all
> users?
> > i.e., there is a single controller on the cluster and any user can talk
> to
> > it and their tasks get executed in their namespace (under their uid).
> >
> > cheers,
> >
> > satra
> >
> >
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> >
> >
>
>
>
> --
> Brian E. Granger, Ph.D.
> Assistant Professor of Physics
> Cal Poly State University, San Luis Obispo
> bgranger at calpoly.edu
> ellisonbg at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100625/b761df76/attachment.html>

From ellisonbg at gmail.com  Sat Jun 26 02:23:43 2010
From: ellisonbg at gmail.com (Brian Granger)
Date: Fri, 25 Jun 2010 23:23:43 -0700
Subject: [IPython-dev] ipcluster running for all users
In-Reply-To: <AANLkTilXqSZFNysFGIon6UJV21ASa9gOVBie_kO5Npr3@mail.gmail.com>
References: <AANLkTikndNQV5TxSdY5w-l2KOL4S28oWu4QojgouCufk@mail.gmail.com>
	<AANLkTinqk51mfCBz4ra139p_rphA3EuoLgu4_94lnijV@mail.gmail.com>
	<AANLkTilXqSZFNysFGIon6UJV21ASa9gOVBie_kO5Npr3@mail.gmail.com>
Message-ID: <AANLkTilpVz8-5NusWKOjt84Z87xxeQLLgxF5oxtbTo8f@mail.gmail.com>

Satra,

Yes, no matter how you start the cluster, we always use our own
communication protocols that are twisted based.

Brian

On Thu, Jun 24, 2010 at 10:29 PM, Satrajit Ghosh <satra at mit.edu> wrote:
> thanks brian. yes. this makes sense. on a related note then, is this the
> same for pbs and the other communication protocols as well? i.e that
> protocol is used to start the engines and controller and then twisted is
> used for communication?
>
> cheers,
>
> satra
>
>
> On Thu, Jun 24, 2010 at 1:54 PM, Brian Granger <ellisonbg at gmail.com> wrote:
>>
>> Satra,
>>
>> ipcluster+ssh only uses ssh for starting the engines and controller.
>> Once running, they only use the twisted networking framework. ?To
>> allow multiple users access, you will simply need to distribute the
>> FURLs to all users and then each user can pass the FURL to the
>> MultiEngineClient/TaskClient. ?Does this make sense?
>>
>> Cheers,
>>
>> Brian
>>
>> On Thu, Jun 24, 2010 at 8:23 AM, Satrajit Ghosh <satra at mit.edu> wrote:
>> > is it possible to set up ipcluster over ssh such that it runs for all
>> > users?
>> > i.e., there is a single controller on the cluster and any user can talk
>> > to
>> > it and their tasks get executed in their namespace (under their uid).
>> >
>> > cheers,
>> >
>> > satra
>> >
>> >
>> > _______________________________________________
>> > IPython-dev mailing list
>> > IPython-dev at scipy.org
>> > http://mail.scipy.org/mailman/listinfo/ipython-dev
>> >
>> >
>>
>>
>>
>> --
>> Brian E. Granger, Ph.D.
>> Assistant Professor of Physics
>> Cal Poly State University, San Luis Obispo
>> bgranger at calpoly.edu
>> ellisonbg at gmail.com
>
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com


From satra at mit.edu  Wed Jun 30 01:18:53 2010
From: satra at mit.edu (Satrajit Ghosh)
Date: Wed, 30 Jun 2010 01:18:53 -0400
Subject: [IPython-dev] ipython + pydev
Message-ID: <AANLkTikRYUZPmM9z7oWU7qdsnazDTzUgf953NWL8HyPZ@mail.gmail.com>

hi,

just wanted to check if anybody knows a way of getting an ipython console to
work with pydev.

cheers,

satra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100630/3153f4ca/attachment.html>

From fperez.net at gmail.com  Wed Jun 30 16:21:12 2010
From: fperez.net at gmail.com (Fernando Perez)
Date: Wed, 30 Jun 2010 15:21:12 -0500
Subject: [IPython-dev] 0.11 regression in %who_ls - report issue and
	request code review
In-Reply-To: <AANLkTin7QSKAkJAXV4h4DFXjIckLYoV5voWIQEAXF5rP@mail.gmail.com>
References: <AANLkTin7QSKAkJAXV4h4DFXjIckLYoV5voWIQEAXF5rP@mail.gmail.com>
Message-ID: <AANLkTikyOOz90l46Hij07D7HVy6nuQ3vZuBkeMzWV_32@mail.gmail.com>

On Wed, May 19, 2010 at 11:12 AM, Jonathan March <JDM at marchray.net> wrote:
>
> 1. The fix just changes one line, but I have configured my editor to remove
> trailing white space, which it did on dozens of lines in this file.?This
> cleanup makes it harder to view the diff on github (unlike local diff tools
> which can ignore whitespace differences). So is it better not to do such
> cleanup?

For the futue, such cleanups should be done on separate
whitespace-only commits if desired, so that the diffs are easier to
read online.  But don't worry about this one, it's easy enough to look
at the diff locally.

> 2. I don't want to create more work than necessary for dev team.?For
> something tiny like this, should I skip the bug report and code review steps
> and go straight to pull request?

Yes, that's OK, because a pull request still  allows for review in the
commit itself.  Github makes that process very easy (as long as the
developers respond :)

Cheers,

f

ps - For the list, Jonathan is here at Scipy so we'll go over this
together here.


From fperez.net at gmail.com  Wed Jun 30 16:36:03 2010
From: fperez.net at gmail.com (Fernando Perez)
Date: Wed, 30 Jun 2010 15:36:03 -0500
Subject: [IPython-dev] 0.11 regression in %who_ls - report issue and
	request code review
In-Reply-To: <AANLkTikyOOz90l46Hij07D7HVy6nuQ3vZuBkeMzWV_32@mail.gmail.com>
References: <AANLkTin7QSKAkJAXV4h4DFXjIckLYoV5voWIQEAXF5rP@mail.gmail.com> 
	<AANLkTikyOOz90l46Hij07D7HVy6nuQ3vZuBkeMzWV_32@mail.gmail.com>
Message-ID: <AANLkTikLLWQITeCuK7FhJjpnkXeuWnenoKLVgprFoTPQ@mail.gmail.com>

Further context:

On Wed, Jun 30, 2010 at 3:21 PM, Fernando Perez <fperez.net at gmail.com> wrote:
>
>
> ps - For the list, Jonathan is here at Scipy so we'll go over this
> together here.

Jonathan has offered us to help out with small fixes, and
reviewing/merging them in.  This is a great way to help out the
project, while progressively learning the codebase to be able to dig
into the more complex parts.

While here at scipy we'll work together on how to add a test for his
fix so that with every new small fix we increase our test coverage,
and  it will be great to have a new collaborator in the project.

Cheers,

f