环境:
(v2022.9.1202862440)
Python3.10.1 64位
发生什么事了?
我试图通过以下代码在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"
和其他各种,但是它们没有错误,只导致空白。
发布于 2022-10-22 13:40:10
尝试在vscode上安装木星笔记本Rdnderers扩展,它为我工作
https://stackoverflow.com/questions/74046983
复制相似问题