n-riesco / ijavascript

IJavascript is a javascript kernel for the Jupyter notebook
Other
2.18k stars 187 forks source link

is there a way to produce HTML content ? #234

Closed parmentelat closed 3 years ago

parmentelat commented 3 years ago

Hi

I'm trying to have my ijavascript kernel produce html

the IPython kernel comes with tools like the following, so one can programmatically create html contents

from IPython.core.display import display, HTML
display(HTML('<h1>Hello, world!</h1>'))

is there something similar within ijavascript, or how could I go about achieving the same kind of result ?

thanks !

n-riesco commented 3 years ago

Yes, $$.html can do that. Here's an example.

parmentelat commented 3 years ago

all righty, cool, that's exactly what I was after, thanks !