{"action":"created","issue":{"url":"https://api.github.com/repos/n-riesco/ijavascript/issues/66","repository_url":"https://api.github.com/repos/n-riesco/ijavascript","labels_url":"https://api.github.com/repos/n-riesco/ijavascript/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/n-riesco/ijavascript/issues/66/comments","events_url":"https://api.github.com/repos/n-riesco/ijavascript/issues/66/events","html_url":"https://github.com/n-riesco/ijavascript/issues/66","id":144429745,"number":66,"title":"Use of plotly-notebook-js to draw charts","user":{"login":"eugenesvk","id":12956286,"avatar_url":"https://avatars.githubusercontent.com/u/12956286?v=3","gravatar_id":"","url":"https://api.github.com/users/eugenesvk","html_url":"https://github.com/eugenesvk","followers_url":"https://api.github.com/users/eugenesvk/followers","following_url":"https://api.github.com/users/eugenesvk/following{/other_user}","gists_url":"https://api.github.com/users/eugenesvk/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenesvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenesvk/subscriptions","organizations_url":"https://api.github.com/users/eugenesvk/orgs","repos_url":"https://api.github.com/users/eugenesvk/repos","events_url":"https://api.github.com/users/eugenesvk/events{/privacy}","received_events_url":"https://api.github.com/users/eugenesvk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-03-30T00:55:20Z","updated_at":"2016-03-30T14:57:23Z","closed_at":null,"body":"I was trying to use jupyter notebook with a plotly JS addon [plotly-notebook-js](https://github.com/plotly/plotly-notebook-js) to be able to draw plotly charts locally using IJavascript engine.\r\n\r\nHowever, I realized that it requires this addon to be installed locally in the path I launch `jupyter notebook` from (see this [issue](https://github.com/plotly/plotly-notebook-js/issues/1#issuecomment-203008741) for more details).\r\n\r\nAs far as I understood from [notebook issue](https://github.com/jupyter/notebook/issues/1274#issuecomment-203168879) IJavascript is responsible for this. So I'd like to request a feature that would read global node modules while running a notebook with IJavascript kernel so that I don't have to do `npm install plotly-notebook-js` in every place I have a notebook in.\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/n-riesco/ijavascript/issues/comments/203474386","html_url":"https://github.com/n-riesco/ijavascript/issues/66#issuecomment-203474386","issue_url":"https://api.github.com/repos/n-riesco/ijavascript/issues/66","id":203474386,"user":{"login":"eugenesvk","id":12956286,"avatar_url":"https://avatars.githubusercontent.com/u/12956286?v=3","gravatar_id":"","url":"https://api.github.com/users/eugenesvk","html_url":"https://github.com/eugenesvk","followers_url":"https://api.github.com/users/eugenesvk/followers","following_url":"https://api.github.com/users/eugenesvk/following{/other_user}","gists_url":"https://api.github.com/users/eugenesvk/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenesvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenesvk/subscriptions","organizations_url":"https://api.github.com/users/eugenesvk/orgs","repos_url":"https://api.github.com/users/eugenesvk/repos","events_url":"https://api.github.com/users/eugenesvk/events{/privacy}","received_events_url":"https://api.github.com/users/eugenesvk/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T14:57:23Z","updated_at":"2016-03-30T14:57:23Z","body":"You're correct in describing my setup (conda is version 4.0.5, but it's conda3 in a sense that the default environment is python3). I'm using Chrome 49.0.2623.110 m (64-bit). And yes, I get two empty output lines without any errors. Your example is copy&pasted without any modifications.\r\n\r\nMy console output before typing plotly is as follows\r\n```\r\nFailed to load resource: net::ERR_BLOCKED_BY_CLIENT\r\nDefault extension for cell metadata editing loaded.\r\nRaw Cell Format toolbar preset loaded.\r\nSlideshow extension for metadata editing loaded.\r\nactions jupyter-notebook:find-and-replace does not exist, still binding it in case it will be defined later...\r\nSession: kernel_created (445d99bb-d967-4847-bfaa-82bf924303f3)\r\nStarting WebSockets: ws://localhost:8888/api/kernels/cab83214-f5b1-4d71-8dd9-7d6b9b99fc46\r\nFailed to load resource: net::ERR_BLOCKED_BY_CLIENT\r\nUncaught Error: Script error for \"https://cdn.plot.ly/plotly-latest.min.js\"\r\nhttp://requirejs.org/docs/errors.html#scripterror\r\nFailed to load resource: the server responded with a status of 404 (Not Found)\r\nUncaught Error: Script error for \"/notebooks/node_modules/plotly-notebook-js/build/plotly.min.js\"\r\nhttp://requirejs.org/docs/errors.html#scripterror\r\nLoading extension: widgets/notebook/js/extension\r\nloaded widgets\r\nKernel: kernel_connected (cab83214-f5b1-4d71-8dd9-7d6b9b99fc46)\r\nKernel: kernel_ready (cab83214-f5b1-4d71-8dd9-7d6b9b99fc46)\r\n0\r\nFailed to load resource: net::ERR_BLOCKED_BY_CLIENT\r\nFailed to load resource: net::ERR_BLOCKED_BY_CLIENT\r\nFailed to load resource: the server responded with a status of 404 (Not Found)\r\n0\r\n```\r\nWhen I type `plotly` I get the following\r\n```\r\nplotly\r\nUncaught ReferenceError: plotly is not defined(…) VM368:2 \r\n(anonymous function) @ VM368:2\r\nInjectedScript._evaluateOn @ VM333:878\r\nInjectedScript._evaluateAndWrap @ VM333:811\r\nInjectedScript.evaluate @ VM333:667\r\n```\r\n\r\n\r\nThough it's better to check out screenshots as they're colored and easier to read\r\n![plotlyconsole1](https://cloud.githubusercontent.com/assets/12956286/14146575/d83e632a-f6a0-11e5-8da3-7fe3563d118d.PNG)\r\n![plotlyconsole2](https://cloud.githubusercontent.com/assets/12956286/14146577/d83fb202-f6a0-11e5-8bb3-14bb892893cd.PNG)\r\n![plotlyconsole3](https://cloud.githubusercontent.com/assets/12956286/14146576/d83ed29c-f6a0-11e5-9384-0fdf971c59df.PNG)\r\n\r\n"}}