How to autosave ipython laptop

Does anyone know if there is an option (or a proposed hack) for IPython laptops to automatically save before running a cell?

Many times I worked on something without saving for quite some time, then I execute a dumb command that prints so much crap on the console that my browser becomes unresponsive, which leads to the fact that I lose all my work.

Temporary autosave can also do the trick.

+4
source share
3 answers

In the development version, this function is fully implemented. Install it following the instructions of ipython github .

Instructions form a repo:

, . IPython, (, virtualenv), pip :

 $ git clone --recursive https://github.com/ipython/ipython.git
 $ cd ipython
 $ pip install -e ".[notebook]"

IPython , :

 $ ipython notebook
+3

iPython Notebook , iPython Notebook; , , %matplotlib inline ( --pylab inline $ipython notebook).

mac, iPython Notebook conda:

$conda update ipython

0

, :

%autosave 60

to automatically save your notebook every 60 seconds.

0
source

Source: https://habr.com/ru/post/1524977/


All Articles