ptweir
New Contributor III

Looks like this works!

from IPython.display import HTML, display
from IPython import get_ipython
try:
   shell = get_ipython().__class__.__name__
   if shell == 'DatabricksShell':
       display(HTML(html_string))

kudos to this stackoverflow answer: https://stackoverflow.com/questions/71474139/how-to-import-displayhtml-in-databricks

 

View solution in original post