[IPython-User] Fwd: ipython-qtconsole missing

Klonuo Umom klonuo@gmail....
Sat Aug 20 09:08:27 CDT 2011


--------- Forwarded message ----------
From: Klonuo Umom <klonuo@gmail.com>
Date: Sat, Aug 20, 2011 at 4:06 PM
Subject: Re: [IPython-User] ipython-qtconsole missing
To: Julian Taylor <jtaylor.debian@googlemail.com>


Works fine, thanks

#!/bin/bash
# ~/IPython
export LD_LIBRARY_PATH=blah
export LD_PRELOAD=blah
exec /usr/local/bin/ipython $@

Cheers


On Sat, Aug 20, 2011 at 3:40 PM, Julian Taylor
<jtaylor.debian@googlemail.com> wrote:
> On 08/20/2011 03:28 PM, Klonuo Umom wrote:
>> Hm, this way I can't import numpy. I build it with MKL and some env
>> vars are in ~/.bashrc needed for it to function properly.
>> Is there way I could set env vars in ipython.desktop file?
>>
>> On Sat, Aug 20, 2011 at 2:32 PM, Julian Taylor
>> <jtaylor.debian@googlemail.com> wrote:
>>>
>>> the package will create a launcher/menu item for ipython and ipython
>>> qtconsole.
>>> If you do it manually you have to run update-desktop-database after
>>> installing your desktop file or use desktop-file-install to install it.
>>>
>>>
>
> you probably need to add a wrapper script to do that
>
> place this in a file:
> #!/bin/bash
> # set environment variable
> export TEST="bla"
> # pull in everything from bashrc
> source $HOME/.bashrc
> exec /usr/bin/ipython
>
> then:
> chmod u+x file
>
> and execute that file in the .desktop instead of ipython
> Don't forget to run sudo update-desktop-database
>
>


More information about the IPython-User mailing list