{"action":"created","issue":{"url":"https://api.github.com/repos/takluyver/IRkernel/issues/55","labels_url":"https://api.github.com/repos/takluyver/IRkernel/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/takluyver/IRkernel/issues/55/comments","events_url":"https://api.github.com/repos/takluyver/IRkernel/issues/55/events","html_url":"https://github.com/takluyver/IRkernel/issues/55","id":56769598,"number":55,"title":"Output doesn't print immediately","user":{"login":"cosinequanon","id":1226424,"avatar_url":"https://avatars.githubusercontent.com/u/1226424?v=3","gravatar_id":"","url":"https://api.github.com/users/cosinequanon","html_url":"https://github.com/cosinequanon","followers_url":"https://api.github.com/users/cosinequanon/followers","following_url":"https://api.github.com/users/cosinequanon/following{/other_user}","gists_url":"https://api.github.com/users/cosinequanon/gists{/gist_id}","starred_url":"https://api.github.com/users/cosinequanon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosinequanon/subscriptions","organizations_url":"https://api.github.com/users/cosinequanon/orgs","repos_url":"https://api.github.com/users/cosinequanon/repos","events_url":"https://api.github.com/users/cosinequanon/events{/privacy}","received_events_url":"https://api.github.com/users/cosinequanon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-06T04:41:10Z","updated_at":"2015-02-11T06:06:25Z","closed_at":null,"body":"I'm not sure what the root of the problem is but here is the minimal example I have:\r\n\r\n    for (i in 1:5) {\r\n        cat('=')\r\n        Sys.sleep(.2)\r\n    }\r\n\r\nthe above waits 1 second and then prints 5 equals signs. This is apposed to the following code:\r\n\r\n    cat('=')\r\n    Sys.sleep(.2)\r\n    cat('=')\r\n    Sys.sleep(.2)\r\n    cat('=')\r\n    Sys.sleep(.2)\r\n    cat('=')\r\n    Sys.sleep(.2)\r\n    cat('=')\r\n    Sys.sleep(.2)\r\n\r\nthat prints an equal sign every .2 seconds which is what I would expect from both examples. I played around with julia and python and they do what I expect in for loops.\r\n\r\nFWIW I am running the ipython from master and R is version 3.1.2."},"comment":{"url":"https://api.github.com/repos/takluyver/IRkernel/issues/comments/73837988","html_url":"https://github.com/takluyver/IRkernel/issues/55#issuecomment-73837988","issue_url":"https://api.github.com/repos/takluyver/IRkernel/issues/55","id":73837988,"user":{"login":"takluyver","id":327925,"avatar_url":"https://avatars.githubusercontent.com/u/327925?v=3","gravatar_id":"","url":"https://api.github.com/users/takluyver","html_url":"https://github.com/takluyver","followers_url":"https://api.github.com/users/takluyver/followers","following_url":"https://api.github.com/users/takluyver/following{/other_user}","gists_url":"https://api.github.com/users/takluyver/gists{/gist_id}","starred_url":"https://api.github.com/users/takluyver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takluyver/subscriptions","organizations_url":"https://api.github.com/users/takluyver/orgs","repos_url":"https://api.github.com/users/takluyver/repos","events_url":"https://api.github.com/users/takluyver/events{/privacy}","received_events_url":"https://api.github.com/users/takluyver/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T06:06:25Z","updated_at":"2015-02-11T06:06:25Z","body":"I was originally doing a plain eval, but getting all the output capturing\nwas a pain, and evaluate takes care of that in a fairly neat way.\n\nYou could try filling an issue against evaluate for this. I can help make a\nminimal test case showing the issue. But it's possible that the developers\ndon't consider it important.\n"}}