Inserting the link of my application on HTML

25 Views Asked by At

I'd like to insert a link to my dashboard in HTML. I tried this in a JupyterLab notebook:

HTML("<iframe src="http://127.0.0.1:8050/ " width="950" height="800" frame>")

JupyterLab screenshot

1

There are 1 best solutions below

0
On

There's an issue with repeatedly using " characters, because with that you start and end several string literals in your code. Instead you want to pass a single string as argument to HTML(). To achieve this, you can replace the outermost " characters with an alternative way to mark the beginning and end of a string literal, e.g. ' or """. This allows you to keep the inner " characters:

HTML('<iframe src="http://127.0.0.1:8050/" width="950" height="800" frame>')

or

HTML("""<iframe src="http://127.0.0.1:8050/" width="950" height="800" frame>""")