{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/178","labels_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/178/comments","events_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/178/events","html_url":"https://github.com/apache/incubator-zeppelin/pull/178","id":98695463,"number":178,"title":"[ZEPPELIN-185] ZeppelinContext methods like z.show are not working with DataFrame in pyspark","user":{"login":"felixcheung","id":8969467,"avatar_url":"https://avatars.githubusercontent.com/u/8969467?v=3","gravatar_id":"","url":"https://api.github.com/users/felixcheung","html_url":"https://github.com/felixcheung","followers_url":"https://api.github.com/users/felixcheung/followers","following_url":"https://api.github.com/users/felixcheung/following{/other_user}","gists_url":"https://api.github.com/users/felixcheung/gists{/gist_id}","starred_url":"https://api.github.com/users/felixcheung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixcheung/subscriptions","organizations_url":"https://api.github.com/users/felixcheung/orgs","repos_url":"https://api.github.com/users/felixcheung/repos","events_url":"https://api.github.com/users/felixcheung/events{/privacy}","received_events_url":"https://api.github.com/users/felixcheung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-03T08:21:45Z","updated_at":"2015-08-03T08:23:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/178","html_url":"https://github.com/apache/incubator-zeppelin/pull/178","diff_url":"https://github.com/apache/incubator-zeppelin/pull/178.diff","patch_url":"https://github.com/apache/incubator-zeppelin/pull/178.patch"},"body":"(opening a new PR to have a start history)\r\nIt turns out the error is caused by Py4J trying to auto convert the DataFrame, which fails since it can only do that for simple types.\r\nInstead of getting conversion to work, the better approach is to pass along the inner java object instead. To do that we intercept the call on the python side with a wrapper object instead of letting Py4J handle it.\r\nAs per comment, adding container/dictionary methods to allow for string passing using ZeppelinContext"},"comment":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/comments/127162079","html_url":"https://github.com/apache/incubator-zeppelin/pull/178#issuecomment-127162079","issue_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/178","id":127162079,"user":{"login":"felixcheung","id":8969467,"avatar_url":"https://avatars.githubusercontent.com/u/8969467?v=3","gravatar_id":"","url":"https://api.github.com/users/felixcheung","html_url":"https://github.com/felixcheung","followers_url":"https://api.github.com/users/felixcheung/followers","following_url":"https://api.github.com/users/felixcheung/following{/other_user}","gists_url":"https://api.github.com/users/felixcheung/gists{/gist_id}","starred_url":"https://api.github.com/users/felixcheung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixcheung/subscriptions","organizations_url":"https://api.github.com/users/felixcheung/orgs","repos_url":"https://api.github.com/users/felixcheung/repos","events_url":"https://api.github.com/users/felixcheung/events{/privacy}","received_events_url":"https://api.github.com/users/felixcheung/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T08:23:35Z","updated_at":"2015-08-03T08:23:35Z","body":"This is how it looks like\r\n![image](https://cloud.githubusercontent.com/assets/8969467/9033660/136a1e0c-397e-11e5-9fce-4e934d104b89.png)\r\n\r\nAnd value passing between interpreters - and nicer syntax in Python\r\n![image](https://cloud.githubusercontent.com/assets/8969467/9033684/413c591c-397e-11e5-8308-e34041a18cda.png)\r\n"}}