{"action":"closed","issue":{"url":"https://api.github.com/repos/ibm-et/spark-kernel/issues/173","labels_url":"https://api.github.com/repos/ibm-et/spark-kernel/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/ibm-et/spark-kernel/issues/173/comments","events_url":"https://api.github.com/repos/ibm-et/spark-kernel/issues/173/events","html_url":"https://github.com/ibm-et/spark-kernel/issues/173","id":112359142,"number":173,"title":"If code returns value with newlines, nothing is printed in the output","user":{"login":"ittayd","id":33328,"avatar_url":"https://avatars.githubusercontent.com/u/33328?v=3","gravatar_id":"","url":"https://api.github.com/users/ittayd","html_url":"https://github.com/ittayd","followers_url":"https://api.github.com/users/ittayd/followers","following_url":"https://api.github.com/users/ittayd/following{/other_user}","gists_url":"https://api.github.com/users/ittayd/gists{/gist_id}","starred_url":"https://api.github.com/users/ittayd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ittayd/subscriptions","organizations_url":"https://api.github.com/users/ittayd/orgs","repos_url":"https://api.github.com/users/ittayd/repos","events_url":"https://api.github.com/users/ittayd/events{/privacy}","received_events_url":"https://api.github.com/users/ittayd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ibm-et/spark-kernel/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"wangmiao1981","id":5033592,"avatar_url":"https://avatars.githubusercontent.com/u/5033592?v=3","gravatar_id":"","url":"https://api.github.com/users/wangmiao1981","html_url":"https://github.com/wangmiao1981","followers_url":"https://api.github.com/users/wangmiao1981/followers","following_url":"https://api.github.com/users/wangmiao1981/following{/other_user}","gists_url":"https://api.github.com/users/wangmiao1981/gists{/gist_id}","starred_url":"https://api.github.com/users/wangmiao1981/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangmiao1981/subscriptions","organizations_url":"https://api.github.com/users/wangmiao1981/orgs","repos_url":"https://api.github.com/users/wangmiao1981/repos","events_url":"https://api.github.com/users/wangmiao1981/events{/privacy}","received_events_url":"https://api.github.com/users/wangmiao1981/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ibm-et/spark-kernel/milestones/2","html_url":"https://github.com/ibm-et/spark-kernel/milestones/NOV_2015","labels_url":"https://api.github.com/repos/ibm-et/spark-kernel/milestones/2/labels","id":1319237,"number":2,"title":"NOV_2015","description":"Contains a list of issues and enhancements that are targeted for a release at the end of November.","creator":{"login":"chipsenkbeil","id":2481802,"avatar_url":"https://avatars.githubusercontent.com/u/2481802?v=3","gravatar_id":"","url":"https://api.github.com/users/chipsenkbeil","html_url":"https://github.com/chipsenkbeil","followers_url":"https://api.github.com/users/chipsenkbeil/followers","following_url":"https://api.github.com/users/chipsenkbeil/following{/other_user}","gists_url":"https://api.github.com/users/chipsenkbeil/gists{/gist_id}","starred_url":"https://api.github.com/users/chipsenkbeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chipsenkbeil/subscriptions","organizations_url":"https://api.github.com/users/chipsenkbeil/orgs","repos_url":"https://api.github.com/users/chipsenkbeil/repos","events_url":"https://api.github.com/users/chipsenkbeil/events{/privacy}","received_events_url":"https://api.github.com/users/chipsenkbeil/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":2,"state":"open","created_at":"2015-09-22T20:48:32Z","updated_at":"2015-11-19T20:09:46Z","due_on":"2015-11-30T06:00:00Z","closed_at":null},"comments":5,"created_at":"2015-10-20T12:40:10Z","updated_at":"2015-11-19T20:09:46Z","closed_at":"2015-11-19T20:09:46Z","body":"In the below example I define 'foo' to once return a string and another time to return a string with \\n. in the first time running it returns the expected result. In the second time no output is created (in jupyter-scala, the same example runs fine)\r\n\r\nIn [56]: def foo = {\r\n (1 to 2).toString\r\n}\r\nIn [57]: foo\r\nOut[57]: Range(1, 2)\r\nIn [58]: def foo = {\r\n (1 to 2).map(_ + \"\\n\").toString\r\n}\r\nIn [59]: foo\r\nIn [ ]:\r\n\r\nAnother small caveat compared to jupyter-scala. There I see a 'defined function foo' as a result of running the code making it more shell-like\r\n​\r\n"}}