{"action":"opened","number":9049,"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/9049","id":29901894,"html_url":"https://github.com/sympy/sympy/pull/9049","diff_url":"https://github.com/sympy/sympy/pull/9049.diff","patch_url":"https://github.com/sympy/sympy/pull/9049.patch","issue_url":"https://api.github.com/repos/sympy/sympy/issues/9049","number":9049,"state":"open","locked":false,"title":"pretty printing: improved `Trace`","user":{"login":"swachhandl","id":11137436,"avatar_url":"https://avatars.githubusercontent.com/u/11137436?v=3","gravatar_id":"","url":"https://api.github.com/users/swachhandl","html_url":"https://github.com/swachhandl","followers_url":"https://api.github.com/users/swachhandl/followers","following_url":"https://api.github.com/users/swachhandl/following{/other_user}","gists_url":"https://api.github.com/users/swachhandl/gists{/gist_id}","starred_url":"https://api.github.com/users/swachhandl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swachhandl/subscriptions","organizations_url":"https://api.github.com/users/swachhandl/orgs","repos_url":"https://api.github.com/users/swachhandl/repos","events_url":"https://api.github.com/users/swachhandl/events{/privacy}","received_events_url":"https://api.github.com/users/swachhandl/received_events","type":"User","site_admin":false},"body":"Attempts to fix #9044 \r\nDefined a function _print_Trace in sympy.printing.pretty.pretty.PrettyPrinter\r\nso that this function is used to print the Trace rather than the\r\nemptyPrinter.\r\n\r\nExample:\r\n\r\nBefore:\r\n```\r\nIn [70]: X = ImmutableMatrix([[1, 2], [3, 4]])\r\n\r\nIn [71]: w = Trace(X) + Trace(2*X)\r\n\r\nIn [72]: pprint(w)\r\nTrace(Matrix([ + Trace(Matrix([\r\n   [1, 2],          [2, 4],\r\n  [3, 4]]))        [6, 8]]))\r\n```\r\nAfter:\r\n```\r\nIn [70]: X = ImmutableMatrix([[1, 2], [3, 4]])\r\n\r\nIn [71]: w = Trace(X) + Trace(2*X)\r\n\r\nIn [72]: pprint(w)\r\n  ⎛⎡1  2⎤⎞ +   ⎛⎡2  4⎤⎞\r\ntr⎜⎢    ⎥⎟   tr⎜⎢    ⎥⎟\r\n  ⎝⎣3  4⎦⎠     ⎝⎣6  8⎦⎠\r\n```\r\nThe position of the operators ('+' in the above example) in between the Traces are off position.\r\nStill need to figure out how to fix that.","created_at":"2015-02-24T14:36:15Z","updated_at":"2015-02-24T14:36:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19f96534aeace2ae84b3bc158e88496dacf8d1a0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sympy/sympy/pulls/9049/commits","review_comments_url":"https://api.github.com/repos/sympy/sympy/pulls/9049/comments","review_comment_url":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/9049/comments","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/1bd9fc0b0de2777c00de866129bb69db3622d344","head":{"label":"swachhandl:Trace_pretty_printing","ref":"Trace_pretty_printing","sha":"1bd9fc0b0de2777c00de866129bb69db3622d344","user":{"login":"swachhandl","id":11137436,"avatar_url":"https://avatars.githubusercontent.com/u/11137436?v=3","gravatar_id":"","url":"https://api.github.com/users/swachhandl","html_url":"https://github.com/swachhandl","followers_url":"https://api.github.com/users/swachhandl/followers","following_url":"https://api.github.com/users/swachhandl/following{/other_user}","gists_url":"https://api.github.com/users/swachhandl/gists{/gist_id}","starred_url":"https://api.github.com/users/swachhandl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swachhandl/subscriptions","organizations_url":"https://api.github.com/users/swachhandl/orgs","repos_url":"https://api.github.com/users/swachhandl/repos","events_url":"https://api.github.com/users/swachhandl/events{/privacy}","received_events_url":"https://api.github.com/users/swachhandl/received_events","type":"User","site_admin":false},"repo":{"id":31133639,"name":"sympy","full_name":"swachhandl/sympy","owner":{"login":"swachhandl","id":11137436,"avatar_url":"https://avatars.githubusercontent.com/u/11137436?v=3","gravatar_id":"","url":"https://api.github.com/users/swachhandl","html_url":"https://github.com/swachhandl","followers_url":"https://api.github.com/users/swachhandl/followers","following_url":"https://api.github.com/users/swachhandl/following{/other_user}","gists_url":"https://api.github.com/users/swachhandl/gists{/gist_id}","starred_url":"https://api.github.com/users/swachhandl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swachhandl/subscriptions","organizations_url":"https://api.github.com/users/swachhandl/orgs","repos_url":"https://api.github.com/users/swachhandl/repos","events_url":"https://api.github.com/users/swachhandl/events{/privacy}","received_events_url":"https://api.github.com/users/swachhandl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swachhandl/sympy","description":"A computer algebra system written in pure Python","fork":true,"url":"https://api.github.com/repos/swachhandl/sympy","forks_url":"https://api.github.com/repos/swachhandl/sympy/forks","keys_url":"https://api.github.com/repos/swachhandl/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swachhandl/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swachhandl/sympy/teams","hooks_url":"https://api.github.com/repos/swachhandl/sympy/hooks","issue_events_url":"https://api.github.com/repos/swachhandl/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/swachhandl/sympy/events","assignees_url":"https://api.github.com/repos/swachhandl/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/swachhandl/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/swachhandl/sympy/tags","blobs_url":"https://api.github.com/repos/swachhandl/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swachhandl/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swachhandl/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/swachhandl/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swachhandl/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/swachhandl/sympy/languages","stargazers_url":"https://api.github.com/repos/swachhandl/sympy/stargazers","contributors_url":"https://api.github.com/repos/swachhandl/sympy/contributors","subscribers_url":"https://api.github.com/repos/swachhandl/sympy/subscribers","subscription_url":"https://api.github.com/repos/swachhandl/sympy/subscription","commits_url":"https://api.github.com/repos/swachhandl/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/swachhandl/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/swachhandl/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/swachhandl/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/swachhandl/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/swachhandl/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swachhandl/sympy/merges","archive_url":"https://api.github.com/repos/swachhandl/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swachhandl/sympy/downloads","issues_url":"https://api.github.com/repos/swachhandl/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/swachhandl/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/swachhandl/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/swachhandl/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swachhandl/sympy/labels{/name}","releases_url":"https://api.github.com/repos/swachhandl/sympy/releases{/id}","created_at":"2015-02-21T17:29:26Z","updated_at":"2015-02-21T17:29:31Z","pushed_at":"2015-02-24T14:23:01Z","git_url":"git://github.com/swachhandl/sympy.git","ssh_url":"git@github.com:swachhandl/sympy.git","clone_url":"https://github.com/swachhandl/sympy.git","svn_url":"https://github.com/swachhandl/sympy","homepage":"http://sympy.org/","size":67656,"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":"sympy:master","ref":"master","sha":"cbdd0727bc3ded8c956610518298f7fedcf682f2","user":{"login":"sympy","id":260832,"avatar_url":"https://avatars.githubusercontent.com/u/260832?v=3","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"repo":{"id":640534,"name":"sympy","full_name":"sympy/sympy","owner":{"login":"sympy","id":260832,"avatar_url":"https://avatars.githubusercontent.com/u/260832?v=3","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sympy/sympy","description":"A computer algebra system written in pure Python","fork":false,"url":"https://api.github.com/repos/sympy/sympy","forks_url":"https://api.github.com/repos/sympy/sympy/forks","keys_url":"https://api.github.com/repos/sympy/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sympy/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sympy/sympy/teams","hooks_url":"https://api.github.com/repos/sympy/sympy/hooks","issue_events_url":"https://api.github.com/repos/sympy/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/sympy/sympy/events","assignees_url":"https://api.github.com/repos/sympy/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/sympy/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/sympy/sympy/tags","blobs_url":"https://api.github.com/repos/sympy/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sympy/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sympy/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sympy/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/sympy/sympy/languages","stargazers_url":"https://api.github.com/repos/sympy/sympy/stargazers","contributors_url":"https://api.github.com/repos/sympy/sympy/contributors","subscribers_url":"https://api.github.com/repos/sympy/sympy/subscribers","subscription_url":"https://api.github.com/repos/sympy/sympy/subscription","commits_url":"https://api.github.com/repos/sympy/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sympy/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sympy/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sympy/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sympy/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/sympy/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sympy/sympy/merges","archive_url":"https://api.github.com/repos/sympy/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sympy/sympy/downloads","issues_url":"https://api.github.com/repos/sympy/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/sympy/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/sympy/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/sympy/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sympy/sympy/labels{/name}","releases_url":"https://api.github.com/repos/sympy/sympy/releases{/id}","created_at":"2010-04-30T20:37:14Z","updated_at":"2015-02-23T13:20:43Z","pushed_at":"2015-02-22T12:05:22Z","git_url":"git://github.com/sympy/sympy.git","ssh_url":"git@github.com:sympy/sympy.git","clone_url":"https://github.com/sympy/sympy.git","svn_url":"https://github.com/sympy/sympy","homepage":"http://sympy.org/","size":142959,"stargazers_count":1958,"watchers_count":1958,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":955,"mirror_url":null,"open_issues_count":1822,"forks":955,"open_issues":1822,"watchers":1958,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/9049"},"html":{"href":"https://github.com/sympy/sympy/pull/9049"},"issue":{"href":"https://api.github.com/repos/sympy/sympy/issues/9049"},"comments":{"href":"https://api.github.com/repos/sympy/sympy/issues/9049/comments"},"review_comments":{"href":"https://api.github.com/repos/sympy/sympy/pulls/9049/comments"},"review_comment":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sympy/sympy/pulls/9049/commits"},"statuses":{"href":"https://api.github.com/repos/sympy/sympy/statuses/1bd9fc0b0de2777c00de866129bb69db3622d344"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":0,"changed_files":1}}