我看到以下渲染器可用:
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']
Run Code Online (Sandbox Code Playgroud)
但我不知道如何让 pycharm 在 IDE 中显示输出,就像我用 matplotlib 做图形一样。
如何才能做到这一点?
编辑:
这是我使用的代码,来自 plotly 的示例:
fig = go.Figure(
data=[go.Bar(y=[2, 1, 3])],
layout_title_text="test"
)
fig.show()
Run Code Online (Sandbox Code Playgroud)
这将打开一个浏览器选项卡以显示在 pycharm 调试器中运行时的图形。
编辑2:
我从一年前看到一个类似的问题,没有解决方案:
| 归档时间: |
|
| 查看次数: |
11003 次 |
| 最近记录: |