{"action":"created","issue":{"url":"https://api.github.com/repos/ejeschke/ginga/issues/168","repository_url":"https://api.github.com/repos/ejeschke/ginga","labels_url":"https://api.github.com/repos/ejeschke/ginga/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/ejeschke/ginga/issues/168/comments","events_url":"https://api.github.com/repos/ejeschke/ginga/issues/168/events","html_url":"https://github.com/ejeschke/ginga/issues/168","id":109392520,"number":168,"title":"Testing web browser backend ","user":{"login":"ejeschke","id":1305473,"avatar_url":"https://avatars.githubusercontent.com/u/1305473?v=3","gravatar_id":"","url":"https://api.github.com/users/ejeschke","html_url":"https://github.com/ejeschke","followers_url":"https://api.github.com/users/ejeschke/followers","following_url":"https://api.github.com/users/ejeschke/following{/other_user}","gists_url":"https://api.github.com/users/ejeschke/gists{/gist_id}","starred_url":"https://api.github.com/users/ejeschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejeschke/subscriptions","organizations_url":"https://api.github.com/users/ejeschke/orgs","repos_url":"https://api.github.com/users/ejeschke/repos","events_url":"https://api.github.com/users/ejeschke/events{/privacy}","received_events_url":"https://api.github.com/users/ejeschke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ejeschke/ginga/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ejeschke/ginga/labels/help%20wanted","name":"help wanted","color":"009800"},{"url":"https://api.github.com/repos/ejeschke/ginga/labels/needs%20testing","name":"needs testing","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2015-10-01T21:51:26Z","updated_at":"2016-08-01T04:01:24Z","closed_at":null,"body":"Ginga has a new backend, targeting canvases in HTML5 compliant browsers.  I am looking for early feedback on this capability.  You will need at least commit 97ec3d5e25a4c77498138d3db46cf74b3a20772e or later.\r\n\r\nThe easiest test right now is `example2_pg.py`  Run it like this:\r\n```bash\r\n    $ python .../path/to/ginga/examples/pg/example2_pg.py --loglevel=20 --stderr path/to/some/fitsfile.fits\r\n```\r\nThe very last line of the log output should tell you a URL to visit with an HTML5/websockets compliant browser.  Visit this page and click on the link for the Ginga window.  You should get something that looks like this:\r\n![ginga_web_screenshot](https://cloud.githubusercontent.com/assets/1305473/10234413/226007ba-6830-11e5-8dd4-17d232cb6f34.png)\r\n\r\nBut of course with your FITS file.\r\n\r\n#### Helpful additional packages\r\nFor full functionality with graphical overlays you will need one of {`aggdraw`|`PIL/pillow`||`opencv (cv2)`} modules installed on the server side.  `PIL` is a pretty common library included in many distributions. `aggdraw` provides the most complete experience similar to the native widgets (qt/gtk/tk)--you can get it [here](https://github.com/ejeschke/aggdraw.git); currently it only supports python 2.  `opencv` provides a huge boost to rotation performance, no matter what what widget set you are using.  If you have it installed, add the `--opencv` flag to the command invocation.\r\n\r\n#### Non-local access\r\nThe example program also supports the `--host` and `--port` options for listening on alternate interfaces.  Start the example with:\r\n```bash\r\n--host=  \r\n```\r\ni.e. empty host to have the example listen on all interfaces.  You can then connect from any other system that can connect to this host.\r\n\r\n#### Sharing \r\nWindows are shareable.  This has interesting applications for collaboration.  To test it, simply open another browser window to the same address, possibly from a different host.\r\n\r\n#### Trackpad\r\nIn the example, there is a checkbox for \"I'm using a trackpad\".  Check it if you are, you will have a more pleasant experience zooming the window."},"comment":{"url":"https://api.github.com/repos/ejeschke/ginga/issues/comments/236484678","html_url":"https://github.com/ejeschke/ginga/issues/168#issuecomment-236484678","issue_url":"https://api.github.com/repos/ejeschke/ginga/issues/168","id":236484678,"user":{"login":"ejeschke","id":1305473,"avatar_url":"https://avatars.githubusercontent.com/u/1305473?v=3","gravatar_id":"","url":"https://api.github.com/users/ejeschke","html_url":"https://github.com/ejeschke","followers_url":"https://api.github.com/users/ejeschke/followers","following_url":"https://api.github.com/users/ejeschke/following{/other_user}","gists_url":"https://api.github.com/users/ejeschke/gists{/gist_id}","starred_url":"https://api.github.com/users/ejeschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejeschke/subscriptions","organizations_url":"https://api.github.com/users/ejeschke/orgs","repos_url":"https://api.github.com/users/ejeschke/repos","events_url":"https://api.github.com/users/ejeschke/events{/privacy}","received_events_url":"https://api.github.com/users/ejeschke/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T04:01:24Z","updated_at":"2016-08-01T04:01:24Z","body":"@sosey, can you check whether the problem with the Tk/PIL version is still present?  I've merged #362, which fixed a problem with that particular combination."}}
{"actor":{"display_login":"ejeschke"}}