After HTML export, Altair chart rendered in Panel does not get rendered within the HTML page

Here is link to my html page which shows that the Altair chart does get rendered using Jupyter (output cell # 5), but not when rendered or wrapped within a Panel object (output cell # 6).

Is there an import I need to do or activate an extension somehow in order for the Altair chart to render with Panel in HTML output?

Thanks in advance!

There should only ever be one call to pn.extension and it must load all the optional dependencies you need. If it’s in a second call it will not be loaded correctly.

Thanks. I tried just one call before and it didn’t work. Re-tried again and now it is working. Perhaps, I forgot to restart the kernel prior to exporting to HMTL.