{"action":"created","issue":{"url":"https://api.github.com/repos/kylebarron/stata_kernel/issues/48","repository_url":"https://api.github.com/repos/kylebarron/stata_kernel","labels_url":"https://api.github.com/repos/kylebarron/stata_kernel/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/kylebarron/stata_kernel/issues/48/comments","events_url":"https://api.github.com/repos/kylebarron/stata_kernel/issues/48/events","html_url":"https://github.com/kylebarron/stata_kernel/issues/48","id":349352330,"node_id":"MDU6SXNzdWUzNDkzNTIzMzA=","number":48,"title":"Various ways the kernel is tripped because of changing prompts","user":{"login":"mcaceresb","id":4219197,"node_id":"MDQ6VXNlcjQyMTkxOTc=","avatar_url":"https://avatars0.githubusercontent.com/u/4219197?v=4","gravatar_id":"","url":"https://api.github.com/users/mcaceresb","html_url":"https://github.com/mcaceresb","followers_url":"https://api.github.com/users/mcaceresb/followers","following_url":"https://api.github.com/users/mcaceresb/following{/other_user}","gists_url":"https://api.github.com/users/mcaceresb/gists{/gist_id}","starred_url":"https://api.github.com/users/mcaceresb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcaceresb/subscriptions","organizations_url":"https://api.github.com/users/mcaceresb/orgs","repos_url":"https://api.github.com/users/mcaceresb/repos","events_url":"https://api.github.com/users/mcaceresb/events{/privacy}","received_events_url":"https://api.github.com/users/mcaceresb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-08-10T02:16:13Z","updated_at":"2018-08-13T16:10:19Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"#### Code Sample\r\n\r\n```stata\r\ndisp \"Sup?\", _request(what_is_up)\r\n\r\npause on\r\nprogram foo\r\n    pause\r\n    disp \"bar\"\r\nend\r\nfoo\r\n\r\n`local'\r\n\r\n$global\r\n```\r\n#### Problem description\r\n\r\nEach of the 4 examples above messes up the kernel because the prompt changes.\r\n\r\n#### Package Version\r\n\r\n```\r\nName: stata-kernel\r\nVersion: 1.1.0\r\nSummary: A Jupyter kernel for Stata. Works with Windows, macOS, and Linux. Preserves program state.\r\nHome-page: https://github.com/kylebarron/stata_kernel\r\nAuthor: Kyle Barron\r\nAuthor-email: barronk@mit.edu\r\nLicense: GPLv3\r\nLocation: /usr/lib/python3.6/site-packages\r\nRequires: jupyter-client, IPython, ipykernel, python-dateutil, pexpect\r\nRequired-by: \r\n```"},"comment":{"url":"https://api.github.com/repos/kylebarron/stata_kernel/issues/comments/412573248","html_url":"https://github.com/kylebarron/stata_kernel/issues/48#issuecomment-412573248","issue_url":"https://api.github.com/repos/kylebarron/stata_kernel/issues/48","id":412573248,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjU3MzI0OA==","user":{"login":"mcaceresb","id":4219197,"node_id":"MDQ6VXNlcjQyMTkxOTc=","avatar_url":"https://avatars0.githubusercontent.com/u/4219197?v=4","gravatar_id":"","url":"https://api.github.com/users/mcaceresb","html_url":"https://github.com/mcaceresb","followers_url":"https://api.github.com/users/mcaceresb/followers","following_url":"https://api.github.com/users/mcaceresb/following{/other_user}","gists_url":"https://api.github.com/users/mcaceresb/gists{/gist_id}","starred_url":"https://api.github.com/users/mcaceresb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcaceresb/subscriptions","organizations_url":"https://api.github.com/users/mcaceresb/orgs","repos_url":"https://api.github.com/users/mcaceresb/repos","events_url":"https://api.github.com/users/mcaceresb/events{/privacy}","received_events_url":"https://api.github.com/users/mcaceresb/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T16:10:19Z","updated_at":"2018-08-13T16:10:19Z","author_association":"CONTRIBUTOR","body":"It does with the example you were using.\r\n\r\nInstead of displaying text, I reckon it's faster to just hack it by declaring an object. Though if it's just going to be at the end of whatever is executed such minor speed bumps shouldn't matter.\r\n\r\nYou _could_ create a do file and pass the output via `do tempfile.do`; you'd have to add a hook at the end of the file to loop through all the locals and `c_local` them up to the current environment. Executing via `do` will stop execution of the file by default."}}
{"actor":{"display_login":"mcaceresb"}}