---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
Input In [4], in <cell line: 2>()
1 while True:
----> 2 command = input('please input command(topic, node, service, subscriber quit): ')
3 if command == 'topic':
4 print('topic')
File /usr/local/lib/python3.8/dist-packages/ipykernel/kernelbase.py:1165, in Kernel.raw_input(self, prompt)
1161 if not self._allow_stdin:
1162 raise StdinNotImplementedError(
1163 "raw_input was called, but this frontend does not support input requests."
1164 )
-> 1165 return self._input_request(
1166 str(prompt),
1167 self._parent_ident["shell"],
1168 self.get_parent("shell"),
1169 password=False,
1170 )
File /usr/local/lib/python3.8/dist-packages/ipykernel/kernelbase.py:1207, in Kernel._input_request(self, prompt, ident, parent, password)
1204 break
1205 except KeyboardInterrupt:
1206 # re-raise KeyboardInterrupt, to truncate traceback
-> 1207 raise KeyboardInterrupt("Interrupted by user") from None
1208 except Exception:
1209 self.log.warning("Invalid Message:", exc_info=True)
KeyboardInterrupt: Interrupted by user