python - 在 Jupyter Notebook 中显示多个 HTML 内容(循环中的 IFrame)
问题描述
我正在使用 Jupyther 笔记本,我在 IFrame 中遇到“循环”问题。
下面的代码有效(这意味着 html 内容显示在 jupyter notbook 中)
from IPython.display import IFrame
subfile_name = '2021W17_CQI-KPI_2/'
kpi = "3G DATA VOLUME TB (DT)"
IFrame(src='./'+subfile_name+kpi+'.html', width=980, height=600)
但是,这段代码没有显示 html 内容,我想按顺序查看 html 内容
from IPython.display import IFrame
kpis=["3G DATA VOLUME TB (DT)","LTE DATA VOLUME TB (DT)"]
for i in kpis:
IFrame(src='./'+subfile_name+i+'.html', width=980, height=600)
如何在 Jupyter notebook 中按顺序查看多个 html 内容?
解决方案
推荐阅读
- android - accessNodeInfo AlertDialog 的子节点始终为空。如何获得按钮?
- python - Python FPDF 不支持 jpg/jpeg
- javascript - Auth0 sms mfa 身份验证重定向到登录页面
- typescript - 如何检查角度 8 中的响应或状态代码以将文件上传到 S3 Presigned URL 并且 statusCode 为 200
- django - Django 将 excel 文件发送到 Celery Task。内存上传文件中的错误
- c# - ef core left join with "in" 条件
- java - 不支持请求方法'DELETE' - reactjs + spring Boot
- debugging - 在调试器中暂停 Flutter 应用程序并在 IntelliJ 中等待点击
- html - 当我将高度设置为自动时,它对 li a 不起作用
- javascript - 如何映射键/值数组而不是对象