diff --git a/docs/source/development/messaging.rst b/docs/source/development/messaging.rst index 595c1cd..f08b444 100644 --- a/docs/source/development/messaging.rst +++ b/docs/source/development/messaging.rst @@ -395,6 +395,8 @@ the outcome. See :ref:`below ` for the possible return codes and associated data. +.. _execution_counter: + Execution counter (old prompt number) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -403,7 +405,7 @@ requests that are made with ``store_history=True``. This counter is used to pop the ``In[n]``, ``Out[n]`` and ``_n`` variables, so clients will likely want to display it in some form to the user, which will typically (but not necessarily) be done in the prompts. The value of this counter will be returned as the -``execution_count`` field of all ``execute_reply`` messages. +``execution_count`` field of all ``execute_reply`` and ``pyin`` messages. .. _execution_results: @@ -906,7 +908,10 @@ to update a single namespace with subsequent results. Python inputs ------------- -These messages are the re-broadcast of the ``execute_request``. +To let all frontends know what code is being executed at any given time, these +messages contain a re-broadcast of the ``code`` portion of an +:ref:`execute_request `, along with the :ref:`execution_count +`. Message type: ``pyin``::