<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Le 17 janv. 2014 à 18:11, Doug Blank a écrit :</div><br><blockquote type="cite"><div>Thanks for the information; I very much appreciate being explicit :)<br><br>If there is a page somewhere that I can edit to put this kind of<br>helpful information, I'd be glad to help. There are no hints in the<br>ipython_config.py'e 500 lines of comments that you shouldn't import<br>anything, nor that the KernelManager is available through c. In fact,<br>the word "kernel" does not appear in in that file.<br><br></div></blockquote><div><br></div><div>it should be in `ipython_notebook_config.py` ~ lines 383 </div><div><br></div><div><div># The Popen Command to launch the kernel. Override this if you have a custom</div><div># c.KernelManager.kernel_cmd = []</div><div><br></div><div><br></div><div>or in $ ipython notebook --help-all </div><div><div>KernelManager options</div><div>---------------------</div><div>...</div><div>--KernelManager.kernel_cmd=<List></div><div> Default: []</div><div> The Popen Command to launch the kernel. Override this if you have a custom</div><div>…</div><div><br></div><div>Docs [1] should tell you :</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>You can then configure class attributes like this:<br><span class="Apple-tab-span" style="white-space:pre"> </span>c.InteractiveShell.automagic = False</div><div><br></div><div>That are simple key/Value attributes set on c</div><div><br></div><div>It might not be explicit enough that `c` auto create attributes if needed, and might need to be clarified though.</div><div><br></div><div>Technically you can import stuff in your config.py files, but the goal of the config.py file is just to populate the `c` object with config files, </div><div>importing and setting the values directly on class members is doable, but might not be what you want to do.</div><div><br></div><div>Also this means that most config file could be expressed as plain data, and in fact we do support json config files in 2.0</div><div><br></div><div>Haven't looked at your simple_kernel.py yet. </div><div><br></div><div>-- </div><div>M</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>[1] : <a href="http://ipython.org/ipython-doc/dev/config/intro.html#python-config-files">http://ipython.org/ipython-doc/dev/config/intro.html#python-config-files</a></div></div></div><div><br></div><div><br></div><div><br></div><br><blockquote type="cite"><div>-Doug<br><br><blockquote type="cite">--<br></blockquote><blockquote type="cite">M<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-Doug<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">IPython-dev mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">IPython-dev mailing list<br></blockquote><blockquote type="cite"><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br></blockquote><blockquote type="cite"><a href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br></blockquote>_______________________________________________<br>IPython-dev mailing list<br><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/ipython-dev<br></div></blockquote></div><br></body></html>