Is there a difference between setting a Cell or a Group of cells to be an Initialization Cell versus an Initialization Group versus doing both?


1 Answer 1


InitializationGroup vs group of InitializationCells

If you create a new cell in an InitializationGroup it will automatically become an InitializationCell.

For the group of InitializationCells you will get a default one, which you can turn into another InitializationCell or not.

A set of InitializationCells vs one InitializationCell.

I can't find any difference in terms of initialization behavior. I'd say it's a matter of taste, for more than one cell you can use some styles to comment/group them for readability.

There are also some subtle differences when it comes to aborting (stop notebook evaluation when Assert fails etc. But nothing strictly related to initialization.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.