{"action":"opened","issue":{"url":"https://api.github.com/repos/twosigma/beakerx/issues/6912","repository_url":"https://api.github.com/repos/twosigma/beakerx","labels_url":"https://api.github.com/repos/twosigma/beakerx/issues/6912/labels{/name}","comments_url":"https://api.github.com/repos/twosigma/beakerx/issues/6912/comments","events_url":"https://api.github.com/repos/twosigma/beakerx/issues/6912/events","html_url":"https://github.com/twosigma/beakerx/issues/6912","id":301149339,"number":6912,"title":"improve style in installer","user":{"login":"scottdraves","id":963093,"avatar_url":"https://avatars0.githubusercontent.com/u/963093?v=4","gravatar_id":"","url":"https://api.github.com/users/scottdraves","html_url":"https://github.com/scottdraves","followers_url":"https://api.github.com/users/scottdraves/followers","following_url":"https://api.github.com/users/scottdraves/following{/other_user}","gists_url":"https://api.github.com/users/scottdraves/gists{/gist_id}","starred_url":"https://api.github.com/users/scottdraves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottdraves/subscriptions","organizations_url":"https://api.github.com/users/scottdraves/orgs","repos_url":"https://api.github.com/users/scottdraves/repos","events_url":"https://api.github.com/users/scottdraves/events{/privacy}","received_events_url":"https://api.github.com/users/scottdraves/received_events","type":"User","site_admin":false},"labels":[{"id":68869836,"url":"https://api.github.com/repos/twosigma/beakerx/labels/Enhancement","name":"Enhancement","color":"84b6eb","default":false},{"id":106169382,"url":"https://api.github.com/repos/twosigma/beakerx/labels/Infrastructure","name":"Infrastructure","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"lmitusinski","id":33416713,"avatar_url":"https://avatars0.githubusercontent.com/u/33416713?v=4","gravatar_id":"","url":"https://api.github.com/users/lmitusinski","html_url":"https://github.com/lmitusinski","followers_url":"https://api.github.com/users/lmitusinski/followers","following_url":"https://api.github.com/users/lmitusinski/following{/other_user}","gists_url":"https://api.github.com/users/lmitusinski/gists{/gist_id}","starred_url":"https://api.github.com/users/lmitusinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmitusinski/subscriptions","organizations_url":"https://api.github.com/users/lmitusinski/orgs","repos_url":"https://api.github.com/users/lmitusinski/repos","events_url":"https://api.github.com/users/lmitusinski/events{/privacy}","received_events_url":"https://api.github.com/users/lmitusinski/received_events","type":"User","site_admin":false},"assignees":[{"login":"lmitusinski","id":33416713,"avatar_url":"https://avatars0.githubusercontent.com/u/33416713?v=4","gravatar_id":"","url":"https://api.github.com/users/lmitusinski","html_url":"https://github.com/lmitusinski","followers_url":"https://api.github.com/users/lmitusinski/followers","following_url":"https://api.github.com/users/lmitusinski/following{/other_user}","gists_url":"https://api.github.com/users/lmitusinski/gists{/gist_id}","starred_url":"https://api.github.com/users/lmitusinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmitusinski/subscriptions","organizations_url":"https://api.github.com/users/lmitusinski/orgs","repos_url":"https://api.github.com/users/lmitusinski/repos","events_url":"https://api.github.com/users/lmitusinski/events{/privacy}","received_events_url":"https://api.github.com/users/lmitusinski/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-02-28T19:20:14Z","updated_at":"2018-02-28T19:20:14Z","closed_at":null,"author_association":"MEMBER","body":"_install_magics() in beakerx/beakerx/install.py\r\n```\r\n    file = open(os.path.join(dir_path, 'ipython_config.py'), 'w+')\r\n    file.write(\"c = get_config()\\n\")\r\n    file.write(\"c.InteractiveShellApp.extensions = ['beakerx_magics.groovy_magic']\\n\")\r\n    file.close()\r\n```\r\n\r\n1) use  `with` construct to close the file: https://docs.quantifiedcode.com/python-anti-patterns/maintainability/not_using_with_to_open_files.html\r\n\r\n2) do not use `file` for a variable name as its also a builtin.\r\n"}}
{"actor":{"display_login":"scottdraves"}}