Jupyter magic to handle notebook exceptions

前端 未结 5 676
北恋
北恋 2020-12-16 11:22

I have a few long-running experiments in my Jupyter Notebooks. Because I don\'t know when they will finish, I add an email function to the last cell of the notebook, so I au

5条回答
  •  一生所求
    2020-12-16 12:15

    Since notebook 5.1 you can use a new tag: raises-exception This will indicate that exception in the specific cell is expected and jupyter will not stop the execution.

    (In order to set a tag you have to choose from the main menu: View -> Cell Toolbar -> Tags)

提交回复
热议问题