[IPython-dev] Simple Kernel Example

Matthias BUSSONNIER bussonniermatthias at gmail.com
Fri Jan 17 11:50:48 EST 2014


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}']
-- 
M

> 
> -Doug
> _______________________________________________
> 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