{"action":"created","issue":{"url":"https://api.github.com/repos/gijzelaerr/js9notebook/issues/5","repository_url":"https://api.github.com/repos/gijzelaerr/js9notebook","labels_url":"https://api.github.com/repos/gijzelaerr/js9notebook/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/gijzelaerr/js9notebook/issues/5/comments","events_url":"https://api.github.com/repos/gijzelaerr/js9notebook/issues/5/events","html_url":"https://github.com/gijzelaerr/js9notebook/issues/5","id":338360421,"node_id":"MDU6SXNzdWUzMzgzNjA0MjE=","number":5,"title":"js9Helper / fits2fits woes","user":{"login":"o-smirnov","id":6470079,"node_id":"MDQ6VXNlcjY0NzAwNzk=","avatar_url":"https://avatars2.githubusercontent.com/u/6470079?v=4","gravatar_id":"","url":"https://api.github.com/users/o-smirnov","html_url":"https://github.com/o-smirnov","followers_url":"https://api.github.com/users/o-smirnov/followers","following_url":"https://api.github.com/users/o-smirnov/following{/other_user}","gists_url":"https://api.github.com/users/o-smirnov/gists{/gist_id}","starred_url":"https://api.github.com/users/o-smirnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o-smirnov/subscriptions","organizations_url":"https://api.github.com/users/o-smirnov/orgs","repos_url":"https://api.github.com/users/o-smirnov/repos","events_url":"https://api.github.com/users/o-smirnov/events{/privacy}","received_events_url":"https://api.github.com/users/o-smirnov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":88,"created_at":"2018-07-04T19:18:57Z","updated_at":"2018-08-04T12:56:28Z","closed_at":null,"author_association":"NONE","body":"Sorry @ericmandel, I'm struggling to get fits2fits to work, or wrap my head around it.\r\n\r\nFirstly, a conceptual problem. [Here you say](https://github.com/gijzelaerr/js9notebook/issues/2#issuecomment-402512755) \"the browser knows to ask the js9 helper to extract a smaller file for display from the original file (which is one the server)\", but in [this comment](https://github.com/gijzelaerr/js9notebook/issues/2#issuecomment-402473578) you tell me to \"...Using js9prefs.js in Jupyter, you'll need to turn off the helper\". So if I do that, who's the browser going to ask for a smaller file?\r\n\r\nI have tried to re-enable the helper -- but when I have ``JS9.Load(\"my_fits_file.fits\", {fits2fits:true})`` in my script, I get this on the console:\r\n\r\n```\r\njs9.min.js:410 Uncaught TypeError: Cannot read property 'image' of undefined\r\n    at Object.b.fits2RepFile (VM193 js9.min.js:410)\r\n    at Object.Load (VM193 js9.min.js:587)\r\n    at loadIm (3C147-CD-LO-spw0-s7-lwimager.fullrest.js9-inline.html:44)\r\nb.fits2RepFile @ js9.min.js:410\r\n(anonymous) @ js9.min.js:587\r\nloadIm @ 3C147-CD-LO-spw0-s7-lwimager.fullrest.js9-inline.html:44\r\nsetTimeout (async)\r\n(anonymous) @ 3C147-CD-LO-spw0-s7-lwimager.fullrest.js9-inline.html:43\r\n```\r\n\r\nA simple ``JS9.Load(\"my_fits_file.fits\")`` works fine. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gijzelaerr/js9notebook/issues/comments/410447720","html_url":"https://github.com/gijzelaerr/js9notebook/issues/5#issuecomment-410447720","issue_url":"https://api.github.com/repos/gijzelaerr/js9notebook/issues/5","id":410447720,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDQ0NzcyMA==","user":{"login":"ericmandel","id":3028875,"node_id":"MDQ6VXNlcjMwMjg4NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/3028875?v=4","gravatar_id":"","url":"https://api.github.com/users/ericmandel","html_url":"https://github.com/ericmandel","followers_url":"https://api.github.com/users/ericmandel/followers","following_url":"https://api.github.com/users/ericmandel/following{/other_user}","gists_url":"https://api.github.com/users/ericmandel/gists{/gist_id}","starred_url":"https://api.github.com/users/ericmandel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericmandel/subscriptions","organizations_url":"https://api.github.com/users/ericmandel/orgs","repos_url":"https://api.github.com/users/ericmandel/repos","events_url":"https://api.github.com/users/ericmandel/events{/privacy}","received_events_url":"https://api.github.com/users/ericmandel/received_events","type":"User","site_admin":false},"created_at":"2018-08-04T12:56:28Z","updated_at":"2018-08-04T12:56:28Z","author_association":"NONE","body":"> What really intrigues me is that roughly 20% of the time it will connect successfully....\r\n\r\nIs the helper started up on the fly?"}}
{"actor":{"display_login":"ericmandel"}}