项目场景
使用 Python 的 plotly 库进行可视化绘图:
import plotly.express as px
fig = px.bar(x=['a', 'b', 'c'], y=[1, 3, 2])
fig.show()
问题描述
运行代码报错:
ValueError: Mime type rendering requires nbformat>=4.2.0 but it is not installed
解决方案
更新 nbformat 库:
pip install --upgrade nbformat