Jupyter Notebook HTML cell magic with Python variable
<p>I am trying to figure out if there is anyway to do HTML cell magic using a python variable</p>

<pre><code>myvar = "&lt;a href='somelink'&gt;"

%%html
myvar
</code></pre>

<p>This of course just outputs <code>myvar</code> rather than the html. Is there any way to accomplish this?</p>