iframe不在ipython-notebook中呈现 [英] iframe not rendering in ipython-notebook

查看:259
本文介绍了iframe不在ipython-notebook中呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下iframe不会在ipython-notebook中呈现

The following iframe will not render in an ipython-notebook

from IPython.display import HTML
HTML('<iframe src=http://stackoverflow.com width=700 height=350></iframe>')

但是,这个将从IPython.display导入呈现(注意,.com与.org)

but, this one will render (note, .com versus .org)

from IPython.display import HTML
HTML('<iframe src=http://stackoverflow.org width=700 height=350></iframe>')

在第一个例子中我有什么问题吗?如果这是一个错误,我在哪里提交错误报告?

Is there something I am doing wrong in the first example? If this is a bug, where do I submit a bug report?

推荐答案

你有一个拒绝显示文件,因为显示被禁止通过X-Frame-Options。在JavaScript控制台中。有些网站明确拒绝在iframe中显示。

You have a "Refused to display document because display forbidden by X-Frame-Options." in javascript console. Some sites explicitly refuse to be displayed in iframes.

这篇关于iframe不在ipython-notebook中呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