5

I am trying to figure out if there is anyway to do HTML cell magic using a python variable

myvar = "<a href='somelink'>"

%%html
myvar

This of course just outputs myvar rather than the html. Is there any way to accomplish this?

Thomas K
  • 39,200
  • 7
  • 84
  • 86
patrickbarker
  • 393
  • 1
  • 4
  • 13

0 Answers0