Skip to content
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

use is_complete request to indicate complete input #20

Merged
merged 2 commits into from
Jul 2, 2015

Conversation

minrk
Copy link
Member

@minrk minrk commented Jun 30, 2015

instead of IPython InputSplitter.

Adds a BlockingKernelClient to perform the is_complete_request, since the current use of _is_complete can't easily be made async.

based on #19

kc = self.kernel_client
if kc is None:
return
from jupyter_client import BlockingKernelClient
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a regular import rather than a local one? jupyter_client is a plain dependency.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regular, this was just lazy hacking as I was figuring it out.

@takluyver
Copy link
Member

Thanks for getting round to this.

@minrk
Copy link
Member Author

minrk commented Jun 30, 2015

Thanks for reviewing - I had this mostly put together when we last talked about it a few weeks ago, but forgot about it. Thanks for reviewing. I think I did things a few different ways, and there are likely a couple of redundant bits in here, still. I'll give it another pass tomorrow.

@minrk minrk force-pushed the is_complete_2 branch 2 times, most recently from 1623e61 to 6851c89 Compare July 1, 2015 20:25
@minrk
Copy link
Member Author

minrk commented Jul 1, 2015

Okay, review should be addressed. Some redundant bits from earlier attempts have been removed. indent from is_complete_reply is used now, instead of hardcoded value.

@@ -57,6 +57,7 @@ def gui_excepthook(exctype, value, tb):
)

from jupyter_core.application import JupyterApp
from jupyter_client import BlockingKernelClient
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This import is unnecessary

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, removed.

takluyver added a commit that referenced this pull request Jul 2, 2015
use is_complete request to indicate complete input
@takluyver takluyver merged commit 75896af into jupyter:master Jul 2, 2015
@minrk minrk added this to the 4.0 milestone Oct 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants