2 suggestions for educative people:
1- Auto save user input to the code snippets when user browses a different page (Next, Previous buttons on the bottom of the page, or chapters on the left, or any other button including browser back and forward buttons).
This will help negating user frustration in case of a mis-click.
2- Add a shortcut for Running the code snippet. (I discovered that Cmd + S saves the snipped code but could not discover a shortcut for running the code).
Thanks!