<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 18, 2013 at 10:02 PM, Joshua Donnelly <span dir="ltr"><<a href="mailto:joshuadonnelly@gmail.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=joshuadonnelly@gmail.com&cc=&bcc=&su=&body=','_blank');return false;">joshuadonnelly@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,  </div><div> <br></div>So i have sent a few emails to <span style="white-space:nowrap;font-family:arial,sans-serif"><a href="mailto:ipython-dev@scipy.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=ipython-dev@scipy.org&cc=&bcc=&su=&body=','_blank');return false;">ipython-dev@scipy.org</a> and one of the other devs,</span><div>





<span style="white-space:nowrap;font-family:arial,sans-serif">who has been really helpful to</span><span style="white-space:nowrap;font-family:arial,sans-serif"> me in getting acquainted</span><span style="white-space:nowrap;font-family:arial,sans-serif"> </span><span style="font-family:arial,sans-serif;white-space:nowrap">with the ipy web notebook.</span></div>





<div><div><font face="arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap">I hadn't seen any of the IPEPS, which are quite interesting, </span></font></div>





<div><font face="arial, sans-serif"><span style="white-space:nowrap">regarding this </span></font>one in particular: <div><br><div><a href="https://github.com/ipython/ipython/wiki/IPEP-15%3A-Autosaving-the-IPython-Notebook" target="_blank">https://github.com/ipython/ipython/wiki/IPEP-15%3A-Autosaving-the-IPython-Notebook</a><br>





</div><div><br></div><div>I wondered if <span style="background-color:transparent;font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;color:rgb(51,51,51);line-height:19px">"%autosave 0" would turn it off?</span></div>



</div></div></div></div></blockquote><div><br></div><div>Yes, it does. If you try it, you will see a message confirming this fact.</div><div>But the effect doesn't persist beyond the current notebook session.</div><div>


 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>

<div>since i mainly use the notebooks as a scratch pad,<br></div><div>and am MUCH more happy to explicitly choose a </div><div>save point by clicking the save button (or Ctrl+S). </div><div><br></div><div>surely such a thing as autosave should be opt-in opt-out, </div>





<div>but I didn't quite catch how to do that in the IPEP or on...</div></div></div></div></div></blockquote><div><br></div><div>It may become opt-out once we have a system for propagating user preferences to the client side.</div>


<div>But we haven't done this yet.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div><div><br></div><div><a href="https://github.com/ipython/ipython/commit/b69eb67e69fd0ca9ec7840181a1baf50ab26a0ad" target="_blank">https://github.com/ipython/ipython/commit/b69eb67e69fd0ca9ec7840181a1baf50ab26a0ad</a><br>





</div><div><a href="https://github.com/ipython/ipython/pull/3158" target="_blank">https://github.com/ipython/ipython/pull/3158</a><br></div><div><a href="https://github.com/ipython/ipython/pull/3158/files" target="_blank">https://github.com/ipython/ipython/pull/3158/files</a><br>





</div><div><br></div><div>as these IPEPS are made where are the endUser docs</div><div>for these new features? </div><div><br></div><div>In short i would like to know where the ON/OFF </div><div>setting for autosave can be set.</div>



</div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div><div>thanks</div><div>josh</div><div><br></div><div><br></div>



<div>PS.</div><div><br></div><div>Regarding <a href="https://github.com/minrk/profile_jskernel" target="_blank">https://github.com/minrk/profile_jskernel</a><br>
</div><div><br></div><div>I finally got it working with the instructions below.</div><div><div>(when will people stop thinking of javascript as a toy,</div><div>and see it as it really is  -- the only true language, </div>




<div>it will give me a way to explore the the beautiful mess </div><div>that is the ipython web based UI, so thanks so much)</div></div></div></div></blockquote><div><br></div><div>"only true language," eh? Nice troll.</div>


<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div></div><div>I mainly use git as a download button, and I got into trouble</div>
<div>when you said "<span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:15px;line-height:25px">just clone this repo into your IPython directory</span>"</div>
<div>the word "just" is kind of an involved process for the rest of us, </div><div>and the less i know about git the better, so by way of an old </div><div>fashioned pull request ~ <span style="font-size:13px;font-family:arial,sans-serif">adding something like the following </span></div>




<div><span style="font-size:13px;font-family:arial,sans-serif">to the readme there, </span><span style="font-size:13px;font-family:arial,sans-serif">would be good: </span></div></div></div></blockquote><div><br></div><div>



By "just clone this into your IPython dir", I mean the following two steps are all you need to do:</div><div><br></div><div>cd `ipython locate` # usually ~/.ipython, this is called the "IPython directory"</div>


<div>git clone minrk/profile_jskernel</div>
<div><br></div><div>and you are done. If you don't have the hub wrapper for git, then the git url is slightly more verbose:</div><div><br></div><div>git clone <a href="https://github.com/minrk/profile_jskernel" target="_blank">https://github.com/minrk/profile_jskernel</a></div>



<div><br></div><div>After this, you can switch to the javascript kernel by starting IPython with:</div><div><br></div><div>ipython notebook --profile jskernel</div><div><br></div><div>The directions below edit the actual IPython source, which is what this profile is meant to avoid.</div>


