{"action":"closed","number":3779,"pull_request":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/3779","id":81182527,"html_url":"https://github.com/tensorflow/tensorflow/pull/3779","diff_url":"https://github.com/tensorflow/tensorflow/pull/3779.diff","patch_url":"https://github.com/tensorflow/tensorflow/pull/3779.patch","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3779","number":3779,"state":"closed","locked":false,"title":"Allows running \"-m tensorflow.tensorboard\"","user":{"login":"gustavla","id":902935,"avatar_url":"https://avatars.githubusercontent.com/u/902935?v=3","gravatar_id":"","url":"https://api.github.com/users/gustavla","html_url":"https://github.com/gustavla","followers_url":"https://api.github.com/users/gustavla/followers","following_url":"https://api.github.com/users/gustavla/following{/other_user}","gists_url":"https://api.github.com/users/gustavla/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavla/subscriptions","organizations_url":"https://api.github.com/users/gustavla/orgs","repos_url":"https://api.github.com/users/gustavla/repos","events_url":"https://api.github.com/users/gustavla/events{/privacy}","received_events_url":"https://api.github.com/users/gustavla/received_events","type":"User","site_admin":false},"body":"This is a suggested change that moves the main entry point of Tensorboard from `tensorboard.py` to `__main__.py`, allowing tensorboard to be run as a package:\r\n\r\n    python -m tensorflow.tensorboard --logdir=/path\r\n\r\nThis can be really useful on environments with multiple versions of python. Of course, virtualenv is a much better way of dealing with this, but I still find this option to be useful at times.\r\n\r\nFor instance, if you maintain both Python 2 and Python 3 and do a `pip install --user` install of tensorflow for both versions. The python files will be neatly separated by the version in `~/.local/lib/pythonX.X/site-packages`. However, there is no such mechanism for `~/.local/bin`, so the second pip install will override the first one. You can also get around this by running the `tensorboard.py` file directly, but this is not nearly as convenient and safe as letting python specify the location of the package.\r\n\r\nAnother less drastic option here is to keep `tensorboard.py` and add a new file for `__main__.py` that simply imports `main` from `tensorboard.py` and runs it. I'm happy to arrange such a PR too.","created_at":"2016-08-12T21:00:51Z","updated_at":"2016-08-15T04:24:12Z","closed_at":"2016-08-15T04:24:12Z","merged_at":null,"merge_commit_sha":"562e625036ff0bf9dc3082951dc8ddfe4fd418ea","assignee":{"login":"danmane","id":1400023,"avatar_url":"https://avatars.githubusercontent.com/u/1400023?v=3","gravatar_id":"","url":"https://api.github.com/users/danmane","html_url":"https://github.com/danmane","followers_url":"https://api.github.com/users/danmane/followers","following_url":"https://api.github.com/users/danmane/following{/other_user}","gists_url":"https://api.github.com/users/danmane/gists{/gist_id}","starred_url":"https://api.github.com/users/danmane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmane/subscriptions","organizations_url":"https://api.github.com/users/danmane/orgs","repos_url":"https://api.github.com/users/danmane/repos","events_url":"https://api.github.com/users/danmane/events{/privacy}","received_events_url":"https://api.github.com/users/danmane/received_events","type":"User","site_admin":false},"assignees":[{"login":"danmane","id":1400023,"avatar_url":"https://avatars.githubusercontent.com/u/1400023?v=3","gravatar_id":"","url":"https://api.github.com/users/danmane","html_url":"https://github.com/danmane","followers_url":"https://api.github.com/users/danmane/followers","following_url":"https://api.github.com/users/danmane/following{/other_user}","gists_url":"https://api.github.com/users/danmane/gists{/gist_id}","starred_url":"https://api.github.com/users/danmane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmane/subscriptions","organizations_url":"https://api.github.com/users/danmane/orgs","repos_url":"https://api.github.com/users/danmane/repos","events_url":"https://api.github.com/users/danmane/events{/privacy}","received_events_url":"https://api.github.com/users/danmane/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/3779/commits","review_comments_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/3779/comments","review_comment_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3779/comments","statuses_url":"https://api.github.com/repos/tensorflow/tensorflow/statuses/f0d876c2d4fcd387295a58094cb11375d318ccba","head":{"label":"gustavla:tensorboard-run-as-package","ref":"tensorboard-run-as-package","sha":"f0d876c2d4fcd387295a58094cb11375d318ccba","user":{"login":"gustavla","id":902935,"avatar_url":"https://avatars.githubusercontent.com/u/902935?v=3","gravatar_id":"","url":"https://api.github.com/users/gustavla","html_url":"https://github.com/gustavla","followers_url":"https://api.github.com/users/gustavla/followers","following_url":"https://api.github.com/users/gustavla/following{/other_user}","gists_url":"https://api.github.com/users/gustavla/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavla/subscriptions","organizations_url":"https://api.github.com/users/gustavla/orgs","repos_url":"https://api.github.com/users/gustavla/repos","events_url":"https://api.github.com/users/gustavla/events{/privacy}","received_events_url":"https://api.github.com/users/gustavla/received_events","type":"User","site_admin":false},"repo":{"id":65421946,"name":"tensorflow","full_name":"gustavla/tensorflow","owner":{"login":"gustavla","id":902935,"avatar_url":"https://avatars.githubusercontent.com/u/902935?v=3","gravatar_id":"","url":"https://api.github.com/users/gustavla","html_url":"https://github.com/gustavla","followers_url":"https://api.github.com/users/gustavla/followers","following_url":"https://api.github.com/users/gustavla/following{/other_user}","gists_url":"https://api.github.com/users/gustavla/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavla/subscriptions","organizations_url":"https://api.github.com/users/gustavla/orgs","repos_url":"https://api.github.com/users/gustavla/repos","events_url":"https://api.github.com/users/gustavla/events{/privacy}","received_events_url":"https://api.github.com/users/gustavla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gustavla/tensorflow","description":"Computation using data flow graphs for scalable machine learning","fork":true,"url":"https://api.github.com/repos/gustavla/tensorflow","forks_url":"https://api.github.com/repos/gustavla/tensorflow/forks","keys_url":"https://api.github.com/repos/gustavla/tensorflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gustavla/tensorflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gustavla/tensorflow/teams","hooks_url":"https://api.github.com/repos/gustavla/tensorflow/hooks","issue_events_url":"https://api.github.com/repos/gustavla/tensorflow/issues/events{/number}","events_url":"https://api.github.com/repos/gustavla/tensorflow/events","assignees_url":"https://api.github.com/repos/gustavla/tensorflow/assignees{/user}","branches_url":"https://api.github.com/repos/gustavla/tensorflow/branches{/branch}","tags_url":"https://api.github.com/repos/gustavla/tensorflow/tags","blobs_url":"https://api.github.com/repos/gustavla/tensorflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gustavla/tensorflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gustavla/tensorflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/gustavla/tensorflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gustavla/tensorflow/statuses/{sha}","languages_url":"https://api.github.com/repos/gustavla/tensorflow/languages","stargazers_url":"https://api.github.com/repos/gustavla/tensorflow/stargazers","contributors_url":"https://api.github.com/repos/gustavla/tensorflow/contributors","subscribers_url":"https://api.github.com/repos/gustavla/tensorflow/subscribers","subscription_url":"https://api.github.com/repos/gustavla/tensorflow/subscription","commits_url":"https://api.github.com/repos/gustavla/tensorflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/gustavla/tensorflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/gustavla/tensorflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/gustavla/tensorflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/gustavla/tensorflow/contents/{+path}","compare_url":"https://api.github.com/repos/gustavla/tensorflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gustavla/tensorflow/merges","archive_url":"https://api.github.com/repos/gustavla/tensorflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gustavla/tensorflow/downloads","issues_url":"https://api.github.com/repos/gustavla/tensorflow/issues{/number}","pulls_url":"https://api.github.com/repos/gustavla/tensorflow/pulls{/number}","milestones_url":"https://api.github.com/repos/gustavla/tensorflow/milestones{/number}","notifications_url":"https://api.github.com/repos/gustavla/tensorflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gustavla/tensorflow/labels{/name}","releases_url":"https://api.github.com/repos/gustavla/tensorflow/releases{/id}","deployments_url":"https://api.github.com/repos/gustavla/tensorflow/deployments","created_at":"2016-08-10T23:00:28Z","updated_at":"2016-08-10T23:00:41Z","pushed_at":"2016-08-15T04:21:13Z","git_url":"git://github.com/gustavla/tensorflow.git","ssh_url":"git@github.com:gustavla/tensorflow.git","clone_url":"https://github.com/gustavla/tensorflow.git","svn_url":"https://github.com/gustavla/tensorflow","homepage":"http://tensorflow.org","size":51946,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tensorflow:master","ref":"master","sha":"bf31051225ce53c1c88fd45ee117a49645153770","user":{"login":"tensorflow","id":15658638,"avatar_url":"https://avatars.githubusercontent.com/u/15658638?v=3","gravatar_id":"","url":"https://api.github.com/users/tensorflow","html_url":"https://github.com/tensorflow","followers_url":"https://api.github.com/users/tensorflow/followers","following_url":"https://api.github.com/users/tensorflow/following{/other_user}","gists_url":"https://api.github.com/users/tensorflow/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflow/subscriptions","organizations_url":"https://api.github.com/users/tensorflow/orgs","repos_url":"https://api.github.com/users/tensorflow/repos","events_url":"https://api.github.com/users/tensorflow/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflow/received_events","type":"Organization","site_admin":false},"repo":{"id":45717250,"name":"tensorflow","full_name":"tensorflow/tensorflow","owner":{"login":"tensorflow","id":15658638,"avatar_url":"https://avatars.githubusercontent.com/u/15658638?v=3","gravatar_id":"","url":"https://api.github.com/users/tensorflow","html_url":"https://github.com/tensorflow","followers_url":"https://api.github.com/users/tensorflow/followers","following_url":"https://api.github.com/users/tensorflow/following{/other_user}","gists_url":"https://api.github.com/users/tensorflow/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflow/subscriptions","organizations_url":"https://api.github.com/users/tensorflow/orgs","repos_url":"https://api.github.com/users/tensorflow/repos","events_url":"https://api.github.com/users/tensorflow/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tensorflow/tensorflow","description":"Computation using data flow graphs for scalable machine learning","fork":false,"url":"https://api.github.com/repos/tensorflow/tensorflow","forks_url":"https://api.github.com/repos/tensorflow/tensorflow/forks","keys_url":"https://api.github.com/repos/tensorflow/tensorflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tensorflow/tensorflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tensorflow/tensorflow/teams","hooks_url":"https://api.github.com/repos/tensorflow/tensorflow/hooks","issue_events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/events{/number}","events_url":"https://api.github.com/repos/tensorflow/tensorflow/events","assignees_url":"https://api.github.com/repos/tensorflow/tensorflow/assignees{/user}","branches_url":"https://api.github.com/repos/tensorflow/tensorflow/branches{/branch}","tags_url":"https://api.github.com/repos/tensorflow/tensorflow/tags","blobs_url":"https://api.github.com/repos/tensorflow/tensorflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tensorflow/tensorflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tensorflow/tensorflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/tensorflow/tensorflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tensorflow/tensorflow/statuses/{sha}","languages_url":"https://api.github.com/repos/tensorflow/tensorflow/languages","stargazers_url":"https://api.github.com/repos/tensorflow/tensorflow/stargazers","contributors_url":"https://api.github.com/repos/tensorflow/tensorflow/contributors","subscribers_url":"https://api.github.com/repos/tensorflow/tensorflow/subscribers","subscription_url":"https://api.github.com/repos/tensorflow/tensorflow/subscription","commits_url":"https://api.github.com/repos/tensorflow/tensorflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/tensorflow/tensorflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/tensorflow/tensorflow/contents/{+path}","compare_url":"https://api.github.com/repos/tensorflow/tensorflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tensorflow/tensorflow/merges","archive_url":"https://api.github.com/repos/tensorflow/tensorflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tensorflow/tensorflow/downloads","issues_url":"https://api.github.com/repos/tensorflow/tensorflow/issues{/number}","pulls_url":"https://api.github.com/repos/tensorflow/tensorflow/pulls{/number}","milestones_url":"https://api.github.com/repos/tensorflow/tensorflow/milestones{/number}","notifications_url":"https://api.github.com/repos/tensorflow/tensorflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/labels{/name}","releases_url":"https://api.github.com/repos/tensorflow/tensorflow/releases{/id}","deployments_url":"https://api.github.com/repos/tensorflow/tensorflow/deployments","created_at":"2015-11-07T01:19:20Z","updated_at":"2016-08-15T03:31:17Z","pushed_at":"2016-08-15T04:23:27Z","git_url":"git://github.com/tensorflow/tensorflow.git","ssh_url":"git@github.com:tensorflow/tensorflow.git","clone_url":"https://github.com/tensorflow/tensorflow.git","svn_url":"https://github.com/tensorflow/tensorflow","homepage":"http://tensorflow.org","size":220330,"stargazers_count":29925,"watchers_count":29925,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12487,"mirror_url":null,"open_issues_count":472,"forks":12487,"open_issues":472,"watchers":29925,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/3779"},"html":{"href":"https://github.com/tensorflow/tensorflow/pull/3779"},"issue":{"href":"https://api.github.com/repos/tensorflow/tensorflow/issues/3779"},"comments":{"href":"https://api.github.com/repos/tensorflow/tensorflow/issues/3779/comments"},"review_comments":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/3779/comments"},"review_comment":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tensorflow/tensorflow/pulls/3779/commits"},"statuses":{"href":"https://api.github.com/repos/tensorflow/tensorflow/statuses/f0d876c2d4fcd387295a58094cb11375d318ccba"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":5,"deletions":5,"changed_files":5}}
{"actor":{"display_login":"gustavla"}}