{"action":"closed","number":7634,"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7634","id":88738107,"html_url":"https://github.com/scikit-learn/scikit-learn/pull/7634","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/7634.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/7634.patch","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7634","number":7634,"state":"closed","locked":false,"title":"[MRG+1] DOC: fix the copybutton on the code blocks","user":{"login":"GaelVaroquaux","id":208217,"avatar_url":"https://avatars.githubusercontent.com/u/208217?v=3","gravatar_id":"","url":"https://api.github.com/users/GaelVaroquaux","html_url":"https://github.com/GaelVaroquaux","followers_url":"https://api.github.com/users/GaelVaroquaux/followers","following_url":"https://api.github.com/users/GaelVaroquaux/following{/other_user}","gists_url":"https://api.github.com/users/GaelVaroquaux/gists{/gist_id}","starred_url":"https://api.github.com/users/GaelVaroquaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaelVaroquaux/subscriptions","organizations_url":"https://api.github.com/users/GaelVaroquaux/orgs","repos_url":"https://api.github.com/users/GaelVaroquaux/repos","events_url":"https://api.github.com/users/GaelVaroquaux/events{/privacy}","received_events_url":"https://api.github.com/users/GaelVaroquaux/received_events","type":"User","site_admin":false},"body":"The copybutton is the \">>>\" on the side of code blocks that enables to remove the \">>>\" at the beginning of lines as well as the outputs.\r\n\r\nSee for instance the code blocks on http://scikit-learn.org/0.17/tutorial/text_analytics/working_with_text_data.html#tutorial-setup\r\n\r\nIt was broken in the docs of 0.18 due to changes in sphinx. See:\r\nhttp://scikit-learn.org/stable/tutorial/text_analytics/working_with_text_data.html#tutorial-setup\r\n\r\nI am backporting the js used by the Python core docs.\r\n\r\nIn addition, I am porting CSS from scipy-lectures to highlight this button on hover, and make it more discoverable.","created_at":"2016-10-10T21:58:16Z","updated_at":"2016-10-13T14:30:38Z","closed_at":"2016-10-13T14:30:38Z","merged_at":"2016-10-13T14:30:38Z","merge_commit_sha":"0e12b2fc8234ffed94f78c4634cfbc3541e79190","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones/22","html_url":"https://github.com/scikit-learn/scikit-learn/milestones/0.18.1","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones/22/labels","id":2046567,"number":22,"title":"0.18.1","description":"Urgent fixes to bugs and web site issues.","creator":{"login":"jnothman","id":78827,"avatar_url":"https://avatars.githubusercontent.com/u/78827?v=3","gravatar_id":"","url":"https://api.github.com/users/jnothman","html_url":"https://github.com/jnothman","followers_url":"https://api.github.com/users/jnothman/followers","following_url":"https://api.github.com/users/jnothman/following{/other_user}","gists_url":"https://api.github.com/users/jnothman/gists{/gist_id}","starred_url":"https://api.github.com/users/jnothman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnothman/subscriptions","organizations_url":"https://api.github.com/users/jnothman/orgs","repos_url":"https://api.github.com/users/jnothman/repos","events_url":"https://api.github.com/users/jnothman/events{/privacy}","received_events_url":"https://api.github.com/users/jnothman/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":15,"state":"open","created_at":"2016-10-04T11:55:58Z","updated_at":"2016-10-13T14:30:38Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7634/commits","review_comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7634/comments","review_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7634/comments","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/403c436ffe22d3e8cfabae54946ef6279599b90b","head":{"label":"GaelVaroquaux:fix_copybutton","ref":"fix_copybutton","sha":"403c436ffe22d3e8cfabae54946ef6279599b90b","user":{"login":"GaelVaroquaux","id":208217,"avatar_url":"https://avatars.githubusercontent.com/u/208217?v=3","gravatar_id":"","url":"https://api.github.com/users/GaelVaroquaux","html_url":"https://github.com/GaelVaroquaux","followers_url":"https://api.github.com/users/GaelVaroquaux/followers","following_url":"https://api.github.com/users/GaelVaroquaux/following{/other_user}","gists_url":"https://api.github.com/users/GaelVaroquaux/gists{/gist_id}","starred_url":"https://api.github.com/users/GaelVaroquaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaelVaroquaux/subscriptions","organizations_url":"https://api.github.com/users/GaelVaroquaux/orgs","repos_url":"https://api.github.com/users/GaelVaroquaux/repos","events_url":"https://api.github.com/users/GaelVaroquaux/events{/privacy}","received_events_url":"https://api.github.com/users/GaelVaroquaux/received_events","type":"User","site_admin":false},"repo":{"id":843359,"name":"scikit-learn","full_name":"GaelVaroquaux/scikit-learn","owner":{"login":"GaelVaroquaux","id":208217,"avatar_url":"https://avatars.githubusercontent.com/u/208217?v=3","gravatar_id":"","url":"https://api.github.com/users/GaelVaroquaux","html_url":"https://github.com/GaelVaroquaux","followers_url":"https://api.github.com/users/GaelVaroquaux/followers","following_url":"https://api.github.com/users/GaelVaroquaux/following{/other_user}","gists_url":"https://api.github.com/users/GaelVaroquaux/gists{/gist_id}","starred_url":"https://api.github.com/users/GaelVaroquaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaelVaroquaux/subscriptions","organizations_url":"https://api.github.com/users/GaelVaroquaux/orgs","repos_url":"https://api.github.com/users/GaelVaroquaux/repos","events_url":"https://api.github.com/users/GaelVaroquaux/events{/privacy}","received_events_url":"https://api.github.com/users/GaelVaroquaux/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GaelVaroquaux/scikit-learn","description":"scikit-learn: machine learning in Python","fork":true,"url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn","forks_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/forks","keys_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/teams","hooks_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/events","assignees_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/tags","blobs_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/subscription","commits_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/merges","archive_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/downloads","issues_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/releases{/id}","deployments_url":"https://api.github.com/repos/GaelVaroquaux/scikit-learn/deployments","created_at":"2010-08-17T11:18:48Z","updated_at":"2016-07-22T13:58:31Z","pushed_at":"2016-10-10T21:56:09Z","git_url":"git://github.com/GaelVaroquaux/scikit-learn.git","ssh_url":"git@github.com:GaelVaroquaux/scikit-learn.git","clone_url":"https://github.com/GaelVaroquaux/scikit-learn.git","svn_url":"https://github.com/GaelVaroquaux/scikit-learn","homepage":"http://scikit-learn.org","size":78255,"stargazers_count":11,"watchers_count":11,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":11,"default_branch":"master"}},"base":{"label":"scikit-learn:master","ref":"master","sha":"868a58b2e0ff23427fbfb625e4fc7f997c734480","user":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"repo":{"id":843222,"name":"scikit-learn","full_name":"scikit-learn/scikit-learn","owner":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scikit-learn/scikit-learn","description":"scikit-learn: machine learning in Python","fork":false,"url":"https://api.github.com/repos/scikit-learn/scikit-learn","forks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/forks","keys_url":"https://api.github.com/repos/scikit-learn/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scikit-learn/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scikit-learn/scikit-learn/teams","hooks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/events","assignees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/scikit-learn/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/tags","blobs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/scikit-learn/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscription","commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/scikit-learn/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scikit-learn/scikit-learn/merges","archive_url":"https://api.github.com/repos/scikit-learn/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scikit-learn/scikit-learn/downloads","issues_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/scikit-learn/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/scikit-learn/scikit-learn/releases{/id}","deployments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/deployments","created_at":"2010-08-17T09:43:38Z","updated_at":"2016-10-13T12:31:06Z","pushed_at":"2016-10-13T14:30:38Z","git_url":"git://github.com/scikit-learn/scikit-learn.git","ssh_url":"git@github.com:scikit-learn/scikit-learn.git","clone_url":"https://github.com/scikit-learn/scikit-learn.git","svn_url":"https://github.com/scikit-learn/scikit-learn","homepage":"http://scikit-learn.org","size":125725,"stargazers_count":13985,"watchers_count":13985,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7984,"mirror_url":null,"open_issues_count":1183,"forks":7984,"open_issues":1183,"watchers":13985,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7634"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/7634"},"issue":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7634"},"comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7634/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7634/comments"},"review_comment":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/7634/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/403c436ffe22d3e8cfabae54946ef6279599b90b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"TomDLT","id":11065596,"avatar_url":"https://avatars.githubusercontent.com/u/11065596?v=3","gravatar_id":"","url":"https://api.github.com/users/TomDLT","html_url":"https://github.com/TomDLT","followers_url":"https://api.github.com/users/TomDLT/followers","following_url":"https://api.github.com/users/TomDLT/following{/other_user}","gists_url":"https://api.github.com/users/TomDLT/gists{/gist_id}","starred_url":"https://api.github.com/users/TomDLT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomDLT/subscriptions","organizations_url":"https://api.github.com/users/TomDLT/orgs","repos_url":"https://api.github.com/users/TomDLT/repos","events_url":"https://api.github.com/users/TomDLT/events{/privacy}","received_events_url":"https://api.github.com/users/TomDLT/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"commits":1,"additions":41,"deletions":12,"changed_files":2}}
{"actor":{"display_login":"TomDLT"}}