Skip to content
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

how to display html produced by a %%python cell #187

Open
parmentelat opened this issue May 17, 2019 · 2 comments
Open

how to display html produced by a %%python cell #187

parmentelat opened this issue May 17, 2019 · 2 comments

Comments

@parmentelat
Copy link

hi there

with plain python notebooks I often use a home-made utility to produce a plan;
my plan() function produces an HTML object, here's how it'd look

image


Now, trying to reproduce something similar from a calipso-bash kernel, I've tried this, but to no avail:

image


this is a nice to have and not a big deal, but is there a way that I can this to work as expected ?

@blink1073
Copy link
Member

I think it would take some changes to the python magic implementation, but it should in theory be possible to support. I don't have the bandwidth to dive into it currently.

https://github.com/Calysto/metakernel/blob/master/metakernel/magics/python_magic.py

@brainysmurf
Copy link

Are you supposed to use special retval variable?

%%python -e
...
retval = display(plan())

Or something to that effect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants