Skip to content

Markdown: links open only inside the iframe #1397

@IKupriyanov-HORIS

Description

@IKupriyanov-HORIS
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.

Image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions