-
Notifications
You must be signed in to change notification settings - Fork 106
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
After a a println command "Ok" is printed instead of the actual string to be printed. #3
Comments
+1 |
The result of
Do other interpreters copy the output of stdout to the response? |
So for something that returns |
Hi, thanks for the reply. Other interpreters tend to capture the stdout, so I think that would be a useful feature here as well. |
I did a quick hack to check capturing stdout, and I was able to do so. But, it isn't pretty. Need to see if the evaluator can have it set directly instead of changing the global |
Ok, basically just forking the |
I have some refactoring to do, then will commit fixes for this and the repeat crash later... |
When piping stdout back, it shows up in jupyter-console, but in jupyter-notebook it does not. So therefore stdout has to be mapped back as the return value. I'll take a look to see what other kernels do in the same situation (if they pass back something with a mime type, or just as a text value, ...) |
If you want, please try my fork at https://github.com/apatrida/kotlin-jupyter and I'll do a PR from there based on feedback. |
What does not work is if you do output AND return a value, the value will win. |
@ligee please close, fixed in previous PR |
Having the row
Ok
is printed and not"Hello"
The text was updated successfully, but these errors were encountered: