[IPython-User] Adding directory to sys.path at startup in qtconsole.

Prasanth oneaufs@gmail....
Thu Aug 11 01:01:43 CDT 2011


Thanks very much for the suggestions.

Adding the two lines to ipython_config.py made the change show up in
qtconsole as well.

Thanks,
Prasanth

On Wed, Aug 10, 2011 at 11:09 PM, MinRK <benjaminrk@gmail.com> wrote:

> In general, when you aren't configuring IPython you can just execute
> commands.  Just add the lines:
>
> import sys
> sys.path.append(whatever)
>
> to ipython_config.py, and you should be set.
>
> No need to use exec_lines unless you need to affect the initialized
> InteractiveShell or the user namespace.
>
> -MinRK
>
> On Wed, Aug 10, 2011 at 08:45, Thomas Kluyver <takowl@gmail.com> wrote:
>
>> On 10 August 2011 16:34, Prasanth <oneaufs@gmail.com> wrote:
>>
>>> Am I using the wrong app? How do I get this to work?
>>
>>
>> If you use c.IPKernelApp, you should be able to set it. If you want the
>> same thing in both environments, use c.InteractiveShellApp in
>> ipython_config.py. Both TerminalIPythonApp and IPKernelApp inherit from
>> InteractiveShellApp.
>>
>> Thomas
>>
>> _______________________________________________
>> IPython-User mailing list
>> IPython-User@scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-user
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20110811/58bdf010/attachment.html 


More information about the IPython-User mailing list