{"action":"created","comment":{"url":"https://api.github.com/repos/Theano/Theano/pulls/comments/38120663","id":38120663,"diff_hunk":"@@ -0,0 +1,99 @@\n+\"\"\"Dynamic visualization of Theano graphs.\n+\n+Author: Christof Angermueller <cangermueller@gmail.com>\n+\"\"\"\n+\n+import os\n+import os.path as pt\n+import shutil\n+import re\n+\n+from formatting import PyDotFormatter\n+\n+__path__ = pt.dirname(pt.realpath(__file__))\n+\n+\n+def replace_patterns(x, replace):\n+    \"\"\"Replace patterns `replace` in x.\"\"\"\n+    for from_, to in replace.items():","path":"theano/d3viz/d3viz.py","position":18,"original_position":18,"commit_id":"07f784daee066fe307d586d2a519f8b084d90886","original_commit_id":"07f784daee066fe307d586d2a519f8b084d90886","user":{"login":"abergeron","id":1002504,"avatar_url":"https://avatars.githubusercontent.com/u/1002504?v=3","gravatar_id":"","url":"https://api.github.com/users/abergeron","html_url":"https://github.com/abergeron","followers_url":"https://api.github.com/users/abergeron/followers","following_url":"https://api.github.com/users/abergeron/following{/other_user}","gists_url":"https://api.github.com/users/abergeron/gists{/gist_id}","starred_url":"https://api.github.com/users/abergeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abergeron/subscriptions","organizations_url":"https://api.github.com/users/abergeron/orgs","repos_url":"https://api.github.com/users/abergeron/repos","events_url":"https://api.github.com/users/abergeron/events{/privacy}","received_events_url":"https://api.github.com/users/abergeron/received_events","type":"User","site_admin":false},"body":"Use iteritems from six to iterate.","created_at":"2015-08-27T17:15:27Z","updated_at":"2015-08-27T17:15:27Z","html_url":"https://github.com/Theano/Theano/pull/3322#discussion_r38120663","pull_request_url":"https://api.github.com/repos/Theano/Theano/pulls/3322","_links":{"self":{"href":"https://api.github.com/repos/Theano/Theano/pulls/comments/38120663"},"html":{"href":"https://github.com/Theano/Theano/pull/3322#discussion_r38120663"},"pull_request":{"href":"https://api.github.com/repos/Theano/Theano/pulls/3322"}}},"pull_request":{"url":"https://api.github.com/repos/Theano/Theano/pulls/3322","id":43218373,"html_url":"https://github.com/Theano/Theano/pull/3322","diff_url":"https://github.com/Theano/Theano/pull/3322.diff","patch_url":"https://github.com/Theano/Theano/pull/3322.patch","issue_url":"https://api.github.com/repos/Theano/Theano/issues/3322","number":3322,"state":"open","locked":false,"title":"d3viz: Interactive visualization of Theano compute graphs","user":{"login":"cangermueller","id":4807859,"avatar_url":"https://avatars.githubusercontent.com/u/4807859?v=3","gravatar_id":"","url":"https://api.github.com/users/cangermueller","html_url":"https://github.com/cangermueller","followers_url":"https://api.github.com/users/cangermueller/followers","following_url":"https://api.github.com/users/cangermueller/following{/other_user}","gists_url":"https://api.github.com/users/cangermueller/gists{/gist_id}","starred_url":"https://api.github.com/users/cangermueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cangermueller/subscriptions","organizations_url":"https://api.github.com/users/cangermueller/orgs","repos_url":"https://api.github.com/users/cangermueller/repos","events_url":"https://api.github.com/users/cangermueller/events{/privacy}","received_events_url":"https://api.github.com/users/cangermueller/received_events","type":"User","site_admin":false},"body":"`d3viz` extends Theano’s printing module\r\nto interactively visualize compute graphs. Instead of creating a static\r\npicture, it creates an HTML file, which can be opened with any\r\nweb-browser. `d3viz` allows\r\n-  to zoom to different regions and to move graphs via drag and drop,\r\n-  to position nodes both manually and automatically,\r\n-  to retrieve additional information about nodes and edges such as\r\n   their data type or definition in the source code,\r\n-  to edit node labels,\r\n-  to visualizing profiling information, and\r\n-  to explore nested graphs such as OpFromGraph nodes.\r\n\r\nThis pull request includes the fully documented and tested `d3viz` module, as well as an user guide with examples.\r\n","created_at":"2015-08-24T20:34:35Z","updated_at":"2015-08-27T17:15:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec7b77760b7a5ec8192363a2d4d318f449cbae67","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Theano/Theano/pulls/3322/commits","review_comments_url":"https://api.github.com/repos/Theano/Theano/pulls/3322/comments","review_comment_url":"https://api.github.com/repos/Theano/Theano/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Theano/Theano/issues/3322/comments","statuses_url":"https://api.github.com/repos/Theano/Theano/statuses/07f784daee066fe307d586d2a519f8b084d90886","head":{"label":"cangermueller:master","ref":"master","sha":"07f784daee066fe307d586d2a519f8b084d90886","user":{"login":"cangermueller","id":4807859,"avatar_url":"https://avatars.githubusercontent.com/u/4807859?v=3","gravatar_id":"","url":"https://api.github.com/users/cangermueller","html_url":"https://github.com/cangermueller","followers_url":"https://api.github.com/users/cangermueller/followers","following_url":"https://api.github.com/users/cangermueller/following{/other_user}","gists_url":"https://api.github.com/users/cangermueller/gists{/gist_id}","starred_url":"https://api.github.com/users/cangermueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cangermueller/subscriptions","organizations_url":"https://api.github.com/users/cangermueller/orgs","repos_url":"https://api.github.com/users/cangermueller/repos","events_url":"https://api.github.com/users/cangermueller/events{/privacy}","received_events_url":"https://api.github.com/users/cangermueller/received_events","type":"User","site_admin":false},"repo":{"id":32273936,"name":"Theano","full_name":"cangermueller/Theano","owner":{"login":"cangermueller","id":4807859,"avatar_url":"https://avatars.githubusercontent.com/u/4807859?v=3","gravatar_id":"","url":"https://api.github.com/users/cangermueller","html_url":"https://github.com/cangermueller","followers_url":"https://api.github.com/users/cangermueller/followers","following_url":"https://api.github.com/users/cangermueller/following{/other_user}","gists_url":"https://api.github.com/users/cangermueller/gists{/gist_id}","starred_url":"https://api.github.com/users/cangermueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cangermueller/subscriptions","organizations_url":"https://api.github.com/users/cangermueller/orgs","repos_url":"https://api.github.com/users/cangermueller/repos","events_url":"https://api.github.com/users/cangermueller/events{/privacy}","received_events_url":"https://api.github.com/users/cangermueller/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cangermueller/Theano","description":"Theano is a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently. It can use GPUs and perform efficient symbolic differentiation.","fork":true,"url":"https://api.github.com/repos/cangermueller/Theano","forks_url":"https://api.github.com/repos/cangermueller/Theano/forks","keys_url":"https://api.github.com/repos/cangermueller/Theano/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cangermueller/Theano/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cangermueller/Theano/teams","hooks_url":"https://api.github.com/repos/cangermueller/Theano/hooks","issue_events_url":"https://api.github.com/repos/cangermueller/Theano/issues/events{/number}","events_url":"https://api.github.com/repos/cangermueller/Theano/events","assignees_url":"https://api.github.com/repos/cangermueller/Theano/assignees{/user}","branches_url":"https://api.github.com/repos/cangermueller/Theano/branches{/branch}","tags_url":"https://api.github.com/repos/cangermueller/Theano/tags","blobs_url":"https://api.github.com/repos/cangermueller/Theano/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cangermueller/Theano/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cangermueller/Theano/git/refs{/sha}","trees_url":"https://api.github.com/repos/cangermueller/Theano/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cangermueller/Theano/statuses/{sha}","languages_url":"https://api.github.com/repos/cangermueller/Theano/languages","stargazers_url":"https://api.github.com/repos/cangermueller/Theano/stargazers","contributors_url":"https://api.github.com/repos/cangermueller/Theano/contributors","subscribers_url":"https://api.github.com/repos/cangermueller/Theano/subscribers","subscription_url":"https://api.github.com/repos/cangermueller/Theano/subscription","commits_url":"https://api.github.com/repos/cangermueller/Theano/commits{/sha}","git_commits_url":"https://api.github.com/repos/cangermueller/Theano/git/commits{/sha}","comments_url":"https://api.github.com/repos/cangermueller/Theano/comments{/number}","issue_comment_url":"https://api.github.com/repos/cangermueller/Theano/issues/comments{/number}","contents_url":"https://api.github.com/repos/cangermueller/Theano/contents/{+path}","compare_url":"https://api.github.com/repos/cangermueller/Theano/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cangermueller/Theano/merges","archive_url":"https://api.github.com/repos/cangermueller/Theano/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cangermueller/Theano/downloads","issues_url":"https://api.github.com/repos/cangermueller/Theano/issues{/number}","pulls_url":"https://api.github.com/repos/cangermueller/Theano/pulls{/number}","milestones_url":"https://api.github.com/repos/cangermueller/Theano/milestones{/number}","notifications_url":"https://api.github.com/repos/cangermueller/Theano/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cangermueller/Theano/labels{/name}","releases_url":"https://api.github.com/repos/cangermueller/Theano/releases{/id}","created_at":"2015-03-15T17:29:13Z","updated_at":"2015-03-15T17:29:15Z","pushed_at":"2015-08-27T09:31:18Z","git_url":"git://github.com/cangermueller/Theano.git","ssh_url":"git@github.com:cangermueller/Theano.git","clone_url":"https://github.com/cangermueller/Theano.git","svn_url":"https://github.com/cangermueller/Theano","homepage":"http://www.deeplearning.net/software/theano","size":40947,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"Theano:master","ref":"master","sha":"7ba9c05257347024ea90eed2f464f26cb4242b93","user":{"login":"Theano","id":970517,"avatar_url":"https://avatars.githubusercontent.com/u/970517?v=3","gravatar_id":"","url":"https://api.github.com/users/Theano","html_url":"https://github.com/Theano","followers_url":"https://api.github.com/users/Theano/followers","following_url":"https://api.github.com/users/Theano/following{/other_user}","gists_url":"https://api.github.com/users/Theano/gists{/gist_id}","starred_url":"https://api.github.com/users/Theano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Theano/subscriptions","organizations_url":"https://api.github.com/users/Theano/orgs","repos_url":"https://api.github.com/users/Theano/repos","events_url":"https://api.github.com/users/Theano/events{/privacy}","received_events_url":"https://api.github.com/users/Theano/received_events","type":"Organization","site_admin":false},"repo":{"id":2183193,"name":"Theano","full_name":"Theano/Theano","owner":{"login":"Theano","id":970517,"avatar_url":"https://avatars.githubusercontent.com/u/970517?v=3","gravatar_id":"","url":"https://api.github.com/users/Theano","html_url":"https://github.com/Theano","followers_url":"https://api.github.com/users/Theano/followers","following_url":"https://api.github.com/users/Theano/following{/other_user}","gists_url":"https://api.github.com/users/Theano/gists{/gist_id}","starred_url":"https://api.github.com/users/Theano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Theano/subscriptions","organizations_url":"https://api.github.com/users/Theano/orgs","repos_url":"https://api.github.com/users/Theano/repos","events_url":"https://api.github.com/users/Theano/events{/privacy}","received_events_url":"https://api.github.com/users/Theano/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Theano/Theano","description":"Theano is a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently. It can use GPUs and perform efficient symbolic differentiation.","fork":false,"url":"https://api.github.com/repos/Theano/Theano","forks_url":"https://api.github.com/repos/Theano/Theano/forks","keys_url":"https://api.github.com/repos/Theano/Theano/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Theano/Theano/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Theano/Theano/teams","hooks_url":"https://api.github.com/repos/Theano/Theano/hooks","issue_events_url":"https://api.github.com/repos/Theano/Theano/issues/events{/number}","events_url":"https://api.github.com/repos/Theano/Theano/events","assignees_url":"https://api.github.com/repos/Theano/Theano/assignees{/user}","branches_url":"https://api.github.com/repos/Theano/Theano/branches{/branch}","tags_url":"https://api.github.com/repos/Theano/Theano/tags","blobs_url":"https://api.github.com/repos/Theano/Theano/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Theano/Theano/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Theano/Theano/git/refs{/sha}","trees_url":"https://api.github.com/repos/Theano/Theano/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Theano/Theano/statuses/{sha}","languages_url":"https://api.github.com/repos/Theano/Theano/languages","stargazers_url":"https://api.github.com/repos/Theano/Theano/stargazers","contributors_url":"https://api.github.com/repos/Theano/Theano/contributors","subscribers_url":"https://api.github.com/repos/Theano/Theano/subscribers","subscription_url":"https://api.github.com/repos/Theano/Theano/subscription","commits_url":"https://api.github.com/repos/Theano/Theano/commits{/sha}","git_commits_url":"https://api.github.com/repos/Theano/Theano/git/commits{/sha}","comments_url":"https://api.github.com/repos/Theano/Theano/comments{/number}","issue_comment_url":"https://api.github.com/repos/Theano/Theano/issues/comments{/number}","contents_url":"https://api.github.com/repos/Theano/Theano/contents/{+path}","compare_url":"https://api.github.com/repos/Theano/Theano/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Theano/Theano/merges","archive_url":"https://api.github.com/repos/Theano/Theano/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Theano/Theano/downloads","issues_url":"https://api.github.com/repos/Theano/Theano/issues{/number}","pulls_url":"https://api.github.com/repos/Theano/Theano/pulls{/number}","milestones_url":"https://api.github.com/repos/Theano/Theano/milestones{/number}","notifications_url":"https://api.github.com/repos/Theano/Theano/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Theano/Theano/labels{/name}","releases_url":"https://api.github.com/repos/Theano/Theano/releases{/id}","created_at":"2011-08-10T03:48:06Z","updated_at":"2015-08-27T15:51:20Z","pushed_at":"2015-08-27T16:50:45Z","git_url":"git://github.com/Theano/Theano.git","ssh_url":"git@github.com:Theano/Theano.git","clone_url":"https://github.com/Theano/Theano.git","svn_url":"https://github.com/Theano/Theano","homepage":"http://www.deeplearning.net/software/theano","size":60554,"stargazers_count":1944,"watchers_count":1944,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":680,"mirror_url":null,"open_issues_count":456,"forks":680,"open_issues":456,"watchers":1944,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Theano/Theano/pulls/3322"},"html":{"href":"https://github.com/Theano/Theano/pull/3322"},"issue":{"href":"https://api.github.com/repos/Theano/Theano/issues/3322"},"comments":{"href":"https://api.github.com/repos/Theano/Theano/issues/3322/comments"},"review_comments":{"href":"https://api.github.com/repos/Theano/Theano/pulls/3322/comments"},"review_comment":{"href":"https://api.github.com/repos/Theano/Theano/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Theano/Theano/pulls/3322/commits"},"statuses":{"href":"https://api.github.com/repos/Theano/Theano/statuses/07f784daee066fe307d586d2a519f8b084d90886"}}}}