<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Le 18 oct. 2013 à 16:24, Joshua Donnelly a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">the change from <div>c.KernelManager.kernel_cmd </div><div>(rather than .kernel_launch_program) made it work a little more now, </div><div>so now the notebook starts without errors :)</div><div><br></div><div>
though when i interact with a cell, a modal dialog repeatedly says... <br><div>__________________________________________________________</div><div><div class="" style="padding-top: 9px; padding-right: 15px; padding-bottom: 9px; padding-left: 15px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(238, 238, 238); color: rgb(0, 0, 0); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 20px; position: static; z-index: auto; ">
<h3 style="margin:0px;font-family:inherit;line-height:30px;color:inherit;font-size:22.75px">Kernel Restarting</h3></div><div class="" style="max-height:500px;padding:15px"><font color="#000000" face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="line-height:20px">The kernel appears to have died. It will restart automatically.<br>
</span></font><span style="color:rgb(34,34,34);font-family:arial;font-size:small;line-height:normal">__________________________________________________________</span></div></div></div></div></blockquote><div><br></div><div><br></div><div>Do you have error in the console ? </div><div>Probably bad node version, of required packages.</div><div><br></div><br><blockquote type="cite"><div dir="ltr"><div class="" style="max-height:500px;padding:15px;color:rgb(0,0,0);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:20px">
i guess that's the javascript 'working', so </div><div class="" style="max-height:500px;padding:15px;color:rgb(0,0,0);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:20px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">would there be a good set of notebooks documenting the ipython internals<br>
or the notebook UI itself? because i don't know what you mean by "</span><span style="font-family:arial,sans-serif;line-height:normal;color:rgb(34,34,34)">profile_default" (contains: settings/history/the json for the connections/etc)</span></div></div></blockquote><div><br></div><div>IPython store many profile in .ipython/profile_<profile-name>/  on unix at least. Most of the customization happened here, </div><div>you can overwrite some of IPython file (that is what Min's profile_jskernel does) and have some configuration.</div><div><br></div><div><br></div><br><blockquote type="cite"><div dir="ltr">
<div class="" style="max-height:500px;padding:15px"><span style="font-family:arial,sans-serif;font-size:13px">if you put it in profile_default, then you should run $ ipython.exe notebook --profile=default</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;line-height:normal"><br>
</span></div><div class="" style="max-height:500px;padding:15px"><span style="font-family:arial,sans-serif;font-size:13px">ok (for the "in browser js kernel.js" ) it was at </span></div><div class="" style="max-height:500px;padding:15px">
<span style="font-size:13px;font-family:arial,sans-serif">"</span><font face="arial, sans-serif">C:\Users\Administrator\.ipython\profile_default\static\js\kernel.js"<br></font><span style="font-family:arial,sans-serif">should it go at?  <br>
</span><span style="font-family:arial,sans-serif">C:\Users\Administrator\.ipython\profile_default\</span><span style="font-family:arial,sans-serif">kernel.js (no)<br></span><span style="font-family:arial,sans-serif">or C:\Users\Administrator\.ipython\profile_default\static\</span><font face="arial, sans-serif">kernel.js</font>well (no) i tried it in all 3 places at once, which probably wouldn't hurt, and it did not work, so i emptied the cache... and tried it at <font face="arial, sans-serif"><br>
</font></div><div class="" style="max-height:500px;padding:15px">C:\A\Y\IPY\IPython\html\static\services\kernels\js\kernel.js<br>and it WORKS there, so that's good, So it's meant to be a drop<br>in replacement for that existing file which makes sense since it's<br>
not linked in any other way. <br></div></div></blockquote><div><br></div><div>Ok, that's good. Anaconda might be doing some weird stuff. </div><blockquote type="cite"><div dir="ltr"><div class="" style="max-height:500px;padding:15px">So for those following along: <a href="https://github.com/minrk/profile_jskernel/blob/master/static/js/kernel.js" target="_blank" style="font-size:13px;font-family:arial,sans-serif">https://github.com/minrk/profile_jskernel/blob/master/static/js/kernel.js</a> -- just right click that and SaveAs your version of... <br>
C:\A\Y\IPY\IPython\html\static\services\kernels\js\kernel.js<br>(maybe keep a copy of "kernelORIGINAL.js" to revet back to)<br><br></div><div class="" style="max-height:500px;padding:15px">I thought the ipythonblocks_demo was pretty cool,<br>
lots of good stuff there</div><div class="" style="max-height:500px;padding:15px">I agree that it is **much** <span style="font-family:arial,sans-serif;font-size:13px">more painful if the field does not exist as you alway have to check </span><span style="font-family:arial,sans-serif;font-size:13px">for its existence. -- but when you loop thru the whole lot for the first render the missing properties could be added <br>
</span><span style="font-size:13px;font-family:arial,sans-serif"><br>if(!blah.</span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">metadata</span><span style="font-size:13px;font-family:arial,sans-serif">){</span><span style="font-size:13px;font-family:arial,sans-serif">blah.</span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">metadata={}</span><span style="font-size:13px;font-family:arial,sans-serif">} <br>
<br>then when it as it is saved back <br><br>if(JSON.stringify(</span><span style="font-size:13px;font-family:arial,sans-serif">blah.</span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">metadata</span><span style="font-size:13px;font-family:arial,sans-serif">)=='{}'){delete </span><span style="font-size:13px;font-family:arial,sans-serif">blah.</span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">metadata</span><font face="arial, sans-serif">} <br></font></div></div></blockquote><div><br></div><div>The problem is that other languages might want to **read** the file. </div><div><br></div><br><blockquote type="cite"><div dir="ltr"><div class="" style="max-height:500px;padding:15px"><font face="arial, sans-serif">
or the python equivalent (a couple of lines to save millions of meaningless artifacts being written out to the web is a good thing). Also, I reckon the UNnecessary double quotes are evil ~ if it's mainly just going from python to the browser and you control the codebase, just pull them out, it would also encourage the use of a jsonp wrapper around the notebooks, because only jsonp and eval and not JSON.parse would work in that case, and </font><span style="font-family:arial,sans-serif">jsonp has some serious advantages in terms of getting to you data online or offline with or without a server, over http: or file: protocol, it would be like a tripple win</span><span style="font-family:arial,sans-serif">)</span></div></div></blockquote><div><br></div><div>But we keep in mind those proposition. </div><div>Would you like to open features requests on github with each of theses issue. </div><div>When the notebook format changes, we can consider it and decide with the all core team, and people affected.</div><div><br></div><blockquote type="cite"><div dir="ltr">
<div class="" style="max-height:500px;padding:15px"><pre><pre>WARNING:root:404 PUT /notebooks/0301f8f7-a094-442c-aab4-f0aa74615529 (127.0.0.1): Notebook does not exist: 0301f8f7-a094-442c-aab4-f0aa74615529
WARNING:root:404 PUT /notebooks/0301f8f7-a094-442c-aab4-f0aa74615529 (127.0.0.1) 3.00ms
</pre>wonder what it's doing there, trying to access something that isn't there</pre></div></div></blockquote><div><br></div><div><br></div></div>Which browser  Does it generate thumbnail of websites ? <div>If so it's probably an old notebook as UUID are not kept across server restart. </div><div><br></div><div><br></div><div>-- </div><div>M</div></body></html>