[IPython-dev] ipython bash interaction?
Zoltán Vörös
zvoros at gmail.com
Wed Sep 25 14:39:23 EDT 2013
Hi Thomas, and Francesco,
Thanks for the feedback!
On 25/09/13 18:40, Thomas Kluyver wrote:
> Yes, commands are passed to a system shell. Check that $PATH is the
> same there as it is in your normal shell.
No, it is not. You are right, the PATH that I see from the ipython
console misses the directories that are set by .bashrc. Is there a way
of making ipython aware of the bash variables? I thought that everything
after ! is passed to the OS.
On 25/09/13 18:45, Francesco Montesano wrote:
> do you get an error if you run it with
> !/bin/bash myscript
> ?
If I supply the full path to myscript, then this works. But so does
!/full_path/myscript
Cheers,
Zoltán
> Thomas
>
>
> On 25 September 2013 08:44, Zoltán Vörös <zvoros at gmail.com
> <mailto:zvoros at gmail.com>> wrote:
>
> Hi all,
>
> I have a trivial question: how does the ipython console interact with
> bash (or the operating system, for that matter)? I can use system
> commands with e.g.,
>
> In [] : !date
> Wed Sep 25 17:42:33 CEST 2013
>
> but this fails:
>
> In [] : !myscript
> /bin/sh: 1: myscript: not found
>
> where myscript is a bash script in a directory that is in the
> path. From
> the system console, I can run myscript without any problems, no matter
> where I am. Is it not the case that everything after an ! is passed to
> the underlying system? Or is there something that has to be
> configured?
>
> Cheers,
> Zoltán
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org <mailto:IPython-dev at scipy.org>
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130925/5755b8ad/attachment.html>
More information about the IPython-dev
mailing list