首页 > 解决方案 > 在 Python 中显示虹膜数据集时出错

问题描述

我正在学习 Udemy 的数据科学课程。运行代码显示虹膜数据集后,没有显示。相反,它会下载一个数据文件。

我正在运行以下代码:

from IPython.display import HTML
HTML('<iframe src=http://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data></iframe>')

代码是否正确?您能否帮助如何使用 iframe 在 python 中显示 iris 数据集?

课程链接:https ://www.udemy.com/course/introduction-to-data-science-using-python/learn/lecture/9387344#questions

标签: pythondata-science

解决方案


尝试:

pip uninstall prompt-toolkit
pip install prompt-toolkit

旧版本:1.0.14

新版本:3.0.2

重复: 升级 Ipython 时出现问题(prompt_toolkit 不兼容)


推荐阅读