[IPython-dev] IPEP15 ~ would "%autosave 0" would turn it off, or where is the global setting for that
MinRK
benjaminrk at gmail.com
Sat Oct 19 01:32:49 EDT 2013
On Fri, Oct 18, 2013 at 10:02 PM, Joshua Donnelly
<joshuadonnelly at gmail.com>wrote:
> Hi,
>
> So i have sent a few emails to ipython-dev at scipy.org and one of the other
> devs,
> who has been really helpful to me in getting acquainted with the ipy web
> notebook.
>
>
> I hadn't seen any of the IPEPS, which are quite interesting,
> regarding this one in particular:
>
>
> https://github.com/ipython/ipython/wiki/IPEP-15%3A-Autosaving-the-IPython-Notebook
>
> I wondered if "%autosave 0" would turn it off?
>
Yes, it does. If you try it, you will see a message confirming this fact.
But the effect doesn't persist beyond the current notebook session.
> since i mainly use the notebooks as a scratch pad,
> and am MUCH more happy to explicitly choose a
> save point by clicking the save button (or Ctrl+S).
>
> surely such a thing as autosave should be opt-in opt-out,
> but I didn't quite catch how to do that in the IPEP or on...
>
It may become opt-out once we have a system for propagating user
preferences to the client side.
But we haven't done this yet.
>
>
> https://github.com/ipython/ipython/commit/b69eb67e69fd0ca9ec7840181a1baf50ab26a0ad
> https://github.com/ipython/ipython/pull/3158
> https://github.com/ipython/ipython/pull/3158/files
>
> as these IPEPS are made where are the endUser docs
> for these new features?
>
> In short i would like to know where the ON/OFF
> setting for autosave can be set.
>
> thanks
> josh
>
>
> PS.
>
> Regarding https://github.com/minrk/profile_jskernel
>
> I finally got it working with the instructions below.
> (when will people stop thinking of javascript as a toy,
> and see it as it really is -- the only true language,
> it will give me a way to explore the the beautiful mess
> that is the ipython web based UI, so thanks so much)
>
"only true language," eh? Nice troll.
> I mainly use git as a download button, and I got into trouble
> when you said "just clone this repo into your IPython directory"
> the word "just" is kind of an involved process for the rest of us,
> and the less i know about git the better, so by way of an old
> fashioned pull request ~ adding something like the following
> to the readme there, would be good:
>
By "just clone this into your IPython dir", I mean the following two steps
are all you need to do:
cd `ipython locate` # usually ~/.ipython, this is called the "IPython
directory"
git clone minrk/profile_jskernel
and you are done. If you don't have the hub wrapper for git, then the git
url is slightly more verbose:
git clone https://github.com/minrk/profile_jskernel
After this, you can switch to the javascript kernel by starting IPython
with:
ipython notebook --profile jskernel
The directions below edit the actual IPython source, which is what this
profile is meant to avoid.
-MinRK
>
>
> To try out the js kernel for a windows noobs
>
> 1. Right click
> https://github.com/minrk/profile_jskernel/blob/master/static/js/kernel.js
>
>
> 2. And choose SaveAs
> C:\A\Y\IPY\IPython\html\static\services\kernels\js\kernel.js
> (or your version thereof)
> !! first keeping a copy of "kernelORIGINAL.js" to revert back to!!
>
> 3. Right click
> https://raw.github.com/minrk/profile_jskernel/master/Javascript.ipynb
> and save that in
> C:\A\Y\IPY\examples\notebooks\Javascript.ipynb
>
> Note: IE will save it as "Javascript.ipynb.txt" in UTF8 with a BOM
> and iypython requires it to be "UTF8 without BOM", so fix that up
> by Saving it with chrome, or use the notepad++ [Encoding] menu
> to re-save and fix that up. Trim off the extra .txt extension in the file
> system if needs be.
>
> **also clearing the browser cache at this point may be useful to
>
> 4. Press[Win]+[R] type cmd to open a command console
> type in
> cd C:\A\Y\IPY\examples\notebooks
> press [Enter]. and then type
> C:\A\Y\Canopy\Env\User\python.exe -m IPython notebook
>
> your paths will vary, but something like that will get you going,
> on windows at least. When the web browser notebook pops up
> at http://127.0.0.1:8888/
> refresh it a couple of time and try it out by typing "Math.random()" or
> some other javascript to test that it works.
>
> To install a version of python which can run ipython on windows get
> Canopy Express
>
> Canopy Express comes with more than 30 pre-configured Python packages,
> from https://www.enthought.com/store/
>
> And choose to install to C:\A\Y\ (or similar, space free paths are best)
> that will make the C:\A\Y\Canopy\ folder automatically
> >>take note of the install options as some of them are quite useful<<
> for me it is 2.7.3 | 64-bit | but is needed since ipython uses a lot of
> the
> extra packages it that Canopy comes with :-)
>
> To get ipython working on windows download
> https://github.com/ipython/ipython/archive/master.zip
> and unzip it to C:\A\Y\IPY (so we have a folder structure like
> C:\A\Y\IPY\examples\notebooks)
> you may also need to run
> "C:\A\Y\Canopy\Env\User\python.exe" -i
> "C:\A\Y\Canopy\Env\User\Scripts\easy_install-script.py" pip
> to install pip and then some thing like
>
> cmd.exe
> cd C:\A\Y\IPY\
> "C:\A\Y\Canopy\Env\User\python.exe" -i
> "C:\A\Y\Canopy\Env\User\Scripts\pip-script.py" install -e ".[notebook]"
> to do whatever the IPY installer requires to get set up
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20131018/c82d32a3/attachment.html>
More information about the IPython-dev
mailing list