{"action":"created","comment":{"url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/comments/40971990","id":40971990,"diff_hunk":"@@ -10,17 +10,18 @@ class LivyClient(object):\n \n     def __init__(self, session):\n         self._session = session\n+        self._session.create_sql_context()","path":"remotespark/livyclientlib/livyclient.py","position":4,"original_position":4,"commit_id":"a460e138f9d1a840e62a76e8289b94c30955a605","original_commit_id":"a460e138f9d1a840e62a76e8289b94c30955a605","user":{"login":"alope107","id":9411388,"avatar_url":"https://avatars.githubusercontent.com/u/9411388?v=3","gravatar_id":"","url":"https://api.github.com/users/alope107","html_url":"https://github.com/alope107","followers_url":"https://api.github.com/users/alope107/followers","following_url":"https://api.github.com/users/alope107/following{/other_user}","gists_url":"https://api.github.com/users/alope107/gists{/gist_id}","starred_url":"https://api.github.com/users/alope107/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alope107/subscriptions","organizations_url":"https://api.github.com/users/alope107/orgs","repos_url":"https://api.github.com/users/alope107/repos","events_url":"https://api.github.com/users/alope107/events{/privacy}","received_events_url":"https://api.github.com/users/alope107/received_events","type":"User","site_admin":false},"body":"How expensive is this operation? It may be worthwhile to lazily delay this until an operation requiring the SQL context is requested.","created_at":"2015-10-01T22:03:43Z","updated_at":"2015-10-01T22:03:43Z","html_url":"https://github.com/jupyter-incubator/sparkmagic/pull/20#discussion_r40971990","pull_request_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/comments/40971990"},"html":{"href":"https://github.com/jupyter-incubator/sparkmagic/pull/20#discussion_r40971990"},"pull_request":{"href":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/20","id":46479555,"html_url":"https://github.com/jupyter-incubator/sparkmagic/pull/20","diff_url":"https://github.com/jupyter-incubator/sparkmagic/pull/20.diff","patch_url":"https://github.com/jupyter-incubator/sparkmagic/pull/20.patch","issue_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/20","number":20,"state":"open","locked":false,"title":"Added ability to return pandas dataframes from SparkSQL for Python and Scala","user":{"login":"aggFTW","id":654204,"avatar_url":"https://avatars.githubusercontent.com/u/654204?v=3","gravatar_id":"","url":"https://api.github.com/users/aggFTW","html_url":"https://github.com/aggFTW","followers_url":"https://api.github.com/users/aggFTW/followers","following_url":"https://api.github.com/users/aggFTW/following{/other_user}","gists_url":"https://api.github.com/users/aggFTW/gists{/gist_id}","starred_url":"https://api.github.com/users/aggFTW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aggFTW/subscriptions","organizations_url":"https://api.github.com/users/aggFTW/orgs","repos_url":"https://api.github.com/users/aggFTW/repos","events_url":"https://api.github.com/users/aggFTW/events{/privacy}","received_events_url":"https://api.github.com/users/aggFTW/received_events","type":"User","site_admin":false},"body":"With unit tests. Also, made unit tests run faster.","created_at":"2015-10-01T02:34:24Z","updated_at":"2015-10-01T22:03:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd10d3f1e5e8328e06b30c7dae7bec2ef20e30c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/20/commits","review_comments_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/20/comments","review_comment_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/20/comments","statuses_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/statuses/a460e138f9d1a840e62a76e8289b94c30955a605","head":{"label":"aggFTW:visualpipeline2","ref":"visualpipeline2","sha":"a460e138f9d1a840e62a76e8289b94c30955a605","user":{"login":"aggFTW","id":654204,"avatar_url":"https://avatars.githubusercontent.com/u/654204?v=3","gravatar_id":"","url":"https://api.github.com/users/aggFTW","html_url":"https://github.com/aggFTW","followers_url":"https://api.github.com/users/aggFTW/followers","following_url":"https://api.github.com/users/aggFTW/following{/other_user}","gists_url":"https://api.github.com/users/aggFTW/gists{/gist_id}","starred_url":"https://api.github.com/users/aggFTW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aggFTW/subscriptions","organizations_url":"https://api.github.com/users/aggFTW/orgs","repos_url":"https://api.github.com/users/aggFTW/repos","events_url":"https://api.github.com/users/aggFTW/events{/privacy}","received_events_url":"https://api.github.com/users/aggFTW/received_events","type":"User","site_admin":false},"repo":{"id":43033976,"name":"sparkmagic","full_name":"aggFTW/sparkmagic","owner":{"login":"aggFTW","id":654204,"avatar_url":"https://avatars.githubusercontent.com/u/654204?v=3","gravatar_id":"","url":"https://api.github.com/users/aggFTW","html_url":"https://github.com/aggFTW","followers_url":"https://api.github.com/users/aggFTW/followers","following_url":"https://api.github.com/users/aggFTW/following{/other_user}","gists_url":"https://api.github.com/users/aggFTW/gists{/gist_id}","starred_url":"https://api.github.com/users/aggFTW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aggFTW/subscriptions","organizations_url":"https://api.github.com/users/aggFTW/orgs","repos_url":"https://api.github.com/users/aggFTW/repos","events_url":"https://api.github.com/users/aggFTW/events{/privacy}","received_events_url":"https://api.github.com/users/aggFTW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aggFTW/sparkmagic","description":"IPython magics for working with remote Spark clusters","fork":true,"url":"https://api.github.com/repos/aggFTW/sparkmagic","forks_url":"https://api.github.com/repos/aggFTW/sparkmagic/forks","keys_url":"https://api.github.com/repos/aggFTW/sparkmagic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aggFTW/sparkmagic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aggFTW/sparkmagic/teams","hooks_url":"https://api.github.com/repos/aggFTW/sparkmagic/hooks","issue_events_url":"https://api.github.com/repos/aggFTW/sparkmagic/issues/events{/number}","events_url":"https://api.github.com/repos/aggFTW/sparkmagic/events","assignees_url":"https://api.github.com/repos/aggFTW/sparkmagic/assignees{/user}","branches_url":"https://api.github.com/repos/aggFTW/sparkmagic/branches{/branch}","tags_url":"https://api.github.com/repos/aggFTW/sparkmagic/tags","blobs_url":"https://api.github.com/repos/aggFTW/sparkmagic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aggFTW/sparkmagic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aggFTW/sparkmagic/git/refs{/sha}","trees_url":"https://api.github.com/repos/aggFTW/sparkmagic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aggFTW/sparkmagic/statuses/{sha}","languages_url":"https://api.github.com/repos/aggFTW/sparkmagic/languages","stargazers_url":"https://api.github.com/repos/aggFTW/sparkmagic/stargazers","contributors_url":"https://api.github.com/repos/aggFTW/sparkmagic/contributors","subscribers_url":"https://api.github.com/repos/aggFTW/sparkmagic/subscribers","subscription_url":"https://api.github.com/repos/aggFTW/sparkmagic/subscription","commits_url":"https://api.github.com/repos/aggFTW/sparkmagic/commits{/sha}","git_commits_url":"https://api.github.com/repos/aggFTW/sparkmagic/git/commits{/sha}","comments_url":"https://api.github.com/repos/aggFTW/sparkmagic/comments{/number}","issue_comment_url":"https://api.github.com/repos/aggFTW/sparkmagic/issues/comments{/number}","contents_url":"https://api.github.com/repos/aggFTW/sparkmagic/contents/{+path}","compare_url":"https://api.github.com/repos/aggFTW/sparkmagic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aggFTW/sparkmagic/merges","archive_url":"https://api.github.com/repos/aggFTW/sparkmagic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aggFTW/sparkmagic/downloads","issues_url":"https://api.github.com/repos/aggFTW/sparkmagic/issues{/number}","pulls_url":"https://api.github.com/repos/aggFTW/sparkmagic/pulls{/number}","milestones_url":"https://api.github.com/repos/aggFTW/sparkmagic/milestones{/number}","notifications_url":"https://api.github.com/repos/aggFTW/sparkmagic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aggFTW/sparkmagic/labels{/name}","releases_url":"https://api.github.com/repos/aggFTW/sparkmagic/releases{/id}","created_at":"2015-09-24T00:00:48Z","updated_at":"2015-09-24T00:00:48Z","pushed_at":"2015-10-01T02:33:03Z","git_url":"git://github.com/aggFTW/sparkmagic.git","ssh_url":"git@github.com:aggFTW/sparkmagic.git","clone_url":"https://github.com/aggFTW/sparkmagic.git","svn_url":"https://github.com/aggFTW/sparkmagic","homepage":null,"size":139,"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-incubator:master","ref":"master","sha":"e6c237ca58681f4bbb989d4ff2f4c3d047864472","user":{"login":"jupyter-incubator","id":14002361,"avatar_url":"https://avatars.githubusercontent.com/u/14002361?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter-incubator","html_url":"https://github.com/jupyter-incubator","followers_url":"https://api.github.com/users/jupyter-incubator/followers","following_url":"https://api.github.com/users/jupyter-incubator/following{/other_user}","gists_url":"https://api.github.com/users/jupyter-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter-incubator/subscriptions","organizations_url":"https://api.github.com/users/jupyter-incubator/orgs","repos_url":"https://api.github.com/users/jupyter-incubator/repos","events_url":"https://api.github.com/users/jupyter-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":42875585,"name":"sparkmagic","full_name":"jupyter-incubator/sparkmagic","owner":{"login":"jupyter-incubator","id":14002361,"avatar_url":"https://avatars.githubusercontent.com/u/14002361?v=3","gravatar_id":"","url":"https://api.github.com/users/jupyter-incubator","html_url":"https://github.com/jupyter-incubator","followers_url":"https://api.github.com/users/jupyter-incubator/followers","following_url":"https://api.github.com/users/jupyter-incubator/following{/other_user}","gists_url":"https://api.github.com/users/jupyter-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/jupyter-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jupyter-incubator/subscriptions","organizations_url":"https://api.github.com/users/jupyter-incubator/orgs","repos_url":"https://api.github.com/users/jupyter-incubator/repos","events_url":"https://api.github.com/users/jupyter-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/jupyter-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jupyter-incubator/sparkmagic","description":"IPython magics for working with remote Spark clusters","fork":false,"url":"https://api.github.com/repos/jupyter-incubator/sparkmagic","forks_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/forks","keys_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/teams","hooks_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/hooks","issue_events_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/events{/number}","events_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/events","assignees_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/assignees{/user}","branches_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/branches{/branch}","tags_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/tags","blobs_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/git/refs{/sha}","trees_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/statuses/{sha}","languages_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/languages","stargazers_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/stargazers","contributors_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/contributors","subscribers_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/subscribers","subscription_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/subscription","commits_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/commits{/sha}","git_commits_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/git/commits{/sha}","comments_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/comments{/number}","issue_comment_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/comments{/number}","contents_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/contents/{+path}","compare_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/merges","archive_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/downloads","issues_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues{/number}","pulls_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls{/number}","milestones_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/milestones{/number}","notifications_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/labels{/name}","releases_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/releases{/id}","created_at":"2015-09-21T15:35:25Z","updated_at":"2015-10-01T07:52:19Z","pushed_at":"2015-10-01T02:34:25Z","git_url":"git://github.com/jupyter-incubator/sparkmagic.git","ssh_url":"git@github.com:jupyter-incubator/sparkmagic.git","clone_url":"https://github.com/jupyter-incubator/sparkmagic.git","svn_url":"https://github.com/jupyter-incubator/sparkmagic","homepage":null,"size":231,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":10,"forks":2,"open_issues":10,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/20"},"html":{"href":"https://github.com/jupyter-incubator/sparkmagic/pull/20"},"issue":{"href":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/20"},"comments":{"href":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jupyter-incubator/sparkmagic/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/jupyter-incubator/sparkmagic/statuses/a460e138f9d1a840e62a76e8289b94c30955a605"}}}}