{"action":"created","comment":{"url":"https://api.github.com/repos/spyder-ide/docrepr/pulls/comments/48456263","id":48456263,"diff_hunk":"@@ -0,0 +1,55 @@\n+# -*- coding: utf-8 -*\n+\n+\"\"\"\n+View object documentation HTML in a separate GUI window.\n+\n+Requires PyQt4 or PySide. Original code by\n+anatoly techtonik <techtonik@gmail.com> is placed in\n+public domain.\n+\n+[ ] position window at the center of the screen\n+    (right now it is middle bottom)\n+[ ] implement lazy loading for PyQt4/PySide\n+[ ] remove external dependency on\n+    IPython.core.oinspect.Inspector\n+\"\"\"\n+\n+\n+import sys\n+\n+try:\n+    from PySide import QtGui, QtWebKit\n+except ImportError:\n+    try:\n+        from PyQt4 import  QtGui, QtWebKit\n+    except ImportError:\n+        sys.stderr.write(\"WebView requires PySide or PyQt4 for GUI window\")","path":"docrepr/webview.py","position":26,"original_position":26,"commit_id":"ceba5f15838ed3e2b341b589e50095eb92510ae8","original_commit_id":"ceba5f15838ed3e2b341b589e50095eb92510ae8","user":{"login":"ccordoba12","id":365293,"avatar_url":"https://avatars.githubusercontent.com/u/365293?v=3","gravatar_id":"","url":"https://api.github.com/users/ccordoba12","html_url":"https://github.com/ccordoba12","followers_url":"https://api.github.com/users/ccordoba12/followers","following_url":"https://api.github.com/users/ccordoba12/following{/other_user}","gists_url":"https://api.github.com/users/ccordoba12/gists{/gist_id}","starred_url":"https://api.github.com/users/ccordoba12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccordoba12/subscriptions","organizations_url":"https://api.github.com/users/ccordoba12/orgs","repos_url":"https://api.github.com/users/ccordoba12/repos","events_url":"https://api.github.com/users/ccordoba12/events{/privacy}","received_events_url":"https://api.github.com/users/ccordoba12/received_events","type":"User","site_admin":false},"body":"Will this message (and the one below) show if users only do\r\n\r\n```python\r\nimport docrepr\r\n```\r\n\r\n?","created_at":"2015-12-27T16:31:41Z","updated_at":"2015-12-27T16:31:41Z","html_url":"https://github.com/spyder-ide/docrepr/pull/8#discussion_r48456263","pull_request_url":"https://api.github.com/repos/spyder-ide/docrepr/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/spyder-ide/docrepr/pulls/comments/48456263"},"html":{"href":"https://github.com/spyder-ide/docrepr/pull/8#discussion_r48456263"},"pull_request":{"href":"https://api.github.com/repos/spyder-ide/docrepr/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/spyder-ide/docrepr/pulls/8","id":43739374,"html_url":"https://github.com/spyder-ide/docrepr/pull/8","diff_url":"https://github.com/spyder-ide/docrepr/pull/8.diff","patch_url":"https://github.com/spyder-ide/docrepr/pull/8.patch","issue_url":"https://api.github.com/repos/spyder-ide/docrepr/issues/8","number":8,"state":"open","locked":false,"title":"Add API for popup GUI doc - docrepr.webview(obj)","user":{"login":"techtonik","id":515889,"avatar_url":"https://avatars.githubusercontent.com/u/515889?v=3","gravatar_id":"","url":"https://api.github.com/users/techtonik","html_url":"https://github.com/techtonik","followers_url":"https://api.github.com/users/techtonik/followers","following_url":"https://api.github.com/users/techtonik/following{/other_user}","gists_url":"https://api.github.com/users/techtonik/gists{/gist_id}","starred_url":"https://api.github.com/users/techtonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techtonik/subscriptions","organizations_url":"https://api.github.com/users/techtonik/orgs","repos_url":"https://api.github.com/users/techtonik/repos","events_url":"https://api.github.com/users/techtonik/events{/privacy}","received_events_url":"https://api.github.com/users/techtonik/received_events","type":"User","site_admin":false},"body":"![image](https://cloud.githubusercontent.com/assets/515889/9574184/f6ccb61e-4fcc-11e5-9721-e124b266789c.png)\r\n\r\nI reduced the window size manually. The perfect size and position needs to be calculated. For now it is default size and position, which is anchored at bottom middle and is too large to my liking.","created_at":"2015-08-31T07:43:47Z","updated_at":"2015-12-27T16:31:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3239a10d7024a1aaa4bde8e8ced91046bf493ddf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spyder-ide/docrepr/pulls/8/commits","review_comments_url":"https://api.github.com/repos/spyder-ide/docrepr/pulls/8/comments","review_comment_url":"https://api.github.com/repos/spyder-ide/docrepr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spyder-ide/docrepr/issues/8/comments","statuses_url":"https://api.github.com/repos/spyder-ide/docrepr/statuses/ceba5f15838ed3e2b341b589e50095eb92510ae8","head":{"label":"techtonik:master","ref":"master","sha":"ceba5f15838ed3e2b341b589e50095eb92510ae8","user":{"login":"techtonik","id":515889,"avatar_url":"https://avatars.githubusercontent.com/u/515889?v=3","gravatar_id":"","url":"https://api.github.com/users/techtonik","html_url":"https://github.com/techtonik","followers_url":"https://api.github.com/users/techtonik/followers","following_url":"https://api.github.com/users/techtonik/following{/other_user}","gists_url":"https://api.github.com/users/techtonik/gists{/gist_id}","starred_url":"https://api.github.com/users/techtonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techtonik/subscriptions","organizations_url":"https://api.github.com/users/techtonik/orgs","repos_url":"https://api.github.com/users/techtonik/repos","events_url":"https://api.github.com/users/techtonik/events{/privacy}","received_events_url":"https://api.github.com/users/techtonik/received_events","type":"User","site_admin":false},"repo":{"id":41416599,"name":"docrepr","full_name":"techtonik/docrepr","owner":{"login":"techtonik","id":515889,"avatar_url":"https://avatars.githubusercontent.com/u/515889?v=3","gravatar_id":"","url":"https://api.github.com/users/techtonik","html_url":"https://github.com/techtonik","followers_url":"https://api.github.com/users/techtonik/followers","following_url":"https://api.github.com/users/techtonik/following{/other_user}","gists_url":"https://api.github.com/users/techtonik/gists{/gist_id}","starred_url":"https://api.github.com/users/techtonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techtonik/subscriptions","organizations_url":"https://api.github.com/users/techtonik/orgs","repos_url":"https://api.github.com/users/techtonik/repos","events_url":"https://api.github.com/users/techtonik/events{/privacy}","received_events_url":"https://api.github.com/users/techtonik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/techtonik/docrepr","description":"Generate enriched representations for docstrings","fork":true,"url":"https://api.github.com/repos/techtonik/docrepr","forks_url":"https://api.github.com/repos/techtonik/docrepr/forks","keys_url":"https://api.github.com/repos/techtonik/docrepr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/techtonik/docrepr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/techtonik/docrepr/teams","hooks_url":"https://api.github.com/repos/techtonik/docrepr/hooks","issue_events_url":"https://api.github.com/repos/techtonik/docrepr/issues/events{/number}","events_url":"https://api.github.com/repos/techtonik/docrepr/events","assignees_url":"https://api.github.com/repos/techtonik/docrepr/assignees{/user}","branches_url":"https://api.github.com/repos/techtonik/docrepr/branches{/branch}","tags_url":"https://api.github.com/repos/techtonik/docrepr/tags","blobs_url":"https://api.github.com/repos/techtonik/docrepr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/techtonik/docrepr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/techtonik/docrepr/git/refs{/sha}","trees_url":"https://api.github.com/repos/techtonik/docrepr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/techtonik/docrepr/statuses/{sha}","languages_url":"https://api.github.com/repos/techtonik/docrepr/languages","stargazers_url":"https://api.github.com/repos/techtonik/docrepr/stargazers","contributors_url":"https://api.github.com/repos/techtonik/docrepr/contributors","subscribers_url":"https://api.github.com/repos/techtonik/docrepr/subscribers","subscription_url":"https://api.github.com/repos/techtonik/docrepr/subscription","commits_url":"https://api.github.com/repos/techtonik/docrepr/commits{/sha}","git_commits_url":"https://api.github.com/repos/techtonik/docrepr/git/commits{/sha}","comments_url":"https://api.github.com/repos/techtonik/docrepr/comments{/number}","issue_comment_url":"https://api.github.com/repos/techtonik/docrepr/issues/comments{/number}","contents_url":"https://api.github.com/repos/techtonik/docrepr/contents/{+path}","compare_url":"https://api.github.com/repos/techtonik/docrepr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/techtonik/docrepr/merges","archive_url":"https://api.github.com/repos/techtonik/docrepr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/techtonik/docrepr/downloads","issues_url":"https://api.github.com/repos/techtonik/docrepr/issues{/number}","pulls_url":"https://api.github.com/repos/techtonik/docrepr/pulls{/number}","milestones_url":"https://api.github.com/repos/techtonik/docrepr/milestones{/number}","notifications_url":"https://api.github.com/repos/techtonik/docrepr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/techtonik/docrepr/labels{/name}","releases_url":"https://api.github.com/repos/techtonik/docrepr/releases{/id}","created_at":"2015-08-26T09:18:59Z","updated_at":"2015-08-26T09:18:59Z","pushed_at":"2015-08-31T07:41:34Z","git_url":"git://github.com/techtonik/docrepr.git","ssh_url":"git@github.com:techtonik/docrepr.git","clone_url":"https://github.com/techtonik/docrepr.git","svn_url":"https://github.com/techtonik/docrepr","homepage":"","size":389,"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":"spyder-ide:master","ref":"master","sha":"13bb14e24d4aab22846589a9c12e5b7de9c9f189","user":{"login":"spyder-ide","id":1284937,"avatar_url":"https://avatars.githubusercontent.com/u/1284937?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-ide","html_url":"https://github.com/spyder-ide","followers_url":"https://api.github.com/users/spyder-ide/followers","following_url":"https://api.github.com/users/spyder-ide/following{/other_user}","gists_url":"https://api.github.com/users/spyder-ide/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-ide/subscriptions","organizations_url":"https://api.github.com/users/spyder-ide/orgs","repos_url":"https://api.github.com/users/spyder-ide/repos","events_url":"https://api.github.com/users/spyder-ide/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-ide/received_events","type":"Organization","site_admin":false},"repo":{"id":38880519,"name":"docrepr","full_name":"spyder-ide/docrepr","owner":{"login":"spyder-ide","id":1284937,"avatar_url":"https://avatars.githubusercontent.com/u/1284937?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-ide","html_url":"https://github.com/spyder-ide","followers_url":"https://api.github.com/users/spyder-ide/followers","following_url":"https://api.github.com/users/spyder-ide/following{/other_user}","gists_url":"https://api.github.com/users/spyder-ide/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-ide/subscriptions","organizations_url":"https://api.github.com/users/spyder-ide/orgs","repos_url":"https://api.github.com/users/spyder-ide/repos","events_url":"https://api.github.com/users/spyder-ide/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-ide/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spyder-ide/docrepr","description":"Generate enriched representations for docstrings","fork":false,"url":"https://api.github.com/repos/spyder-ide/docrepr","forks_url":"https://api.github.com/repos/spyder-ide/docrepr/forks","keys_url":"https://api.github.com/repos/spyder-ide/docrepr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spyder-ide/docrepr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spyder-ide/docrepr/teams","hooks_url":"https://api.github.com/repos/spyder-ide/docrepr/hooks","issue_events_url":"https://api.github.com/repos/spyder-ide/docrepr/issues/events{/number}","events_url":"https://api.github.com/repos/spyder-ide/docrepr/events","assignees_url":"https://api.github.com/repos/spyder-ide/docrepr/assignees{/user}","branches_url":"https://api.github.com/repos/spyder-ide/docrepr/branches{/branch}","tags_url":"https://api.github.com/repos/spyder-ide/docrepr/tags","blobs_url":"https://api.github.com/repos/spyder-ide/docrepr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spyder-ide/docrepr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spyder-ide/docrepr/git/refs{/sha}","trees_url":"https://api.github.com/repos/spyder-ide/docrepr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spyder-ide/docrepr/statuses/{sha}","languages_url":"https://api.github.com/repos/spyder-ide/docrepr/languages","stargazers_url":"https://api.github.com/repos/spyder-ide/docrepr/stargazers","contributors_url":"https://api.github.com/repos/spyder-ide/docrepr/contributors","subscribers_url":"https://api.github.com/repos/spyder-ide/docrepr/subscribers","subscription_url":"https://api.github.com/repos/spyder-ide/docrepr/subscription","commits_url":"https://api.github.com/repos/spyder-ide/docrepr/commits{/sha}","git_commits_url":"https://api.github.com/repos/spyder-ide/docrepr/git/commits{/sha}","comments_url":"https://api.github.com/repos/spyder-ide/docrepr/comments{/number}","issue_comment_url":"https://api.github.com/repos/spyder-ide/docrepr/issues/comments{/number}","contents_url":"https://api.github.com/repos/spyder-ide/docrepr/contents/{+path}","compare_url":"https://api.github.com/repos/spyder-ide/docrepr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spyder-ide/docrepr/merges","archive_url":"https://api.github.com/repos/spyder-ide/docrepr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spyder-ide/docrepr/downloads","issues_url":"https://api.github.com/repos/spyder-ide/docrepr/issues{/number}","pulls_url":"https://api.github.com/repos/spyder-ide/docrepr/pulls{/number}","milestones_url":"https://api.github.com/repos/spyder-ide/docrepr/milestones{/number}","notifications_url":"https://api.github.com/repos/spyder-ide/docrepr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spyder-ide/docrepr/labels{/name}","releases_url":"https://api.github.com/repos/spyder-ide/docrepr/releases{/id}","created_at":"2015-07-10T12:59:01Z","updated_at":"2015-08-16T21:39:50Z","pushed_at":"2015-09-02T23:51:26Z","git_url":"git://github.com/spyder-ide/docrepr.git","ssh_url":"git@github.com:spyder-ide/docrepr.git","clone_url":"https://github.com/spyder-ide/docrepr.git","svn_url":"https://github.com/spyder-ide/docrepr","homepage":"","size":438,"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":6,"forks":2,"open_issues":6,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spyder-ide/docrepr/pulls/8"},"html":{"href":"https://github.com/spyder-ide/docrepr/pull/8"},"issue":{"href":"https://api.github.com/repos/spyder-ide/docrepr/issues/8"},"comments":{"href":"https://api.github.com/repos/spyder-ide/docrepr/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/spyder-ide/docrepr/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/spyder-ide/docrepr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spyder-ide/docrepr/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/spyder-ide/docrepr/statuses/ceba5f15838ed3e2b341b589e50095eb92510ae8"}}}}