-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
from IPython.display import HTML
from lets_plot import *
LetsPlot.setup_html()
p = ggplot() + geom_blank() \
+ theme(title=element_markdown()) \
+ labs(title="Powered by <a href='https://lets-plot.org'>Lets-Plot</a>. \n"
"Visit the <a href='https://github.com/jetbrains/lets-plot/issues'>issue tracker</a> for feedback."
)
file_path = ggsave(p, "plot.html")
with open(file_path, 'r', encoding='utf-8') as f:
html_content = f.read()
HTML(f'{html_content}')
When you click a link, a page is opened inside the iframe and replaces the plot.

Metadata
Metadata
Assignees
Labels
No labels