Safe mode
NotebooksSafe mode is a code-only view of your notebook that you use to fix issues that prevent the notebook from running properly. An example of such an issue would be an infinite loop. If you have a while
loop without a yield
statement, it’s possible to construct the loop so that it infinitely repeats, never allowing anything else to happen. Safe mode is designed to let you fix that.
When you enter safe mode, a banner appears at the top of your notebook, making it clear that you are in safe mode:
Also, all of the cells in your notebook display their code, rather than the results of their code. No cells are executed, allowing you to edit the code and address any problem.
Here is a notebook in safe mode. Notice how all cells are showing code:
Here is the same notebook before safe mode was enabled:
Enabling safe mode
To enable safe mode, choose View > Enable safe mode:
Alternatively, you can append /safe
to the URL for your notebook to enter and work in safe mode.