【发布时间】:2022-10-22 21:40:10
【问题描述】:
环境:
- 视觉代码
- Jupyter 扩展 (v2022.9.1202862440)
- 内核:Python 3.10.1 64 位
- Pyplot 版本:5.10.0
- Nb 格式版本:5.7.0
发生了什么?
我正在尝试通过以下代码将简单的箱线图与plotly.express 一起使用:
#Basic vizualization
fig = px.box(dataset, y='Rh2')
fig.update_layout(
height=1000
)
第一个错误非常简单:ValueError: Mime type rendering requires nbformat>=4.2.0 but it is not installed 我使用this answer 解决了这个问题。
第二个错误是我现在得到的错误:
No renderer could be found for mimetype "application/vnd.plotly.v1+json", but one might be available on the Marketplace.
我不知道在这里可以做什么 - 在互联网上没有提到这样的问题(至少我找不到任何问题)+市场空间也没有帮助!
提前致谢
编辑:
尝试添加:pio.renderers.default = "vscode" 和其他各种但它们不会导致错误并且只是空白。
【问题讨论】:
标签: python pandas plotly nbformat