Spyder IDE 中的 Plotly Express

发布于 2025-01-16 05:36:44 字数 568 浏览 2 评论 0原文

如何在 Spyder IDE 中使用 Ploty Express?

我已经尝试了此链接的建议。但我无法让它发挥作用。它甚至没有打开我的默认网络浏览器(Google Chrome)。相反,它会在主页中打开 Internet Explorer。

我正在尝试这样的事情:

import plotly.express as px
from plotly.offline import plot    
fig = px.density_mapbox(...)
plot(fig)

编辑:实际上,正在我的工作目录中使用绘图创建一个 html 文件。所以我必须在我的问题中添加一些内容。

为什么在主页中打开 Internet Explorer?而不是在我已经打开的 Chrome 中打开一个新的 Chrome 或新选项卡,其中包含绘图?1

How can i use Ploty Express in Spyder IDE?

I have tried the suggestion from this link. But i couldn't make it work. It is not even opening my default web browser (Google Chrome). Instead, it opens Internet Explorer in the main page.

I am trying something like this:

import plotly.express as px
from plotly.offline import plot    
fig = px.density_mapbox(...)
plot(fig)

EDIT: Actually, a html file is being created in my working directory with the plot. So i must add something to my question.

Why is it opening Internet Explorer in the main page? Instead of just opening a new Chrome or new Tab in my already opened Chrome with the plot in it?1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文