{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/481","repository_url":"https://api.github.com/repos/jupyter/nbconvert","labels_url":"https://api.github.com/repos/jupyter/nbconvert/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/nbconvert/issues/481/comments","events_url":"https://api.github.com/repos/jupyter/nbconvert/issues/481/events","html_url":"https://github.com/jupyter/nbconvert/issues/481","id":193514243,"number":481,"title":"Custom mime type","user":{"login":"SylvainCorlay","id":2397974,"avatar_url":"https://avatars.githubusercontent.com/u/2397974?v=3","gravatar_id":"","url":"https://api.github.com/users/SylvainCorlay","html_url":"https://github.com/SylvainCorlay","followers_url":"https://api.github.com/users/SylvainCorlay/followers","following_url":"https://api.github.com/users/SylvainCorlay/following{/other_user}","gists_url":"https://api.github.com/users/SylvainCorlay/gists{/gist_id}","starred_url":"https://api.github.com/users/SylvainCorlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SylvainCorlay/subscriptions","organizations_url":"https://api.github.com/users/SylvainCorlay/orgs","repos_url":"https://api.github.com/users/SylvainCorlay/repos","events_url":"https://api.github.com/users/SylvainCorlay/events{/privacy}","received_events_url":"https://api.github.com/users/SylvainCorlay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-05T14:38:13Z","updated_at":"2016-12-05T22:17:08Z","closed_at":null,"body":"When converting to html Would it be possible to convert datatypes in the form of `application/****+json`\r\nto `script` tags if the same mime type containing the corresponding json?\r\n\r\nFor example, I guess\r\n\r\n```json\r\n   \"outputs\": [\r\n    {\r\n     \"data\": {\r\n      \"application/vnd.jupyter.widget-view+json\": {\r\n       \"model_id\": \"11a0e82dc6cf47b3aa0cf241705fd85b\"\r\n      }\r\n     },\r\n     \"metadata\": {},\r\n     \"output_type\": \"display_data\"\r\n    }\r\n```\r\n\r\nwould become\r\n\r\n```html\r\n<div class=\"output\">\r\n<div class=\"output_area\">\r\n    <div class=\"prompt\"></div>\r\n    <script type=\"application/vnd.jupyter.widget-view+json\">\r\n    {\r\n       \"model_id\": \"11a0e82dc6cf47b3aa0cf241705fd85b\"\r\n    }\r\n    </script>\r\n</div>\r\n</div>\r\n```"},"comment":{"url":"https://api.github.com/repos/jupyter/nbconvert/issues/comments/264995721","html_url":"https://github.com/jupyter/nbconvert/issues/481#issuecomment-264995721","issue_url":"https://api.github.com/repos/jupyter/nbconvert/issues/481","id":264995721,"user":{"login":"SylvainCorlay","id":2397974,"avatar_url":"https://avatars.githubusercontent.com/u/2397974?v=3","gravatar_id":"","url":"https://api.github.com/users/SylvainCorlay","html_url":"https://github.com/SylvainCorlay","followers_url":"https://api.github.com/users/SylvainCorlay/followers","following_url":"https://api.github.com/users/SylvainCorlay/following{/other_user}","gists_url":"https://api.github.com/users/SylvainCorlay/gists{/gist_id}","starred_url":"https://api.github.com/users/SylvainCorlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SylvainCorlay/subscriptions","organizations_url":"https://api.github.com/users/SylvainCorlay/orgs","repos_url":"https://api.github.com/users/SylvainCorlay/repos","events_url":"https://api.github.com/users/SylvainCorlay/events{/privacy}","received_events_url":"https://api.github.com/users/SylvainCorlay/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T22:17:08Z","updated_at":"2016-12-05T22:17:08Z","body":"Two fixed mime types that would enable inline widgets would be\r\n\r\n`application/vnd.jupyter.widget-view+json``\r\n\r\nand \r\n\r\n`application/vnd.jupyter.widget-state+json`.\r\n\r\nIf they were replaced as described above, that would already bring us pretty far.\r\n"}}
{"actor":{"display_login":"SylvainCorlay"}}