{"action":"created","comment":{"url":"https://api.github.com/repos/jupyter/jupyter_console/pulls/comments/46880970","id":46880970,"diff_hunk":"@@ -597,3 +637,21 @@ def init_history(self):\n         self.history_manager = ZMQHistoryManager(client=self.client)\n         self.configurables.append(self.history_manager)\n \n+    def get_source_and_reset(self):","path":"jupyter_console/interactiveshell.py","position":87,"original_position":87,"commit_id":"33b96065c73ef08e30b507bf8f7015272ca913b0","original_commit_id":"33b96065c73ef08e30b507bf8f7015272ca913b0","user":{"login":"takluyver","id":327925,"avatar_url":"https://avatars.githubusercontent.com/u/327925?v=3","gravatar_id":"","url":"https://api.github.com/users/takluyver","html_url":"https://github.com/takluyver","followers_url":"https://api.github.com/users/takluyver/followers","following_url":"https://api.github.com/users/takluyver/following{/other_user}","gists_url":"https://api.github.com/users/takluyver/gists{/gist_id}","starred_url":"https://api.github.com/users/takluyver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takluyver/subscriptions","organizations_url":"https://api.github.com/users/takluyver/orgs","repos_url":"https://api.github.com/users/takluyver/repos","events_url":"https://api.github.com/users/takluyver/events{/privacy}","received_events_url":"https://api.github.com/users/takluyver/received_events","type":"User","site_admin":false},"body":"Since this is two simple lines of code and it's called in two places, I think it would be clearer to inline it.","created_at":"2015-12-07T21:34:50Z","updated_at":"2015-12-07T21:34:50Z","html_url":"https://github.com/jupyter/jupyter_console/pull/35#discussion_r46880970","pull_request_url":"https://api.github.com/repos/jupyter/jupyter_console/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/jupyter/jupyter_console/pulls/comments/46880970"},"html":{"href":"https://github.com/jupyter/jupyter_console/pull/35#discussion_r46880970"},"pull_request":{"href":"https://api.github.com/repos/jupyter/jupyter_console/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/jupyter/jupyter_console/pulls/35","id":52757651,"html_url":"https://github.com/jupyter/jupyter_console/pull/35","diff_url":"https://github.com/jupyter/jupyter_console/pull/35.diff","patch_url":"https://github.com/jupyter/jupyter_console/pull/35.patch","issue_url":"https://api.github.com/repos/jupyter/jupyter_console/issues/35","number":35,"state":"open","locked":false,"title":"Use client.is_complete() to determine if a code cell is complete","user":{"login":"dsblank","id":168568,"avatar_url":"https://avatars.githubusercontent.com/u/168568?v=3","gravatar_id":"","url":"https://api.github.com/users/dsblank","html_url":"https://github.com/dsblank","followers_url":"https://api.github.com/users/dsblank/followers","following_url":"https://api.github.com/users/dsblank/following{/other_user}","gists_url":"https://api.github.com/users/dsblank/gists{/gist_id}","starred_url":"https://api.github.com/users/dsblank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsblank/subscriptions","organizations_url":"https://api.github.com/users/dsblank/orgs","repos_url":"https://api.github.com/users/dsblank/repos","events_url":"https://api.github.com/users/dsblank/events{/privacy}","received_events_url":"https://api.github.com/users/dsblank/received_events","type":"User","site_admin":false},"body":"or needs more code. Also returns indent, but doesn't use it yet.\r\n\r\nCloses #11 ","created_at":"2015-12-05T16:01:43Z","updated_at":"2015-12-07T21:34:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cec59a48e5901510c4a2b4194087c5cf31547410","assignee":{"login":"takluyver","id":327925,"avatar_url":"https://avatars.githubusercontent.com/u/327925?v=3","gravatar_id":"","url":"https://api.github.com/users/takluyver","html_url":"https://github.com/takluyver","followers_url":"https://api.github.com/users/takluyver/followers","following_url":"https://api.github.com/users/takluyver/following{/other_user}","gists_url":"https://api.github.com/users/takluyver/gists{/gist_id}","starred_url":"https://api.github.com/users/takluyver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takluyver/subscriptions","organizations_url":"https://api.github.com/users/takluyver/orgs","repos_url":"https://api.github.com/users/takluyver/repos","events_url":"https://api.github.com/users/takluyver/events{/privacy}","received_events_url":"https://api.github.com/users/takluyver/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/jupyter/jupyter_console/milestones/7","html_url":"https://github.com/jupyter/jupyter_console/milestones/4.1","labels_url":"https://api.github.com/repos/jupyter/jupyter_console/milestones/7/labels","id":1342395,"number":7,"title":"4.1","description":"","creator":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2015-10-07T11:37:12Z","updated_at":"2015-12-07T21:08:04Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/jupyter/jupyter_console/pulls/35/commits","review_comments_url":"https://api.github.com/repos/jupyter/jupyter_console/pulls/35/comments","review_comment_url":"https://api.github.com/repos/jupyter/jupyter_console/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jupyter/jupyter_console/issues/35/comments","statuses_url":"https://api.github.com/repos/jupyter/jupyter_console/statuses/33b96065c73ef08e30b507bf8f7015272ca913b0","head":{"label":"dsblank:master","ref":"master","sha":"33b96065c73ef08e30b507bf8f7015272ca913b0","user":{"login":"dsblank","id":168568,"avatar_url":"https://avatars.githubusercontent.com/u/168568?v=3","gravatar_id":"","url":"https://api.github.com/users/dsblank","html_url":"https://github.com/dsblank","followers_url":"https://api.github.com/users/dsblank/followers","following_url":"https://api.github.com/users/dsblank/following{/other_user}","gists_url":"https://api.github.com/users/dsblank/gists{/gist_id}","starred_url":"https://api.github.com/users/dsblank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsblank/subscriptions","organizations_url":"https://api.github.com/users/dsblank/orgs","repos_url":"https://api.github.com/users/dsblank/repos","events_url":"https://api.github.com/users/dsblank/events{/privacy}","received_events_url":"https://api.github.com/users/dsblank/received_events","type":"User","site_admin":false},"repo":{"id":47462005,"name":"jupyter_console","full_name":"dsblank/jupyter_console","owner":{"login":"dsblank","id":168568,"avatar_url":"https://avatars.githubusercontent.com/u/168568?v=3","gravatar_id":"","url":"https://api.github.com/users/dsblank","html_url":"https://github.com/dsblank","followers_url":"https://api.github.com/users/dsblank/followers","following_url":"https://api.github.com/users/dsblank/following{/other_user}","gists_url":"https://api.github.com/users/dsblank/gists{/gist_id}","starred_url":"https://api.github.com/users/dsblank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsblank/subscriptions","organizations_url":"https://api.github.com/users/dsblank/orgs","repos_url":"https://api.github.com/users/dsblank/repos","events_url":"https://api.github.com/users/dsblank/events{/privacy}","received_events_url":"https://api.github.com/users/dsblank/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dsblank/jupyter_console","description":"Jupyter Terminal Console","fork":true,"url":"https://api.github.com/repos/dsblank/jupyter_console","forks_url":"https://api.github.com/repos/dsblank/jupyter_console/forks","keys_url":"https://api.github.com/repos/dsblank/jupyter_console/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dsblank/jupyter_console/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dsblank/jupyter_console/teams","hooks_url":"https://api.github.com/repos/dsblank/jupyter_console/hooks","issue_events_url":"https://api.github.com/repos/dsblank/jupyter_console/issues/events{/number}","events_url":"https://api.github.com/repos/dsblank/jupyter_console/events","assignees_url":"https://api.github.com/repos/dsblank/jupyter_console/assignees{/user}","branches_url":"https://api.github.com/repos/dsblank/jupyter_console/branches{/branch}","tags_url":"https://api.github.com/repos/dsblank/jupyter_console/tags","blobs_url":"https://api.github.com/repos/dsblank/jupyter_console/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dsblank/jupyter_console/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dsblank/jupyter_console/git/refs{/sha}","trees_url":"https://api.github.com/repos/dsblank/jupyter_console/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dsblank/jupyter_console/statuses/{sha}","languages_url":"https://api.github.com/repos/dsblank/jupyter_console/languages","stargazers_url":"https://api.github.com/repos/dsblank/jupyter_console/stargazers","contributors_url":"https://api.github.com/repos/dsblank/jupyter_console/contributors","subscribers_url":"https://api.github.com/repos/dsblank/jupyter_console/subscribers","subscription_url":"https://api.github.com/repos/dsblank/jupyter_console/subscription","commits_url":"https://api.github.com/repos/dsblank/jupyter_console/commits{/sha}","git_commits_url":"https://api.github.com/repos/dsblank/jupyter_console/git/commits{/sha}","comments_url":"https://api.github.com/repos/dsblank/jupyter_console/comments{/number}","issue_comment_url":"https://api.github.com/repos/dsblank/jupyter_console/issues/comments{/number}","contents_url":"https://api.github.com/repos/dsblank/jupyter_console/contents/{+path}","compare_url":"https://api.github.com/repos/dsblank/jupyter_console/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dsblank/jupyter_console/merges","archive_url":"https://api.github.com/repos/dsblank/jupyter_console/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dsblank/jupyter_console/downloads","issues_url":"https://api.github.com/repos/dsblank/jupyter_console/issues{/number}","pulls_url":"https://api.github.com/repos/dsblank/jupyter_console/pulls{/number}","milestones_url":"https://api.github.com/repos/dsblank/jupyter_console/milestones{/number}","notifications_url":"https://api.github.com/repos/dsblank/jupyter_console/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dsblank/jupyter_console/labels{/name}","releases_url":"https://api.github.com/repos/dsblank/jupyter_console/releases{/id}","created_at":"2015-12-05T15:54:10Z","updated_at":"2015-12-05T15:54:11Z","pushed_at":"2015-12-05T16:00:57Z","git_url":"git://github.com/dsblank/jupyter_console.git","ssh_url":"git@github.com:dsblank/jupyter_console.git","clone_url":"https://github.com/dsblank/jupyter_console.git","svn_url":"https://github.com/dsblank/jupyter_console","homepage":"http://jupyter-console.readthedocs.org/en/latest/","size":163,"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":"jupyter:master","ref":"master","sha":"333e77f13d490a9cfff987e303b8ba0be053d706","user":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"repo":{"id":33653639,"name":"jupyter_console","full_name":"jupyter/jupyter_console","owner":{"login":"jupyter","id":7388996,"avatar_url":"https://avatars.githubusercontent.com/u/7388996?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter","html_url":"https://github.com/jupyter","followers_url":"https://api.github.com/users/jupyter/followers","following_url":"https://api.github.com/users/jupyter/following{/other_user}","gists_url":"https://api.github.com/users/jupyter/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter/subscriptions","organizations_url":"https://api.github.com/users/jupyter/orgs","repos_url":"https://api.github.com/users/jupyter/repos","events_url":"https://api.github.com/users/jupyter/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jupyter/jupyter_console","description":"Jupyter Terminal Console","fork":false,"url":"https://api.github.com/repos/jupyter/jupyter_console","forks_url":"https://api.github.com/repos/jupyter/jupyter_console/forks","keys_url":"https://api.github.com/repos/jupyter/jupyter_console/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jupyter/jupyter_console/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jupyter/jupyter_console/teams","hooks_url":"https://api.github.com/repos/jupyter/jupyter_console/hooks","issue_events_url":"https://api.github.com/repos/jupyter/jupyter_console/issues/events{/number}","events_url":"https://api.github.com/repos/jupyter/jupyter_console/events","assignees_url":"https://api.github.com/repos/jupyter/jupyter_console/assignees{/user}","branches_url":"https://api.github.com/repos/jupyter/jupyter_console/branches{/branch}","tags_url":"https://api.github.com/repos/jupyter/jupyter_console/tags","blobs_url":"https://api.github.com/repos/jupyter/jupyter_console/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jupyter/jupyter_console/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jupyter/jupyter_console/git/refs{/sha}","trees_url":"https://api.github.com/repos/jupyter/jupyter_console/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jupyter/jupyter_console/statuses/{sha}","languages_url":"https://api.github.com/repos/jupyter/jupyter_console/languages","stargazers_url":"https://api.github.com/repos/jupyter/jupyter_console/stargazers","contributors_url":"https://api.github.com/repos/jupyter/jupyter_console/contributors","subscribers_url":"https://api.github.com/repos/jupyter/jupyter_console/subscribers","subscription_url":"https://api.github.com/repos/jupyter/jupyter_console/subscription","commits_url":"https://api.github.com/repos/jupyter/jupyter_console/commits{/sha}","git_commits_url":"https://api.github.com/repos/jupyter/jupyter_console/git/commits{/sha}","comments_url":"https://api.github.com/repos/jupyter/jupyter_console/comments{/number}","issue_comment_url":"https://api.github.com/repos/jupyter/jupyter_console/issues/comments{/number}","contents_url":"https://api.github.com/repos/jupyter/jupyter_console/contents/{+path}","compare_url":"https://api.github.com/repos/jupyter/jupyter_console/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jupyter/jupyter_console/merges","archive_url":"https://api.github.com/repos/jupyter/jupyter_console/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jupyter/jupyter_console/downloads","issues_url":"https://api.github.com/repos/jupyter/jupyter_console/issues{/number}","pulls_url":"https://api.github.com/repos/jupyter/jupyter_console/pulls{/number}","milestones_url":"https://api.github.com/repos/jupyter/jupyter_console/milestones{/number}","notifications_url":"https://api.github.com/repos/jupyter/jupyter_console/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jupyter/jupyter_console/labels{/name}","releases_url":"https://api.github.com/repos/jupyter/jupyter_console/releases{/id}","created_at":"2015-04-09T06:58:55Z","updated_at":"2015-11-10T22:21:23Z","pushed_at":"2015-12-05T16:01:43Z","git_url":"git://github.com/jupyter/jupyter_console.git","ssh_url":"git@github.com:jupyter/jupyter_console.git","clone_url":"https://github.com/jupyter/jupyter_console.git","svn_url":"https://github.com/jupyter/jupyter_console","homepage":"http://jupyter-console.readthedocs.org/en/latest/","size":514,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":6,"forks":25,"open_issues":6,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jupyter/jupyter_console/pulls/35"},"html":{"href":"https://github.com/jupyter/jupyter_console/pull/35"},"issue":{"href":"https://api.github.com/repos/jupyter/jupyter_console/issues/35"},"comments":{"href":"https://api.github.com/repos/jupyter/jupyter_console/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/jupyter/jupyter_console/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/jupyter/jupyter_console/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jupyter/jupyter_console/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/jupyter/jupyter_console/statuses/33b96065c73ef08e30b507bf8f7015272ca913b0"}}}}