{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/5947","repository_url":"https://api.github.com/repos/spyder-ide/spyder","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/5947/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/5947/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/5947/events","html_url":"https://github.com/spyder-ide/spyder/pull/5947","id":280800347,"number":5947,"title":"PR: Collect virtual environment name (also should work for conda envs)","user":{"login":"albertogomcas","id":8244088,"avatar_url":"https://avatars1.githubusercontent.com/u/8244088?v=4","gravatar_id":"","url":"https://api.github.com/users/albertogomcas","html_url":"https://github.com/albertogomcas","followers_url":"https://api.github.com/users/albertogomcas/followers","following_url":"https://api.github.com/users/albertogomcas/following{/other_user}","gists_url":"https://api.github.com/users/albertogomcas/gists{/gist_id}","starred_url":"https://api.github.com/users/albertogomcas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertogomcas/subscriptions","organizations_url":"https://api.github.com/users/albertogomcas/orgs","repos_url":"https://api.github.com/users/albertogomcas/repos","events_url":"https://api.github.com/users/albertogomcas/events{/privacy}","received_events_url":"https://api.github.com/users/albertogomcas/received_events","type":"User","site_admin":false},"labels":[{"id":821135260,"url":"https://api.github.com/repos/spyder-ide/spyder/labels/status:PendingRevision/Tests","name":"status:PendingRevision/Tests","color":"00f07d","default":false},{"id":177806169,"url":"https://api.github.com/repos/spyder-ide/spyder/labels/tag:Ui","name":"tag:Ui","color":"5319e7","default":false},{"id":177778991,"url":"https://api.github.com/repos/spyder-ide/spyder/labels/type:Enhancement","name":"type:Enhancement","color":"e99695","default":false}],"state":"open","locked":false,"assignee":{"login":"albertogomcas","id":8244088,"avatar_url":"https://avatars1.githubusercontent.com/u/8244088?v=4","gravatar_id":"","url":"https://api.github.com/users/albertogomcas","html_url":"https://github.com/albertogomcas","followers_url":"https://api.github.com/users/albertogomcas/followers","following_url":"https://api.github.com/users/albertogomcas/following{/other_user}","gists_url":"https://api.github.com/users/albertogomcas/gists{/gist_id}","starred_url":"https://api.github.com/users/albertogomcas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertogomcas/subscriptions","organizations_url":"https://api.github.com/users/albertogomcas/orgs","repos_url":"https://api.github.com/users/albertogomcas/repos","events_url":"https://api.github.com/users/albertogomcas/events{/privacy}","received_events_url":"https://api.github.com/users/albertogomcas/received_events","type":"User","site_admin":false},"assignees":[{"login":"albertogomcas","id":8244088,"avatar_url":"https://avatars1.githubusercontent.com/u/8244088?v=4","gravatar_id":"","url":"https://api.github.com/users/albertogomcas","html_url":"https://github.com/albertogomcas","followers_url":"https://api.github.com/users/albertogomcas/followers","following_url":"https://api.github.com/users/albertogomcas/following{/other_user}","gists_url":"https://api.github.com/users/albertogomcas/gists{/gist_id}","starred_url":"https://api.github.com/users/albertogomcas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertogomcas/subscriptions","organizations_url":"https://api.github.com/users/albertogomcas/orgs","repos_url":"https://api.github.com/users/albertogomcas/repos","events_url":"https://api.github.com/users/albertogomcas/events{/privacy}","received_events_url":"https://api.github.com/users/albertogomcas/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/23","html_url":"https://github.com/spyder-ide/spyder/milestone/23","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/23/labels","id":1159297,"number":23,"title":"v4.0beta1","description":"","creator":{"login":"goanpeca","id":3627835,"avatar_url":"https://avatars3.githubusercontent.com/u/3627835?v=4","gravatar_id":"","url":"https://api.github.com/users/goanpeca","html_url":"https://github.com/goanpeca","followers_url":"https://api.github.com/users/goanpeca/followers","following_url":"https://api.github.com/users/goanpeca/following{/other_user}","gists_url":"https://api.github.com/users/goanpeca/gists{/gist_id}","starred_url":"https://api.github.com/users/goanpeca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goanpeca/subscriptions","organizations_url":"https://api.github.com/users/goanpeca/orgs","repos_url":"https://api.github.com/users/goanpeca/repos","events_url":"https://api.github.com/users/goanpeca/events{/privacy}","received_events_url":"https://api.github.com/users/goanpeca/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":162,"state":"open","created_at":"2015-06-10T21:26:57Z","updated_at":"2018-01-31T16:03:28Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-12-10T10:58:05Z","updated_at":"2018-02-01T13:34:47Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/spyder-ide/spyder/pulls/5947","html_url":"https://github.com/spyder-ide/spyder/pull/5947","diff_url":"https://github.com/spyder-ide/spyder/pull/5947.diff","patch_url":"https://github.com/spyder-ide/spyder/pull/5947.patch"},"body":"[Spyder should be conda environment-sensitive](https://github.com/spyder-ide/spyder/issues/5803)\r\n\r\nI had a go at this, I tried a few approaches for conda and virtual environments, for some reason os.environ['CONDA_PREFIX'] did not work reliably for me.\r\n\r\nHowever [sys.prefix](https://stackoverflow.com/questions/1871549/python-determine-if-running-inside-virtualenv) provides a reasonable result both for venv and conda environments. Mind that the root conda environment is also detected, which for me is not a problem.\r\n\r\nI only tested this with windows. In any case, the proposed changes should fail cleanly and leave the title as-is if something does not work. \r\n\r\n![image](https://user-images.githubusercontent.com/8244088/33804255-46e28b2e-dda1-11e7-9784-f0191dc3cf5f.png)\r\n(Top: spyder running in conda root, bottom, running in a conda environment named \"condaclone\")\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/362267229","html_url":"https://github.com/spyder-ide/spyder/pull/5947#issuecomment-362267229","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/5947","id":362267229,"user":{"login":"albertogomcas","id":8244088,"avatar_url":"https://avatars1.githubusercontent.com/u/8244088?v=4","gravatar_id":"","url":"https://api.github.com/users/albertogomcas","html_url":"https://github.com/albertogomcas","followers_url":"https://api.github.com/users/albertogomcas/followers","following_url":"https://api.github.com/users/albertogomcas/following{/other_user}","gists_url":"https://api.github.com/users/albertogomcas/gists{/gist_id}","starred_url":"https://api.github.com/users/albertogomcas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertogomcas/subscriptions","organizations_url":"https://api.github.com/users/albertogomcas/orgs","repos_url":"https://api.github.com/users/albertogomcas/repos","events_url":"https://api.github.com/users/albertogomcas/events{/privacy}","received_events_url":"https://api.github.com/users/albertogomcas/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T13:34:47Z","updated_at":"2018-02-01T13:34:47Z","author_association":"NONE","body":"Sorry, I have very little time lately (little new member at home). I fixed the PEP8 issues, but I have trouble with the tests. If I lauch the test run with pytest it passes test_cli_options but when it starts with test_mainwindow a Spyder instance is launched and nothing else happens. I have to close those by hand, generating errors/skips.\r\n\r\nThis is before I add any test myself, but of course prevents me from trying anything."}}
{"actor":{"display_login":"albertogomcas"}}