{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaGizmos/WebIO.jl/issues/90","repository_url":"https://api.github.com/repos/JuliaGizmos/WebIO.jl","labels_url":"https://api.github.com/repos/JuliaGizmos/WebIO.jl/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/JuliaGizmos/WebIO.jl/issues/90/comments","events_url":"https://api.github.com/repos/JuliaGizmos/WebIO.jl/issues/90/events","html_url":"https://github.com/JuliaGizmos/WebIO.jl/issues/90","id":309767147,"number":90,"title":"IJulia via another machine","user":{"login":"cstjean","id":8622776,"avatar_url":"https://avatars0.githubusercontent.com/u/8622776?v=4","gravatar_id":"","url":"https://api.github.com/users/cstjean","html_url":"https://github.com/cstjean","followers_url":"https://api.github.com/users/cstjean/followers","following_url":"https://api.github.com/users/cstjean/following{/other_user}","gists_url":"https://api.github.com/users/cstjean/gists{/gist_id}","starred_url":"https://api.github.com/users/cstjean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstjean/subscriptions","organizations_url":"https://api.github.com/users/cstjean/orgs","repos_url":"https://api.github.com/users/cstjean/repos","events_url":"https://api.github.com/users/cstjean/events{/privacy}","received_events_url":"https://api.github.com/users/cstjean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-29T14:02:31Z","updated_at":"2018-03-29T15:25:44Z","closed_at":null,"author_association":"NONE","body":"I normally run my notebook server via `jupyter notebook --ip=192.168.128.182`. This allows me to send notebook links to colleagues in my local network, eg. `http://192.168.128.182:8888/notebooks/Test_WebIO.ipynb`.  All the examples from the WebIO.jl README work, but if I run\r\n\r\n```julia\r\nusing PlotlyWebIO\r\n\r\nsc = PlotlyWebIO.scatter(x=[1,2], y=[2,3])\r\nwpl = PlotlyWebIO.WebIOPlot(sc)\r\nwpl.scope\r\n```\r\n\r\nI get no output. JS console says `Error: The operation was aborted. Instantiating http://192.168.128.182:8888/pkg/PlotlyJS/plotly-latest.min.js`. And the notebook server in the terminal says:\r\n\r\n```\r\n[E 09:47:05.639 NotebookApp] Uncaught exception GET /pkg/PlotlyJS/plotly-latest.min.js (192.168.128.198)\r\n    HTTPServerRequest(protocol='http', host='192.168.128.182:8888', method='GET', uri='/pkg/PlotlyJS/plotly-latest.min.js', version='HTTP/1.1', remote_ip='192.168.128.198', headers={'Host': '192.168.128.182:8888', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0', 'Accept': 'application/x-es-module, */*', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Referer': 'http://192.168.128.182:8888/notebooks/advisory_notebooks/Test_WebIO-Copy1.ipynb', 'Origin': 'http://192.168.128.182:8888', 'Connection': 'keep-alive'})\r\n    Traceback (most recent call last):\r\n      File \"/home/cedric/anaconda3/lib/python3.6/site-packages/tornado/web.py\", line 1513, in _execute\r\n        self.finish()\r\n      File \"/home/cedric/anaconda3/lib/python3.6/site-packages/tornado/web.py\", line 992, in finish\r\n        self.request.finish()\r\n      File \"/home/cedric/anaconda3/lib/python3.6/site-packages/tornado/httputil.py\", line 419, in finish\r\n        self.connection.finish()\r\n      File \"/home/cedric/anaconda3/lib/python3.6/site-packages/tornado/http1connection.py\", line 448, in finish\r\n        self._expected_content_remaining)\r\n    tornado.httputil.HTTPOutputError: Tried to write 2343103 bytes less than Content-Length\r\n[E 09:47:05.640 NotebookApp] Cannot send error response after headers written\r\n[E 09:47:05.641 NotebookApp] Uncaught exception GET /pkg/PlotlyWebIO/plotly_webio_bundle.js (192.168.128.198)\r\n    HTTPServerRequest(protocol='http', host='192.168.128.182:8888', method='GET', uri='/pkg/PlotlyWebIO/plotly_webio_bundle.js', version='HTTP/1.1', remote_ip='192.168.128.198', headers={'Host': '192.168.128.182:8888', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0', 'Accept': 'application/x-es-module, */*', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Referer': 'http://192.168.128.182:8888/notebooks/advisory_notebooks/Test_WebIO-Copy1.ipynb', 'Origin': 'http://192.168.128.182:8888', 'Connection': 'keep-alive'})\r\n    Traceback (most recent call last):\r\n      File \"/home/cedric/anaconda3/lib/python3.6/site-packages/tornado/web.py\", line 1513, in _execute\r\n        self.finish()\r\n      File \"/home/cedric/anaconda3/lib/python3.6/site-packages/tornado/web.py\", line 992, in finish\r\n        self.request.finish()\r\n      File \"/home/cedric/anaconda3/lib/python3.6/site-packages/tornado/httputil.py\", line 419, in finish\r\n        self.connection.finish()\r\n      File \"/home/cedric/anaconda3/lib/python3.6/site-packages/tornado/http1connection.py\", line 448, in finish\r\n        self._expected_content_remaining)\r\n    tornado.httputil.HTTPOutputError: Tried to write 137408 bytes less than Content-Length\r\n[E 09:47:05.641 NotebookApp] Cannot send error response after headers written\r\n```\r\n\r\nFWIW, I'm running the server on a Linux machine, and the client is on Windows.\r\n\r\nAny idea what might be wrong? PlotlyWebIO's setup code is [here](https://github.com/sglyon/PlotlyWebIO.jl/blob/master/src/plot_type.jl#L21-L112). \r\n\r\nMight be related to #88. I tried both the latest release, and this morning's latest master.\r\n\r\ncc. @sglyon"},"comment":{"url":"https://api.github.com/repos/JuliaGizmos/WebIO.jl/issues/comments/377272430","html_url":"https://github.com/JuliaGizmos/WebIO.jl/issues/90#issuecomment-377272430","issue_url":"https://api.github.com/repos/JuliaGizmos/WebIO.jl/issues/90","id":377272430,"user":{"login":"rdeits","id":591886,"avatar_url":"https://avatars0.githubusercontent.com/u/591886?v=4","gravatar_id":"","url":"https://api.github.com/users/rdeits","html_url":"https://github.com/rdeits","followers_url":"https://api.github.com/users/rdeits/followers","following_url":"https://api.github.com/users/rdeits/following{/other_user}","gists_url":"https://api.github.com/users/rdeits/gists{/gist_id}","starred_url":"https://api.github.com/users/rdeits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdeits/subscriptions","organizations_url":"https://api.github.com/users/rdeits/orgs","repos_url":"https://api.github.com/users/rdeits/repos","events_url":"https://api.github.com/users/rdeits/events{/privacy}","received_events_url":"https://api.github.com/users/rdeits/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T15:25:44Z","updated_at":"2018-03-29T15:25:44Z","author_association":"COLLABORATOR","body":"Ok, I still think you're running into #57 . The `/pkg` URLs are handled by a jupyter server extension that gets installed when you `Pkg.build(\"WebIO\")`. Could you please try:\r\n\r\n* `Pkg.build(\"WebIO\")`\r\n* Restart the jupyter server on your remote host (that is, restart the whole notebook server, not just the kernel)\r\n* try your plotly example again\r\n\r\nIt's possible that you have the updated code already but if you haven't restarted jupyter then it may not have taken effect. "}}
{"actor":{"display_login":"rdeits"}}