{"action":"created","issue":{"url":"https://api.github.com/repos/vega/vega/issues/342","labels_url":"https://api.github.com/repos/vega/vega/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/vega/vega/issues/342/comments","events_url":"https://api.github.com/repos/vega/vega/issues/342/events","html_url":"https://github.com/vega/vega/issues/342","id":104052654,"number":342,"title":"IPython Notebook issues (structure change btw Vega and Vega2?)","user":{"login":"randyzwitch","id":2762787,"avatar_url":"https://avatars.githubusercontent.com/u/2762787?v=3","gravatar_id":"","url":"https://api.github.com/users/randyzwitch","html_url":"https://github.com/randyzwitch","followers_url":"https://api.github.com/users/randyzwitch/followers","following_url":"https://api.github.com/users/randyzwitch/following{/other_user}","gists_url":"https://api.github.com/users/randyzwitch/gists{/gist_id}","starred_url":"https://api.github.com/users/randyzwitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randyzwitch/subscriptions","organizations_url":"https://api.github.com/users/randyzwitch/orgs","repos_url":"https://api.github.com/users/randyzwitch/repos","events_url":"https://api.github.com/users/randyzwitch/events{/privacy}","received_events_url":"https://api.github.com/users/randyzwitch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-31T13:23:13Z","updated_at":"2015-08-31T18:28:45Z","closed_at":"2015-08-31T18:28:45Z","body":"Hi folks - \r\n\r\nIn my [Vega.jl library](https://github.com/johnmyleswhite/Vega.jl) in Julia, with Vega 1.5 I was able to successfully create my JSON objects using Julia, then have the graph display inline as a result in the IPython Notebook cell output. Once I converted over my plots to Vega 2, the plots would no longer render inside of the IPython Notebook.\r\n\r\nIs there anything major that changed in Vega that you are aware of for this not to work? Is this what vega-embed.js is for? Any hints would be appreciated if you are familiar.\r\n\r\nSorry if this seems off-topic, but it's the real corner of corner cases of Julia, Jupyter and Vega all in rapid-development. :)"},"comment":{"url":"https://api.github.com/repos/vega/vega/issues/comments/136454720","html_url":"https://github.com/vega/vega/issues/342#issuecomment-136454720","issue_url":"https://api.github.com/repos/vega/vega/issues/342","id":136454720,"user":{"login":"jheer","id":202799,"avatar_url":"https://avatars.githubusercontent.com/u/202799?v=3","gravatar_id":"","url":"https://api.github.com/users/jheer","html_url":"https://github.com/jheer","followers_url":"https://api.github.com/users/jheer/followers","following_url":"https://api.github.com/users/jheer/following{/other_user}","gists_url":"https://api.github.com/users/jheer/gists{/gist_id}","starred_url":"https://api.github.com/users/jheer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jheer/subscriptions","organizations_url":"https://api.github.com/users/jheer/orgs","repos_url":"https://api.github.com/users/jheer/repos","events_url":"https://api.github.com/users/jheer/events{/privacy}","received_events_url":"https://api.github.com/users/jheer/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T18:28:45Z","updated_at":"2015-08-31T18:28:45Z","body":"It appears the issue is not with Vega parsing/rendering but with basic JavaScript file loading. Unfortunately, I don't have much insight into the issue.\r\n\r\nI tested script injection on the d3js.org page (which already has d3 loaded). Entering the following lines on the console after a page load work fine for me. Both result in a valid `vg` object defined in the global scope. These also work when I replace `'head'` with `'body'`. So I suspect the problem is something particular to your setup.\r\n\r\n```\r\n// inject script src\r\nd3.select('head').append('script').attr('src', 'http://vega.github.io/vega/vega.min.js');\r\n```\r\n```\r\n// inject script text\r\nd3.text('http://vega.github.io/vega/vega.min.js', function(err, text) {\r\n  d3.select('head').append('script').text(text);\r\n});\r\n```\r\n\r\nAs a result, I'm closing the issue for now. Feel free to re-open if you find something that requires a change to Vega. And certainly reply with a fix when you find it!\r\n"}}