New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
display() just prints class of object when using %%python cell magic #99
Comments
I think you can: from metakernel.display import display and that should work. |
On 16 July 2016 at 23:26, Doug Blank notifications@github.com wrote:
Thanks a lot Doug, this works for the %%python cell magic and that's If you have an idea also for the case below where I invoke IPython that'd
I tried it - fingers crossed - in my test.py which I invoke as
My test.py contains
[image: Inline images 1] |
You might want to take a look at https://github.com/calysto/matlab_kernel @blink1073 has done quite a bit of work to make plotting work there. I suspect some of that could be reused in metakernel proper, which would aid in making it work in the bash kernel. |
Thanks Doug, I will take a look ... later though (preparing to present at Actually, I do have plotting, images, html, js insertion all working via On 17 July 2016 at 15:08, Doug Blank notifications@github.com wrote:
|
Good to hear that you are making due. Will you be presenting using what you are creating? If so, please do send a link! Look forward to some PRs. Thanks! |
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. |
The above requires the |
I think we can close this for now. If there is a specific kernel or problem, we can open a new, specific issue. |
I want to be able to invoke some IPython graphics/interaction functionality from the metakernel_bash kernel.
When I try
it simply prints <IPython.core.display.HTML object>.
NOTE: I know that if I set retval, it will correctly render the HTML, but this is not a solution to my problem.
What I really want to be able to do (and I get the same behaviour) is to run from a bash kernel cell:
ipython test.py
where test.py contains:
Can you suggest a workaround to be able to do this?
The text was updated successfully, but these errors were encountered: