{"action":"opened","number":2887,"pull_request":{"url":"https://api.github.com/repos/sagemathinc/cocalc/pulls/2887","id":188508285,"html_url":"https://github.com/sagemathinc/cocalc/pull/2887","diff_url":"https://github.com/sagemathinc/cocalc/pull/2887.diff","patch_url":"https://github.com/sagemathinc/cocalc/pull/2887.patch","issue_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/2887","number":2887,"state":"open","locked":false,"title":"matplotlib backend selection in salvus server","user":{"login":"haraldschilly","id":207405,"avatar_url":"https://avatars0.githubusercontent.com/u/207405?v=4","gravatar_id":"","url":"https://api.github.com/users/haraldschilly","html_url":"https://github.com/haraldschilly","followers_url":"https://api.github.com/users/haraldschilly/followers","following_url":"https://api.github.com/users/haraldschilly/following{/other_user}","gists_url":"https://api.github.com/users/haraldschilly/gists{/gist_id}","starred_url":"https://api.github.com/users/haraldschilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haraldschilly/subscriptions","organizations_url":"https://api.github.com/users/haraldschilly/orgs","repos_url":"https://api.github.com/users/haraldschilly/repos","events_url":"https://api.github.com/users/haraldschilly/events{/privacy}","received_events_url":"https://api.github.com/users/haraldschilly/received_events","type":"User","site_admin":false},"body":"This is work in progress, but right now it is at least in state where sagews worksheets produce some output in ubuntu 18.04 again.\r\n\r\nThe background is that matplotlib config files or env variables might set the backend of matplotlib to one of such a type, where it tries to open a graphical window. e.g. configs like that\r\n\r\n```\r\n$ grep ^backend /etc/matplotlibrc\r\nbackend      : TkAgg\r\n```\r\n\r\nThis change here makes this robust against that and selects \"Agg\" regardless of what the configuration says.\r\n\r\nLoading speed? Since in that file pylab is getting imported globally, and also some other parts of matplotlib, I can't imagine how this can have any impact.\r\n\r\nTesting: what's missing is to double check with the current ubuntu 16.04 environment.","created_at":"2018-05-16T17:37:40Z","updated_at":"2018-05-16T17:37:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":577563452,"url":"https://api.github.com/repos/sagemathinc/cocalc/labels/PR-work%20in%20progress","name":"PR-work in progress","color":"0052cc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/sagemathinc/cocalc/pulls/2887/commits","review_comments_url":"https://api.github.com/repos/sagemathinc/cocalc/pulls/2887/comments","review_comment_url":"https://api.github.com/repos/sagemathinc/cocalc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/2887/comments","statuses_url":"https://api.github.com/repos/sagemathinc/cocalc/statuses/686be815f4a10f856e44163e84a5204d4e3d00de","head":{"label":"sagemathinc:MPL-backend-salvus","ref":"MPL-backend-salvus","sha":"686be815f4a10f856e44163e84a5204d4e3d00de","user":{"login":"sagemathinc","id":11307305,"avatar_url":"https://avatars0.githubusercontent.com/u/11307305?v=4","gravatar_id":"","url":"https://api.github.com/users/sagemathinc","html_url":"https://github.com/sagemathinc","followers_url":"https://api.github.com/users/sagemathinc/followers","following_url":"https://api.github.com/users/sagemathinc/following{/other_user}","gists_url":"https://api.github.com/users/sagemathinc/gists{/gist_id}","starred_url":"https://api.github.com/users/sagemathinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagemathinc/subscriptions","organizations_url":"https://api.github.com/users/sagemathinc/orgs","repos_url":"https://api.github.com/users/sagemathinc/repos","events_url":"https://api.github.com/users/sagemathinc/events{/privacy}","received_events_url":"https://api.github.com/users/sagemathinc/received_events","type":"Organization","site_admin":false},"repo":{"id":32500369,"name":"cocalc","full_name":"sagemathinc/cocalc","owner":{"login":"sagemathinc","id":11307305,"avatar_url":"https://avatars0.githubusercontent.com/u/11307305?v=4","gravatar_id":"","url":"https://api.github.com/users/sagemathinc","html_url":"https://github.com/sagemathinc","followers_url":"https://api.github.com/users/sagemathinc/followers","following_url":"https://api.github.com/users/sagemathinc/following{/other_user}","gists_url":"https://api.github.com/users/sagemathinc/gists{/gist_id}","starred_url":"https://api.github.com/users/sagemathinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagemathinc/subscriptions","organizations_url":"https://api.github.com/users/sagemathinc/orgs","repos_url":"https://api.github.com/users/sagemathinc/repos","events_url":"https://api.github.com/users/sagemathinc/events{/privacy}","received_events_url":"https://api.github.com/users/sagemathinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sagemathinc/cocalc","description":"CoCalc: Collaborative Calculation in the Cloud","fork":false,"url":"https://api.github.com/repos/sagemathinc/cocalc","forks_url":"https://api.github.com/repos/sagemathinc/cocalc/forks","keys_url":"https://api.github.com/repos/sagemathinc/cocalc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagemathinc/cocalc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagemathinc/cocalc/teams","hooks_url":"https://api.github.com/repos/sagemathinc/cocalc/hooks","issue_events_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/events{/number}","events_url":"https://api.github.com/repos/sagemathinc/cocalc/events","assignees_url":"https://api.github.com/repos/sagemathinc/cocalc/assignees{/user}","branches_url":"https://api.github.com/repos/sagemathinc/cocalc/branches{/branch}","tags_url":"https://api.github.com/repos/sagemathinc/cocalc/tags","blobs_url":"https://api.github.com/repos/sagemathinc/cocalc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagemathinc/cocalc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagemathinc/cocalc/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagemathinc/cocalc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagemathinc/cocalc/statuses/{sha}","languages_url":"https://api.github.com/repos/sagemathinc/cocalc/languages","stargazers_url":"https://api.github.com/repos/sagemathinc/cocalc/stargazers","contributors_url":"https://api.github.com/repos/sagemathinc/cocalc/contributors","subscribers_url":"https://api.github.com/repos/sagemathinc/cocalc/subscribers","subscription_url":"https://api.github.com/repos/sagemathinc/cocalc/subscription","commits_url":"https://api.github.com/repos/sagemathinc/cocalc/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagemathinc/cocalc/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagemathinc/cocalc/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagemathinc/cocalc/contents/{+path}","compare_url":"https://api.github.com/repos/sagemathinc/cocalc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagemathinc/cocalc/merges","archive_url":"https://api.github.com/repos/sagemathinc/cocalc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagemathinc/cocalc/downloads","issues_url":"https://api.github.com/repos/sagemathinc/cocalc/issues{/number}","pulls_url":"https://api.github.com/repos/sagemathinc/cocalc/pulls{/number}","milestones_url":"https://api.github.com/repos/sagemathinc/cocalc/milestones{/number}","notifications_url":"https://api.github.com/repos/sagemathinc/cocalc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagemathinc/cocalc/labels{/name}","releases_url":"https://api.github.com/repos/sagemathinc/cocalc/releases{/id}","deployments_url":"https://api.github.com/repos/sagemathinc/cocalc/deployments","created_at":"2015-03-19T04:16:53Z","updated_at":"2018-05-16T17:21:19Z","pushed_at":"2018-05-16T17:29:14Z","git_url":"git://github.com/sagemathinc/cocalc.git","ssh_url":"git@github.com:sagemathinc/cocalc.git","clone_url":"https://github.com/sagemathinc/cocalc.git","svn_url":"https://github.com/sagemathinc/cocalc","homepage":"https://CoCalc.com","size":192024,"stargazers_count":521,"watchers_count":521,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"archived":false,"open_issues_count":760,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":103,"open_issues":760,"watchers":521,"default_branch":"master"}},"base":{"label":"sagemathinc:master","ref":"master","sha":"7a5133e340d7a9e496565a9aa194f37b6203a452","user":{"login":"sagemathinc","id":11307305,"avatar_url":"https://avatars0.githubusercontent.com/u/11307305?v=4","gravatar_id":"","url":"https://api.github.com/users/sagemathinc","html_url":"https://github.com/sagemathinc","followers_url":"https://api.github.com/users/sagemathinc/followers","following_url":"https://api.github.com/users/sagemathinc/following{/other_user}","gists_url":"https://api.github.com/users/sagemathinc/gists{/gist_id}","starred_url":"https://api.github.com/users/sagemathinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagemathinc/subscriptions","organizations_url":"https://api.github.com/users/sagemathinc/orgs","repos_url":"https://api.github.com/users/sagemathinc/repos","events_url":"https://api.github.com/users/sagemathinc/events{/privacy}","received_events_url":"https://api.github.com/users/sagemathinc/received_events","type":"Organization","site_admin":false},"repo":{"id":32500369,"name":"cocalc","full_name":"sagemathinc/cocalc","owner":{"login":"sagemathinc","id":11307305,"avatar_url":"https://avatars0.githubusercontent.com/u/11307305?v=4","gravatar_id":"","url":"https://api.github.com/users/sagemathinc","html_url":"https://github.com/sagemathinc","followers_url":"https://api.github.com/users/sagemathinc/followers","following_url":"https://api.github.com/users/sagemathinc/following{/other_user}","gists_url":"https://api.github.com/users/sagemathinc/gists{/gist_id}","starred_url":"https://api.github.com/users/sagemathinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagemathinc/subscriptions","organizations_url":"https://api.github.com/users/sagemathinc/orgs","repos_url":"https://api.github.com/users/sagemathinc/repos","events_url":"https://api.github.com/users/sagemathinc/events{/privacy}","received_events_url":"https://api.github.com/users/sagemathinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sagemathinc/cocalc","description":"CoCalc: Collaborative Calculation in the Cloud","fork":false,"url":"https://api.github.com/repos/sagemathinc/cocalc","forks_url":"https://api.github.com/repos/sagemathinc/cocalc/forks","keys_url":"https://api.github.com/repos/sagemathinc/cocalc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagemathinc/cocalc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagemathinc/cocalc/teams","hooks_url":"https://api.github.com/repos/sagemathinc/cocalc/hooks","issue_events_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/events{/number}","events_url":"https://api.github.com/repos/sagemathinc/cocalc/events","assignees_url":"https://api.github.com/repos/sagemathinc/cocalc/assignees{/user}","branches_url":"https://api.github.com/repos/sagemathinc/cocalc/branches{/branch}","tags_url":"https://api.github.com/repos/sagemathinc/cocalc/tags","blobs_url":"https://api.github.com/repos/sagemathinc/cocalc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagemathinc/cocalc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagemathinc/cocalc/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagemathinc/cocalc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagemathinc/cocalc/statuses/{sha}","languages_url":"https://api.github.com/repos/sagemathinc/cocalc/languages","stargazers_url":"https://api.github.com/repos/sagemathinc/cocalc/stargazers","contributors_url":"https://api.github.com/repos/sagemathinc/cocalc/contributors","subscribers_url":"https://api.github.com/repos/sagemathinc/cocalc/subscribers","subscription_url":"https://api.github.com/repos/sagemathinc/cocalc/subscription","commits_url":"https://api.github.com/repos/sagemathinc/cocalc/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagemathinc/cocalc/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagemathinc/cocalc/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagemathinc/cocalc/contents/{+path}","compare_url":"https://api.github.com/repos/sagemathinc/cocalc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagemathinc/cocalc/merges","archive_url":"https://api.github.com/repos/sagemathinc/cocalc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagemathinc/cocalc/downloads","issues_url":"https://api.github.com/repos/sagemathinc/cocalc/issues{/number}","pulls_url":"https://api.github.com/repos/sagemathinc/cocalc/pulls{/number}","milestones_url":"https://api.github.com/repos/sagemathinc/cocalc/milestones{/number}","notifications_url":"https://api.github.com/repos/sagemathinc/cocalc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagemathinc/cocalc/labels{/name}","releases_url":"https://api.github.com/repos/sagemathinc/cocalc/releases{/id}","deployments_url":"https://api.github.com/repos/sagemathinc/cocalc/deployments","created_at":"2015-03-19T04:16:53Z","updated_at":"2018-05-16T17:21:19Z","pushed_at":"2018-05-16T17:29:14Z","git_url":"git://github.com/sagemathinc/cocalc.git","ssh_url":"git@github.com:sagemathinc/cocalc.git","clone_url":"https://github.com/sagemathinc/cocalc.git","svn_url":"https://github.com/sagemathinc/cocalc","homepage":"https://CoCalc.com","size":192024,"stargazers_count":521,"watchers_count":521,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"archived":false,"open_issues_count":760,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":103,"open_issues":760,"watchers":521,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sagemathinc/cocalc/pulls/2887"},"html":{"href":"https://github.com/sagemathinc/cocalc/pull/2887"},"issue":{"href":"https://api.github.com/repos/sagemathinc/cocalc/issues/2887"},"comments":{"href":"https://api.github.com/repos/sagemathinc/cocalc/issues/2887/comments"},"review_comments":{"href":"https://api.github.com/repos/sagemathinc/cocalc/pulls/2887/comments"},"review_comment":{"href":"https://api.github.com/repos/sagemathinc/cocalc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sagemathinc/cocalc/pulls/2887/commits"},"statuses":{"href":"https://api.github.com/repos/sagemathinc/cocalc/statuses/686be815f4a10f856e44163e84a5204d4e3d00de"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":6,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"haraldschilly"}}