{"action":"created","issue":{"url":"https://api.github.com/repos/IRkernel/IRdisplay/issues/5","labels_url":"https://api.github.com/repos/IRkernel/IRdisplay/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/IRkernel/IRdisplay/issues/5/comments","events_url":"https://api.github.com/repos/IRkernel/IRdisplay/issues/5/events","html_url":"https://github.com/IRkernel/IRdisplay/issues/5","id":69459064,"number":5,"title":"more display_* functions","user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-19T20:05:23Z","updated_at":"2015-04-21T11:42:24Z","closed_at":null,"body":"Compared to ipython, we are currently missing: \r\n* display_markdown -> that's interesting because pander, which displays mostly every thing in R in markdown\r\n* display_jpeg -> to complement the *_png and *_svg one?\r\n* display_latex -> also lots of stuff in R which can transform to a latex representation\r\n* display_json -> that's the one I want -> https://github.com/jupyter/jupyter_client/issues/6#issuecomment-94305459 :-) \r\n* display_pdf -> nice for plotting, which should be included in latex/pdf\r\n* display_javascript -> in python used to implement magics, which influences the behaviour of the notebook... Not sure if we need that...\r\n"},"comment":{"url":"https://api.github.com/repos/IRkernel/IRdisplay/issues/comments/94757671","html_url":"https://github.com/IRkernel/IRdisplay/issues/5#issuecomment-94757671","issue_url":"https://api.github.com/repos/IRkernel/IRdisplay/issues/5","id":94757671,"user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T11:42:24Z","updated_at":"2015-04-21T11:42:24Z","body":"But that knob only activates/deactivates formatters (which is the equivalent of `jupyter.result_mimetypes`).\r\n\r\nIt more or less does:\r\n```\r\nnew_formats = ... # input...\r\nall_image_formats = [\"pdf\", \"png\", \"svg\", \"jpeg\"]\r\nassert len(set(new_formats) - set(all_image_formats)) == 0, \"got unknown image format\"\r\nfor fmt in all_image_formats:\r\n   get_formatter(fmt).deactivate()\r\n\r\nfor fmt in new_formats:\r\n    get_formatter(fmt).deactivate()\r\n```\r\n\r\nIn IRkernel it would be something like `set_plot_formats(<list of formats>)`, which only touches the image mimetypes and removes all which are not in `list of formats`."}}