[IPython-dev] Display Function from with in a Function

John Omernik john at omernik.com
Wed Jan 28 10:08:14 EST 2015


Greetings all, I am using iPython notebook, I can do this:

from IPython.display import display, HTML

h = "<H1>Oh My </H1>"
HTML(h)

and get the expected result

But if I do this:

from IPython.display import display, HTML

def runme(html):
    HTML(html)


h = "<H1>Oh My </H1>
runme(h)

I get no results.

I've noticed this is true for other displays as well, how can I add
displays from withi functions?

Thanks!

John



More information about the IPython-dev mailing list