{"action":"created","issue":{"url":"https://api.github.com/repos/cxhernandez/ipymol/issues/2","labels_url":"https://api.github.com/repos/cxhernandez/ipymol/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/cxhernandez/ipymol/issues/2/comments","events_url":"https://api.github.com/repos/cxhernandez/ipymol/issues/2/events","html_url":"https://github.com/cxhernandez/ipymol/pull/2","id":97295266,"number":2,"title":"Aggressive refactoring and support Python 3","user":{"login":"lambdalisue","id":546312,"avatar_url":"https://avatars.githubusercontent.com/u/546312?v=3","gravatar_id":"","url":"https://api.github.com/users/lambdalisue","html_url":"https://github.com/lambdalisue","followers_url":"https://api.github.com/users/lambdalisue/followers","following_url":"https://api.github.com/users/lambdalisue/following{/other_user}","gists_url":"https://api.github.com/users/lambdalisue/gists{/gist_id}","starred_url":"https://api.github.com/users/lambdalisue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambdalisue/subscriptions","organizations_url":"https://api.github.com/users/lambdalisue/orgs","repos_url":"https://api.github.com/users/lambdalisue/repos","events_url":"https://api.github.com/users/lambdalisue/events{/privacy}","received_events_url":"https://api.github.com/users/lambdalisue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-26T07:45:44Z","updated_at":"2015-07-26T08:59:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cxhernandez/ipymol/pulls/2","html_url":"https://github.com/cxhernandez/ipymol/pull/2","diff_url":"https://github.com/cxhernandez/ipymol/pull/2.diff","patch_url":"https://github.com/cxhernandez/ipymol/pull/2.patch"},"body":"Thank you for this great plugin. It is simple and clear, I wonder why I didn't create this kind of plugin before.\r\n\r\nAnyway, I would like to use this plugin in python3 so I did aggressive refactoring and support python3.\r\nI sent PR but I change a lot of things which don't need to be changed as well, so this PR is like a mention just in case if you like that changes.\r\n\r\nBest."},"comment":{"url":"https://api.github.com/repos/cxhernandez/ipymol/issues/comments/124959320","html_url":"https://github.com/cxhernandez/ipymol/pull/2#issuecomment-124959320","issue_url":"https://api.github.com/repos/cxhernandez/ipymol/issues/2","id":124959320,"user":{"login":"lambdalisue","id":546312,"avatar_url":"https://avatars.githubusercontent.com/u/546312?v=3","gravatar_id":"","url":"https://api.github.com/users/lambdalisue","html_url":"https://github.com/lambdalisue","followers_url":"https://api.github.com/users/lambdalisue/followers","following_url":"https://api.github.com/users/lambdalisue/following{/other_user}","gists_url":"https://api.github.com/users/lambdalisue/gists{/gist_id}","starred_url":"https://api.github.com/users/lambdalisue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambdalisue/subscriptions","organizations_url":"https://api.github.com/users/lambdalisue/orgs","repos_url":"https://api.github.com/users/lambdalisue/repos","events_url":"https://api.github.com/users/lambdalisue/events{/privacy}","received_events_url":"https://api.github.com/users/lambdalisue/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T08:59:28Z","updated_at":"2015-07-26T08:59:28Z","body":"Ok I'm back. Sorry for the short messages, I was in iPhone.\r\n\r\nFirst of all, `use_2to3` in `setup.py` will execute `2to3` command which was introduced when Python 3 was introduced. The command will automatically translate most of incompatible features in Python 2 (such as `print 'xxx'` or renamed modules) into Python 3 style. Thus you don't have to make most of code compatible to Python 3 (I said 'most' because several features are incompatible even with `2to3`, but in this case, everything seems compatible with `2to3`).\r\n\r\nSo what you need is install IPyMOL via `setup.py` or `pip` or `easy_install` like\r\n\r\n```\r\n$ python3 setup.py install\r\n$ python3 setup.py develop\r\n$ pip3 install .\r\n```\r\n\r\nThen all actual files installed in python package will automatically be translated to Python 3 style.\r\n\r\nSee the top right said 'Python 3'.\r\n\r\n![_024](https://cloud.githubusercontent.com/assets/546312/8893165/05525ea6-33c0-11e5-84d1-2259204ded6a.png)\r\n"}}