Fernando Perez | 1 Feb 08:33
Picon
Gravatar

Re: ipython won't take >b< from the keyboard

On Sat, Jan 31, 2009 at 11:32 AM, Glenn <grpython <at> sonic.net> wrote:
> I've done some more testing and have gotten results I don't understand.
> If I open a terminal window and start IPython when I'm logged in as user1,
> the letter 'b' works as expected. If I log in as user2, and then start
> IPython, 'b' acts like ^G (makes a sound, but doesn't insert the character).

This is weird, and I'm not an osx user, so I'm guessing here a lot.
But the fact that it works for one user and not for the other, makes
me wonder whether you have  a ~/.inputrc for either of them (esp. for
the one where it doesn't work).  If you do, try renaming that file
temporarily to something else and see if the problem goes away.  If it
does, then a little inspection of the file, or just commenting things
out, should quickly isolate the problem.

If it's not a readline config problem driven by a wonky ~/.inputrc, I
have no clue.

Cheers,

f
Python Nutter | 1 Feb 11:09
Picon

Re: ipython won't take >b< from the keyboard

How did you install iPython? I am taking it from the text you
downloaded a binary installer for OS X.

I have not had problems with iPython and the >b< key on my OS X
systems but I install mine a different way than downloading a binary
installer.

If  I want it just for my account I omit the sudo but normally I do it
system wide thusly on OS X systems:

$sudo easy_install readline
$sudo easy_install ipython

then

$ipython

and I'm up and going.

I don't edit iPython config files except to link to an editor when typing
In [2]: edit test.py

Usually i point it to Vim or nano depending on what system I am on.

If you did the binary installer method and want to give the egg
installer method a try. If there is no uninstaller, just remove your
~/.python folder then traverset your site-packages and manually do it
if it ends up there (not sure as I don't binary install it) might as
well check out scripts (windows) folder as well (bin on OS X).

(Continue reading)

Olivier Grisel | 3 Feb 00:44
Gravatar

interactive doctest editing with interlude.interact

Hi list,

I just discovered a new tool to help streamline the doctest editing workflow:

  http://bluedynamics.com/articles/jens/interlude-write-python-doctests-interactive

Would be even better to have a ipython version with the doctest mode
enabled by default. Any volunteer?

--

-- 
Olivier
Fernando Perez | 4 Feb 08:48
Picon
Favicon

Re: IPython

Hi Godefroid,

On Tue, Feb 3, 2009 at 3:39 AM, Godefroid Chapelle <gotcha <at> bubblenet.be> wrote:
> Hi list,
>
> I'd like to mention ipdb in the IPython cookbook.
>
> Can you give write access to GodefroidChapelle ?

Done, sorry for the delay, I was busy all day in a meeting.

Thanks for contributing!

Cheers,

f
Ville M. Vainio | 5 Feb 19:12
Picon
Gravatar

Paramiko (ssh)

Caught this from planet python:

http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/

This would make perfect sense to wrap up in ipython. Probably by
providing syntaxes:

out = !s remote_command
!s remote_command
scd /my/dir
sls (short for !s ls)

And possibly throwing in a remote filename completer and file transfer
for good measure. Anyone have more ideas?

--

-- 
Ville M. Vainio
http://tinyurl.com/vainio
Fernando Perez | 6 Feb 09:07
Picon
Gravatar

Re: Paramiko (ssh)

On Thu, Feb 5, 2009 at 10:12 AM, Ville M. Vainio <vivainio <at> gmail.com> wrote:
> Caught this from planet python:
>
> http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/
>
> This would make perfect sense to wrap up in ipython. Probably by
> providing syntaxes:
>
> out = !s remote_command
> !s remote_command
> scd /my/dir
> sls (short for !s ls)
>
> And possibly throwing in a remote filename completer and file transfer
> for good measure. Anyone have more ideas?

That looks like it could be especially useful on Windows.  On linux,
the ssh/scp clients are always there and bash does remote filename
completions for hosts in your ~/.ssh/config file for which you have
keys enabled.  But I'd imagine having that kind of support out of the
box for windows would be great, where I recall having to hunt for
decent SSH support.

And even on unix, the ability to use the scripting power of ipython
through a remote host, and especially to link local activity with
remote files, could be great.

Cheers,

f
(Continue reading)

Ville M. Vainio | 6 Feb 22:18
Picon
Gravatar

Re: Paramiko (ssh)

On Fri, Feb 6, 2009 at 10:07 AM, Fernando Perez <fperez.net <at> gmail.com> wrote:

> And even on unix, the ability to use the scripting power of ipython
> through a remote host, and especially to link local activity with
> remote files, could be great.

This is mainly what I'm interested in - capturing and mangling output
from commands and files on remote hosts. Perhaps easily roll up some
little functions to, say, install some debs on the remote device (of
interest to me personally, because I do that on my work a lot - I use
ssh to mess around with maemo devices).

The concept could be extended to match what capistrano does:

http://www.capify.org/getting-started/from-the-beginning

--

-- 
Ville M. Vainio
http://tinyurl.com/vainio
Franz Zieher | 7 Feb 12:44
Picon

Persistence ipcontroller and ipengines


Hi!

I'm using the ipcontroller and ipengines together with MoinMoin in the
following way:

1) ipcontroller and ipengines are run by a specific user.group on the web
server and share the furl's with 
    the web server
2) moinmoin is run with the twisted web server (historically, not yet
converted to wsgi)
3) a custom matplotlib parser in moin takes a code section and creates a
StringTask
4) StringTask is sent to ipcontroller by TaskClient (run in a seperate
python process, because
    twisted is already used by moin).
