[IPython-dev] Simple Kernel Example
Doug Blank
doug.blank at gmail.com
Fri Jan 17 12:11:55 EST 2014
On Fri, Jan 17, 2014 at 11:50 AM, Matthias BUSSONNIER
<bussonniermatthias at gmail.com> wrote:
>
> Le 17 janv. 2014 à 08:40, Doug Blank a écrit :
>
>> On Fri, Jan 17, 2014 at 10:41 AM, Matthias BUSSONNIER
>> <bussonniermatthias at gmail.com> wrote:
>>> I doubt that code_to_run what what you were looking for, here it should be `KernelManager.kernel_cmd` again.
>>
>> For future generations: you need "from IPython.kernel import
>> KernelManager" in the ipython_config.py in oder to access the
>> KernelManager.
>
> No you don't.
> If if you did you will have unexpected side effect.
> So you should never import anything in your config (unless you like
> killing kittens and burning trees).
>
> What I wrote the "c." was implicit.
> As long as you have c = import_config() and whatever at top,
>
> c.Whatever.something = "other thing" (should) always works.
>
> hence your config file should look like :
>
> c.KernelManager.kernel_cmd = ['executable','{connexion_file}']
Thanks for the information; I very much appreciate being explicit :)
If there is a page somewhere that I can edit to put this kind of
helpful information, I'd be glad to help. There are no hints in the
ipython_config.py'e 500 lines of comments that you shouldn't import
anything, nor that the KernelManager is available through c. In fact,
the word "kernel" does not appear in in that file.
-Doug
> --
> M
>
>>
>> -Doug
>> _______________________________________________
>> IPython-dev mailing list
>> 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
More information about the IPython-dev
mailing list