<p>Sorry for the brievty, answer from my phone.</p>
<p>If you use 0.14 dev. you can overwrite ipython file without touching the server. <br>
Just add them into .ipython/profile/profile_xxx/</p>
<p>So just copy codecell.js,notebook.js into .ipython/profile/profile_xxx/static/js/ and mess with it as much as you want. It won't impact other users.<br>
-- <br>
Matthias</p>
<div class="gmail_quote">Le 2 aoűt 2012 08:35, "Zoltán Vörös" <<a href="mailto:zvoros@gmail.com">zvoros@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can't customize this, it is hard-wired in<br>
/IPython/frontend/html/notebook/static/js/notebook.js, but if you want<br>
to change the keybinding, you might even have to tamper with<br>
codecell.js, because you have to catch enter in codemirror, I believe.<br>
<br>
As for Maple, it was stated many a time that the ipython frontend was<br>
inspired by Mathematica, and I believe, in this case it did really make<br>
sense: working with larger blocks of code, you would want to enter a<br>
newline more frequently than execute the cell.<br>
Cheers,<br>
Zoltán<br>
<br>
On 08/02/2012 03:51 AM, Michael McNeil Forbes wrote:<br>
> How would I go about swapping the behaviour of "enter" and "shift-<br>
> enter" in ipython notebook? I find that my fingers are conditioned to<br>
> expecting "enter" to execute. (In Maple, for example, the behaviours<br>
> are exactly opposite: shift-enter inserts lines and enter executes.)<br>
><br>
> Can I customize this with a local style-sheet? (I imagine it could be<br>
> done on the server, but it is probably best to keep the server<br>
> configuration standard so that colleagues can use the standard<br>
> documentation etc.)<br>
><br>
> Thanks<br>
> Michael.<br>
> _______________________________________________<br>
> IPython-User mailing list<br>
> <a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
</blockquote></div>