-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add out method #285
Add out method #285
Conversation
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.
This is a WIP! I'd appreciate your input @JohanMabille :)
@marimeireles could you provide more context concerning this PR? |
I think this is more how you imagined it @JohanMabille? |
src/xmessage_builder.cpp
Outdated
{ | ||
nl::json kernel_res; | ||
kernel_res["status"] = "ok"; | ||
kernel_res = data; |
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 do you have an extra data
argument to this function? Shouldn't this be enough?
nl::json create_successful_reply(const nl::json& payload,
const nl::json& user_expressions)
src/xmessage_builder.cpp
Outdated
{ | ||
nl::json kernel_res; | ||
kernel_res["status"] = "ok"; | ||
kernel_res["code"] = code; |
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.
I believe code
is not part of the specs for the complete_reply
https://jupyter-client.readthedocs.io/en/latest/messaging.html#completion
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.
Looks good!
{"start", 0} | ||
}); | ||
|
||
return xeus::create_successful_reply(payload); |
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.
You may want to move the payload to avoid costly copy.
I haven't finished it yet! |
849f7a2
to
3e77866
Compare
0c2ed79
to
ae393d2
Compare
49bfc22
to
6c69c7e
Compare
so, this is the output I get:
After running the following code:
is just stuck in the first test, @JohanMabille |
It was supposed to print the next thing on the next test: |
…ethods everywhere
6c69c7e
to
e584ac3
Compare
Added functions to create msgs
No description provided.