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

查看:35
本文介绍了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>')

但是,这个会呈现(注意,.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天全站免登陆