The main difference between shell mode and notebook
mode is this: in shell mode, the output from the shell
is appended to the bottom of the buffer. In notebook
mode, the output is put right after the input.
In notebook mode, if you send a second command to the
shell before the first on is done, the first command's
output will still be right after the first command, and
when the the second command's output arrives, it will
appear right after its input.
Also, if you go to the top of the buffer and modify the
input of your first command, and send it again, then
the old output of the first command will be replaced by
the new output, when it arrives.
Finally, if you save the file, you can load it another
day and run the command 'nb-send-input-buffer' (C-c
C-b) and all of the inputs in the buffer will be resent
to the shell. Or you can just use [M-Enter] to send
the commands one at a time. In that way, notebook mode
can be used like an interactive shell script -- you get
to see the output of each command.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Could you explain the difference between notebook mode
and shell-mode? They sound very similar (other than terminology).
The main difference between shell mode and notebook
mode is this: in shell mode, the output from the shell
is appended to the bottom of the buffer. In notebook
mode, the output is put right after the input.
In notebook mode, if you send a second command to the
shell before the first on is done, the first command's
output will still be right after the first command, and
when the the second command's output arrives, it will
appear right after its input.
Also, if you go to the top of the buffer and modify the
input of your first command, and send it again, then
the old output of the first command will be replaced by
the new output, when it arrives.
Finally, if you save the file, you can load it another
day and run the command 'nb-send-input-buffer' (C-c
C-b) and all of the inputs in the buffer will be resent
to the shell. Or you can just use [M-Enter] to send
the commands one at a time. In that way, notebook mode
can be used like an interactive shell script -- you get
to see the output of each command.