File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1092,10 +1092,12 @@ Message type: ``clear_output``::
1092
1092
Messages on the stdin ROUTER/DEALER sockets
1093
1093
===========================================
1094
1094
1095
- This is a socket where the request/reply pattern goes in the opposite direction:
1096
- from the kernel to a *single * frontend. Its purpose is to allow code to prompt
1097
- the user for a line of input, which would normally be read from stdin in a
1098
- terminal.
1095
+ With the stdin ROUTER/DEALER socket, the request/reply pattern goes in the
1096
+ opposite direction of most kernel communication.
1097
+ With the stdin socket, the kernel makes the request, and the single frontend
1098
+ provides the response.
1099
+ This pattern allows code to prompt the user for a line of input,
1100
+ which would normally be read from stdin in a terminal.
1099
1101
1100
1102
Many programming languages provide a function which displays a prompt, blocks
1101
1103
until the user presses return, and returns the text they typed before pressing
@@ -1143,7 +1145,7 @@ the user types.
1143
1145
1144
1146
.. note ::
1145
1147
1146
- This model of requesting user input is quite different from how stdin works
1148
+ This pattern of requesting user input is quite different from how stdin works
1147
1149
at a lower level. The Jupyter protocol does not support everything code
1148
1150
running in a terminal can do with stdin, but we believe that this enables the
1149
1151
most common use cases.
You can’t perform that action at this time.
0 commit comments