{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/notebook/issues/1285","repository_url":"https://api.github.com/repos/jupyter/notebook","labels_url":"https://api.github.com/repos/jupyter/notebook/issues/1285/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/1285/comments","events_url":"https://api.github.com/repos/jupyter/notebook/issues/1285/events","html_url":"https://github.com/jupyter/notebook/issues/1285","id":144742641,"number":1285,"title":"nbagg backend figures does not get exported in PDF","user":{"login":"Phyks","id":3856586,"avatar_url":"https://avatars.githubusercontent.com/u/3856586?v=3","gravatar_id":"","url":"https://api.github.com/users/Phyks","html_url":"https://github.com/Phyks","followers_url":"https://api.github.com/users/Phyks/followers","following_url":"https://api.github.com/users/Phyks/following{/other_user}","gists_url":"https://api.github.com/users/Phyks/gists{/gist_id}","starred_url":"https://api.github.com/users/Phyks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phyks/subscriptions","organizations_url":"https://api.github.com/users/Phyks/orgs","repos_url":"https://api.github.com/users/Phyks/repos","events_url":"https://api.github.com/users/Phyks/events{/privacy}","received_events_url":"https://api.github.com/users/Phyks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-30T22:53:52Z","updated_at":"2016-05-18T02:27:55Z","closed_at":null,"body":"Hi,\r\n\r\nI am not sure whether this issue should be addressed directly to Jupyter or to matplotlib, sorry if I post in the wrong place.\r\n\r\nWhen I export a notebook containing matplotlib figures as a PDF (with LaTeX, through jupyter-notebook), I have things like\r\n\r\n```\r\n<IPython.core.display.Javascript object>\r\n<IPython.core.display.HTML object>\r\n```\r\n\r\nin the rendered document instead of my figures drawn using the nbagg backend (and `%matplotlib notebook`).\r\n\r\nI guess this is somehow due to the fact that jupyter \"serializes\" the figures, and they get escaped, as this is also the output when running in untrusted mode. I did not (yet) find a way to have the figures in the output PDF, but I guess there is a workaround.\r\n\r\nI think it would be simpler and more user friendly to export the figure as an image, and put it in the rendered PDF. Then, `matplotlib` figures should degrade to static images (`%matplotlib inline` style) rather than object dump, not sure if it is easily doable.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/jupyter/notebook/issues/comments/219908909","html_url":"https://github.com/jupyter/notebook/issues/1285#issuecomment-219908909","issue_url":"https://api.github.com/repos/jupyter/notebook/issues/1285","id":219908909,"user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T02:27:55Z","updated_at":"2016-05-18T02:27:55Z","body":"Can you re-try thing with mpl master branch?  The nbagg backend now uses the ipywidiget framework which might help?"}}