5) Images are created during the execution of the StringTask by one of the
ipengines
6) The images are attached to the moin page and displayed instead of the
matplotlib code

I have a couple of questions related to that procedure
- Is it wise to have long running ipcontroller/ipengines?
- Can the IPython.kernel.client be used within moin run by twisted (the
reactor is started by moin)?
- Are there any precautions (cleanups) that shall be performed before
launching the StringTask

An early form of the parser can be found at
http://moinmo.in/ParserMarket/matplotlib
(Continue reading)

Vishal Vatsa | 7 Feb 13:14
Picon
Gravatar

Re: Persistence ipcontroller and ipengines

Hi

I don't think that there is any major problems with

long running ipcontroller/engines, though i would

say call clear on you controller every so often.

The longest run i have had so far is about a month.

If you want to run a client from another reactor,

Use the asyncclient, twisted is interesting :)

If you need more information, please ask.

Regards,

-Vishal

----- Original message --

I have a couple of questions related to that procedure

- Is it wise to have long running ipcontroller/ipengines?

- Can the IPython.kernel.client be used within moin run by twisted (the

reactor is started by moin)?

- Are there any precautions (cleanups) that shall be performed before

launching the StringTask

An early form of the parser can be found at

http://moinmo.in/ParserMarket/matplotlib

Thanks for any thoughts on that.

Franz

--

View this message in context: http://www.nabble.com/Persistence-ipcontroller-and-ipengines-tp21800901p21800901.html

Sent from the IPython - User mailing list archive at Nabble.com.

_______________________________________________

IPython-user mailing list

IPython-user <at> scipy.org

http://lists.ipython.scipy.org/mailman/listinfo/ipython-user

_______________________________________________
IPython-user mailing list
IPython-user <at> scipy.org
http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
Franz Zieher | 7 Feb 14:34
Picon

Re: Persistence ipcontroller and ipengines


Hi Vishal,

thanks for the hint.
As you pointed out, twisted is interesting.
I tried to run my StringTask in the following way

st = asyncclient.StringTask(script,pull=pullObjs,push=pushObjs)
tc = asyncclient.get_task_client(self.furl)
tid = tc.run(st)
res = tc.get_task_result(tid,block=True)

It turned out that tc does not have a run methon :-(

Do you have an example on how I would run the above.
Thanks

Franz

Vishal Vatsa-2 wrote:
> 
> Hi
> 
> I don't think that there is any major problems with 
> long running ipcontroller/engines, though i would 
> say call clear on you controller every so often.
> 
> The longest run i have had so far is about a month.
> 
> If you want to run a client from another reactor,
> Use the asyncclient, twisted is interesting :) 
> 
> If you need more information, please ask.
> 
> Regards,
> -Vishal
> 
> ----- Original message --
> I have a couple of questions related to that procedure
> - Is it wise to have long running ipcontroller/ipengines?
> - Can the IPython.kernel.client be used within moin run by twisted (the
> reactor is started by moin)?
> - Are there any precautions (cleanups) that shall be performed before
> launching the StringTask
> 
> An early form of the parser can be found at
> http://moinmo.in/ParserMarket/matplotlib
> 
> Thanks for any thoughts on that.
> 
> Franz
> --
> View this message in context:
> http://www.nabble.com/Persistence-ipcontroller-and-ipengines-tp21800901p21800901.html
> Sent from the IPython - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> IPython-user mailing list
> IPython-user <at> scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
> 
> 
> _______________________________________________
> IPython-user mailing list
> IPython-user <at> scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
> 
> 

--

-- 
View this message in context: http://www.nabble.com/Persistence-ipcontroller-and-ipengines-tp21800901p21888368.html
Sent from the IPython - User mailing list archive at Nabble.com.

Gmane