Ipython Notebook: how to run multiple cells?

后端 未结 3 1351
借酒劲吻你
借酒劲吻你 2021-01-11 11:04

My notebook gets a bit of long, I divide it into several parts. Sometimes, I just want to run a certain part of it, i.e consecutive cells

For example, <

3条回答
  •  耶瑟儿~
    2021-01-11 11:31

    I found a useful extension that performs a similar function: init_cell. First, you will need to install jupyter nbextensions configurator as described here.

    Then search for "Initialization cells" from inside the search bar of the Jupyter nbextension manager.

    A check box at the top of every cell will appear. You can select which cells to be marked as initialization cells.

    To run all the initialization cells at once, click the button with calculator symbol on the tool bar:

    Along with cqcn1991's solution, you can gain a reasonable control over your notebook.

提交回复
热议问题