<div><br></div><div>-MinRK</div>
<div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><span style="font-size:13px;font-family:arial,sans-serif"><br>
</span></div><div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif">To try out the js kernel for a windows noobs</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>




</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">1. Right click</span></div><div><a href="https://github.com/minrk/profile_jskernel/blob/master/static/js/kernel.js" style="font-size:13px;font-family:arial,sans-serif" target="_blank">https://github.com/minrk/profile_jskernel/blob/master/static/js/kernel.js</a><span style="font-size:13px;font-family:arial,sans-serif">  </span></div>





<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">2. And choose SaveAs  </span><br></div><div><span style="font-size:13px;font-family:arial,sans-serif">C:\A\Y\IPY\IPython\html\</span><span style="font-size:13px;font-family:arial,sans-serif">static\services\kernels\js\</span><span style="font-size:13px;font-family:arial,sans-serif">kernel.js</span><br>





</div><div><span style="font-family:arial,sans-serif;font-size:13px">(or your version thereof)</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">!! first keeping a copy of "kernelORIGINAL.js" to revert back to!!</span><br>





</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">3. </span><span style="font-family:arial,sans-serif;font-size:13px">Right click</span></div>





<div><a href="https://raw.github.com/minrk/profile_jskernel/master/Javascript.ipynb" target="_blank">https://raw.github.com/minrk/profile_jskernel/master/Javascript.ipynb</a></div><div><span style="font-family:arial,sans-serif;font-size:13px">and save that in  </span></div>





<div>C:\A\Y\IPY\examples\notebooks\Javascript.ipynb<br></div><div><br></div><div>Note: IE will save it as "Javascript.ipynb.txt" in UTF8 with a BOM</div><div>and iypython requires it to be "UTF8 without BOM", so fix that up</div>




<div>by Saving it with chrome, or use the notepad++ [Encoding] menu</div><div>to re-save and fix that up. Trim off the extra .txt extension in the file</div><div>system if needs be.</div><div><br></div><div>**also clearing the browser cache at this point may be useful to</div>




<div><br></div><div>4. Press[Win]+[R] <font color="#444444" face="arial, sans-serif"><span style="line-height:16px">type cmd to open a command console</span></font></div><div>type in </div><div>cd C:\A\Y\IPY\examples\notebooks</div>




<div>press [Enter]. and then type<br>C:\A\Y\Canopy\Env\User\python.exe -m IPython notebook</div><div><br></div><div><div>your paths will vary, but something like that will get you going, </div><div>on windows at least. When the web browser notebook pops up</div>




<div>at <a href="http://127.0.0.1:8888/" target="_blank">http://127.0.0.1:8888/</a> </div><div>refresh it a couple of time and try it out by typing "Math.random()" or</div><div>some other javascript to test that it works.</div>




<br>To install a version of python which can run ipython on windows get </div><h4 style="margin:12px 0px 12px 20px;font-family:'Source Sans Pro','Droid Sans',sans-serif;font-weight:300;line-height:24px;color:rgb(51,51,51);font-size:18px;padding-right:5px;padding-left:5px">




Canopy Express</h4><div style="padding-right:5px;margin:12px 0px 12px 25px;color:rgb(102,102,102);font-family:'Droid Sans',Helvetica,Arial,sans-serif;font-size:13px;line-height:24px"><p style="margin:0px 0px 12px;text-align:justify">




Canopy Express comes with more than 30 pre-configured Python packages,</p></div><div>from <a href="https://www.enthought.com/store/" target="_blank">https://www.enthought.com/store/</a></div><div><br></div><div>And choose to install to C:\A\Y\ (or similar, space free paths are best)<br>




</div><div>that will make the C:\A\Y\Canopy\ folder automatically</div><div>>>take note of the install options as some of them are quite useful<<</div><div>for me it is 2.7.3 | 64-bit | but is needed since ipython uses a lot of the </div>




<div>extra packages it that Canopy comes with :-)</div><div><br></div><div>To get ipython working on windows download <a href="https://github.com/ipython/ipython/archive/master.zip" target="_blank">https://github.com/ipython/ipython/archive/master.zip</a></div>




</div><div>and unzip it to C:\A\Y\IPY (so we have a folder structure like C:\A\Y\IPY\examples\notebooks)</div><div>you may also need to run</div><div>"C:\A\Y\Canopy\Env\User\python.exe" -i 
"C:\A\Y\Canopy\Env\User\Scripts\easy_install-script.py" pip<br></div><div>to install pip and then some thing like</div><div><br></div><div>cmd.exe </div><div>cd C:\A\Y\IPY\</div><div><span>"C:\A\Y\Canopy\Env\User\python.exe" -i 
"C:\A\Y\Canopy\Env\User\Scripts\pip-script.py" install -e ".[notebook]"</span><br></div><div style="color:rgb(150,154,148)"><span style="color:rgb(34,34,34)">to do whatever the </span><span style="color:rgb(34,34,34)">IPY installer requires to get set up</span><span style="color:rgb(34,34,34)"> </span><br>




</div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div><br></div></div>