jupyter / jupyter_console

Jupyter Terminal Console
http://jupyter-console.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
247 stars 146 forks source link

What information is displayed in default prompt? #299

Open gzagatti opened 1 month ago

gzagatti commented 1 month ago

My default prompt reads like:

[utM] In [1]:

Unfortunately I could not find in the documentation what the information displayed in the first set of square brackets mean [utM]. Can someone clarify what it means? Is it some hash for the kernel I am connected to?

gzagatti commented 1 month ago

Ok, I've figure out that [utM] comes when using the option c.ZMQTerminalInteractiveShell.editing_mode = 'vi'.

However, as opposed to the IPython in Jupyter Console the following option is not satisfied (or equivalently setting it as ZMQTerminalInteractiveShell):

c.TerminalInteractiveShell.prompt_includes_vi_mode = False

Therefore, [utM] seems to stand for nothing at the moment. In Python, the prompt changes from [nav] to [ins].