{"action":"created","issue":{"url":"https://api.github.com/repos/Calysto/metakernel/issues/99","repository_url":"https://api.github.com/repos/Calysto/metakernel","labels_url":"https://api.github.com/repos/Calysto/metakernel/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/Calysto/metakernel/issues/99/comments","events_url":"https://api.github.com/repos/Calysto/metakernel/issues/99/events","html_url":"https://github.com/Calysto/metakernel/issues/99","id":165942661,"number":99,"title":"display() just prints class of object when using %%python cell magic","user":{"login":"mjbright","id":1880109,"avatar_url":"https://avatars.githubusercontent.com/u/1880109?v=3","gravatar_id":"","url":"https://api.github.com/users/mjbright","html_url":"https://github.com/mjbright","followers_url":"https://api.github.com/users/mjbright/followers","following_url":"https://api.github.com/users/mjbright/following{/other_user}","gists_url":"https://api.github.com/users/mjbright/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbright/subscriptions","organizations_url":"https://api.github.com/users/mjbright/orgs","repos_url":"https://api.github.com/users/mjbright/repos","events_url":"https://api.github.com/users/mjbright/events{/privacy}","received_events_url":"https://api.github.com/users/mjbright/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-16T18:56:59Z","updated_at":"2016-07-18T13:58:20Z","closed_at":null,"body":"\r\nI want to be able to invoke some IPython graphics/interaction functionality from the metakernel_bash kernel.\r\n\r\nWhen I try\r\n\r\n```\r\n%%python\r\n\r\nfrom ipywidgets import *\r\nfrom IPython.display import display\r\nfrom IPython.display import HTML\r\n\r\nhtml='<b> some bold text </b>'\r\ndisplay( HTML (html ))\r\n```\r\n\r\nit simply prints <IPython.core.display.HTML object>.\r\n\r\nNOTE: I know that if I set retval, it will correctly render the HTML, but this is not a solution to my problem.\r\n\r\nWhat I really want to be able to do (and I get the same behaviour) is to run from a bash kernel cell:\r\n\r\n`ipython test.py\r\n`\r\n\r\nwhere test.py contains:\r\n\r\n```\r\nfrom ipywidgets import *\r\nfrom IPython.display import display\r\nfrom IPython.display import HTML\r\n\r\nhtml='<b> some bold text </b>'\r\ndisplay( HTML (html ))\r\n```\r\n\r\n\r\nCan you suggest a workaround to be able to do this?\r\n"},"comment":{"url":"https://api.github.com/repos/Calysto/metakernel/issues/comments/233336065","html_url":"https://github.com/Calysto/metakernel/issues/99#issuecomment-233336065","issue_url":"https://api.github.com/repos/Calysto/metakernel/issues/99","id":233336065,"user":{"login":"blink1073","id":2096628,"avatar_url":"https://avatars.githubusercontent.com/u/2096628?v=3","gravatar_id":"","url":"https://api.github.com/users/blink1073","html_url":"https://github.com/blink1073","followers_url":"https://api.github.com/users/blink1073/followers","following_url":"https://api.github.com/users/blink1073/following{/other_user}","gists_url":"https://api.github.com/users/blink1073/gists{/gist_id}","starred_url":"https://api.github.com/users/blink1073/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blink1073/subscriptions","organizations_url":"https://api.github.com/users/blink1073/orgs","repos_url":"https://api.github.com/users/blink1073/repos","events_url":"https://api.github.com/users/blink1073/events{/privacy}","received_events_url":"https://api.github.com/users/blink1073/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T13:58:20Z","updated_at":"2016-07-18T13:58:20Z","body":"There may be pieces of image handling that can be factored out, but I think there is always going to be a kernel-specific way of handling images.  See for example the way it is handled in Thomas' [bash_kernel](https://github.com/takluyver/bash_kernel/blob/dedb5d529a5f3e4bfe0f9cbd015148083494a39f/bash_kernel/kernel.py#L60)."}}
{"actor":{"display_login":"blink1073"}}