机器学习写代码时遇到的问题(23.11.9)

AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'

导包的时候改一下

python 复制代码
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt

UserWarning: Glyph 27425 (\N{CJK UNIFIED IDEOGRAPH-6B21}) missing from current font. func(*args)

显示中文出问题

python 复制代码
# 汉字字体,优先使用楷体,找不到则使用黑体
plt.rcParams['font.sans-serif'] = ['Kaitt', 'SimHei']  

ImportError: `iplot` can only run inside an IPython Notebook.

pip install ipython

ValueError: Mime type rendering requires nbformat>=4.2.0 but it is not installed

使用iplot出错

复制代码
plotly.offline.iplot(plot_figure)

更新库:

python 复制代码
pip install --upgrade nbformat
相关推荐
拖拖7652 分钟前
Scaling Laws for Neural Language Models:大模型为什么可以被“规模化预测”?
人工智能
何陋轩9 分钟前
Spring AI实战指南:在Java项目中集成大语言模型
人工智能·后端·机器学习
暗夜猎手-大魔王14 分钟前
转载--Karpathy 怎么看 AI Agent(三):怎么给 Agent 搭一个真正能用的上下文
人工智能
每日综合26 分钟前
UKey Wallet 产品体系:移动端应用、硬件安全设备与助记词备份设备
人工智能
阿里云大数据AI技术31 分钟前
基于 MaxCompute Delta Table 实现 SCD Type 2:Time Travel 驱动的维度变更追踪方案
人工智能
听麟1 小时前
HarmonyOS 6.0+ PC端离线翻译工具开发实战:端侧AI模型集成与多格式内容翻译落地
人工智能·华为·harmonyos
摆烂大大王1 小时前
AI 日报|2026年5月8日:xAI解散、DeepSeek融资450亿美元、苹果AI耳机入DVT尾声
人工智能
@不误正业1 小时前
AI-Agent安全性实战-提示注入防御与工具调用沙箱隔离
人工智能·华为·harmonyos
AI学长1 小时前
数据集|西红柿番茄成熟度目标检测数据集-6类别800张图
人工智能·目标检测·水果西红柿番茄
雮尘1 小时前
让AI更懂你:提示词工程5大框架完全指南
人工智能·llm