Coder-Spirit / Jupyter-PHP

A PHP Kernel for Jupyter
MIT License
221 stars 33 forks source link

Jupyter-PHP is unable to render HTML #24

Open NabiKAZ opened 6 years ago

NabiKAZ commented 6 years ago

How can render and display HTML in output? I try this codes:

header("Content-Type: text/html; charset=utf-8");
echo "Hi <b>world!</b>";

But have this in output:

Hi <b>world!</b>

In other words, what is the equivalent of the following python commands in Jupyter-PHP?

from IPython.core.display import display, HTML
display(HTML('<h1>Hello, world!</h1>'))
castarco commented 6 years ago

There is no current equivalent. But I'll be grateful if someone contributes this feature.