-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance handling of input from other clients #196
Conversation
What were the previous failures that this PR fixes? |
@@ -494,6 +494,13 @@ def sizeHint(self): | |||
Outputs are not displayed until enter is pressed. | |||
""" | |||
) | |||
|
|||
other_output_prefix = Unicode('[remote] ', config=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this value set to [remote]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the default used in the jupyter console client. I copied the feature from there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, didn't know that.
I've updated the description of this PR to be more informative. |
8f03529
to
7454da9
Compare
The
c.ConsoleWidget.include_other_output = True
switch will make QtConsole display input given to the kernel that was initiated by other clients. For example, a text editor can connect to the kernel and allow users to select pieces of code and execute them (like the F9 button in Spyder and MATLAB).This PR fixes some bugs and adds some enhancements when displaying "other_input" and "other_output".
[remote] In [n]:
prompt for other_input and an[remote] Out[n]:
prompt for other_output (like jupyter-console does)other_output_prefix
to change the[remote]
prefix above to something else (like jupyter-console has)