Is IPython Notebook "initialization cells"?

When I open the saved IPython laptop, I need to evaluate all cells with import, function definitions, etc., to continue working on the session. It’s convenient to press for this Cell > Run All. But what if I do not want to overestimate all the calculations? Do I need to select cells for manual evaluation each time?

For this task, Mathematica has the concept of “initialization cells”. You can mark some cells in the notebook as an initialization cell, and then perform “evaluate initialization cells” after opening the laptop.

Is there a similar solution for IPython Notebook?

+5
source share
2 answers

-, IPython, , , .

, dev- "run until here".

, dev-, Cell Toolbar/metadata, ~ 30 javascript, .

. / , .

+3

( → 4.1), .

, , / ,

$ git clone https://github.com/ipython-contrib/IPython-notebook-extensions.git
$ cd IPython-notebook-extensions
$ ./setup.py

,

$ cd ; jupyter-notebook < /dev/null > .jupiter.log 2>&1 &

$ xdg-open http://localhost:8888/nbextensions

" ".

, , , View/Cell Toolbar - , Initialisation Cell.

, , (, ) , ...

, , , , , , , ...

+1

All Articles