![]() ![]() In order for a notebook to reflect reality, it should contain valid code that can be executed in order to produce consistent results. This causes some obvious problems, first for the current session of the notebook, and second for any future invocations of the notebook. Variables, functions, classes, and any other code will continue to exist and possibly affect code in other cells. Once a cell is deleted or modified and re-executed, the hidden state from that cell remains in the current session. It can be common to modify a call, execute it multiple times, and even delete it. This often happens during development and exploration. This hidden state can show up in a few ways, but one common way is by executing notebook cells out of order. A very common problem raised is the idea of hidden state in a notebook. Many developers think that using notebooks can promote some bad habits, cause confusion, and result in ugly code. Bring up the subject of Jupyter notebooks around Python developers and you’ll likely get a variety of opinions about them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |