[IPython-dev] Printing HTML within IPython Notebook / IPython-specific prettyprint?

Paul Ivanov pi at berkeley.edu
Fri May 10 14:24:14 EDT 2013


Hi Jeff, 

I think display is what you want to use for now:


from IPython.display import display, HTML
for x in range(10):
    display(HTML("<b>" + str(x) + "</b>"))
    
Jeffrey Tratner, on 2013-05-10 14:01,  wrote:
> Does this exist now and/or is it planned for the future? If not, any
> suggestions on how I might go about making this work?

monkey patching print is an interesting idea.


-- 
                   _
                  / \
                A*   \^   -
             ,./   _.`\\ / \
            / ,--.S    \/   \
           /  `"~,_     \    \
     __o           ?
   _ \<,_         /:\
--(_)/-(_)----.../ | \
--------------.......J
Paul Ivanov
http://pirsquared.org



More information about the IPython-dev mailing list