{"action":"opened","issue":{"url":"https://api.github.com/repos/jupyter/notebook/issues/1622","repository_url":"https://api.github.com/repos/jupyter/notebook","labels_url":"https://api.github.com/repos/jupyter/notebook/issues/1622/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/1622/comments","events_url":"https://api.github.com/repos/jupyter/notebook/issues/1622/events","html_url":"https://github.com/jupyter/notebook/issues/1622","id":166195928,"number":1622,"title":"javascript-python communication not working when \"Run All\" cells","user":{"login":"e2raptor","id":16085308,"avatar_url":"https://avatars.githubusercontent.com/u/16085308?v=3","gravatar_id":"","url":"https://api.github.com/users/e2raptor","html_url":"https://github.com/e2raptor","followers_url":"https://api.github.com/users/e2raptor/followers","following_url":"https://api.github.com/users/e2raptor/following{/other_user}","gists_url":"https://api.github.com/users/e2raptor/gists{/gist_id}","starred_url":"https://api.github.com/users/e2raptor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e2raptor/subscriptions","organizations_url":"https://api.github.com/users/e2raptor/orgs","repos_url":"https://api.github.com/users/e2raptor/repos","events_url":"https://api.github.com/users/e2raptor/events{/privacy}","received_events_url":"https://api.github.com/users/e2raptor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-18T21:18:10Z","updated_at":"2016-07-18T21:18:10Z","closed_at":null,"body":"Hi everyone, I have a notebook with this:\r\n\r\n<img width=\"482\" alt=\"screenshot_2016_07_18_16_03_56\" src=\"https://cloud.githubusercontent.com/assets/16085308/16930334/576da7c6-4d01-11e6-9887-59295a9654ce.png\">\r\n\r\nIt turns out that it works well (the last print for num shows 43) but only when I execute this cell by cell. But if I execute it by clicking the \"Run All\" menu, or by calling in a js file the \"notebook.execute_all_cells()\" function, the num variable is never modified from the js code.  \r\n\r\nThe idea is that I have some special notebooks where I need to execute every cell when it loads, but some cells depend on a python variable filled from javascript.  I've tried to delay the last cell execution time enough so the previous cell is finished, but since the cells execution is linear, I don't thinks this solve my problem.\r\n\r\nCan someone point me a way on how to do this?"}}
{"actor":{"display_login":"e2raptor"}}