【发布时间】:2019-07-25 23:40:02
【问题描述】:
我看到以下渲染器可用:
Default renderer: 'browser'
Available renderers:
['plotly_mimetype', 'jupyterlab', 'nteract', 'vscode',
'notebook', 'notebook_connected', 'kaggle', 'azure', 'colab',
'json', 'png', 'jpeg', 'jpg', 'svg', 'pdf', 'browser',
'firefox', 'chrome', 'chromium', 'iframe', 'iframe_connected',
'sphinx_gallery']
但我不知道如何让 Pycharm 在 IDE 中显示输出,就像我使用 Matplotlib 绘制图表时一样。
如何做到这一点?
编辑:
这是我使用的代码,来自 plotly 的示例:
fig = go.Figure(
data=[go.Bar(y=[2, 1, 3])],
layout_title_text="test"
)
fig.show()
这将打开一个浏览器选项卡以在 Pycharm 调试器中运行时显示图表。
编辑2:
我从一年前看到一个类似的问题,但没有解决方案:
【问题讨论】: