Inserting a Link to a Webpage in an IPython Notebook

核能气质少年 提交于 2019-12-09 07:23:12

问题


How is this done? I'd like to have the link be in a markdown cell.


回答1:


For visual learners.

[blue_text](url_here)

Thanks dbliss.




回答2:


In case it is not a markdown cell, that is with what I went:

from IPython.core.display import display, HTML
display(HTML("""<a href="https://google.at">text</a>"""))



回答3:


Just another tip, using magic expression.

%%html
<a href="your_url_here">Showing Text</a>

Improved. Thanks to the comment of calocedrus.




回答4:


Here is the code I use in my python notebook when I want to insert a link to a webpage inside a markdown cell (in a python notebook).

[Clickable_visible_hyperlink](Hidden_landing_URL)

--note Here is the clickable hyperlink, you can change the value



来源:https://stackoverflow.com/questions/25692293/inserting-a-link-to-a-webpage-in-an-ipython-notebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!