admin管理员组文章数量:1122846
I started getting the following error ("started" as in "it appeared without me changing any package or other setup aspect"):
File ~/venv/telematics_py311/lib/python3.11/site-packages/plotly/io/_base_renderers.py:688, in open_html_in_browser(html, using, new, autoraise)
685 pass
687 if browser is None:
--> 688 raise ValueError("Can't locate a browser with key in " + str(using))
690 class OneShotRequestHandler(BaseHTTPRequestHandler):
691 def do_GET(self):
ValueError: Can't locate a browser with key in ('chrome', 'google-chrome')
when showing a Plotly figure inside a Jupyter lab notebook. The figure itself is showing OK, but this error appears before the figure. Unfortunately I can't create a minimal example to recreate the problem - when I create a similar figure in a new notebook, there is no error. After creating a figure using fig = go.Figure()
, I use the methods fig.add_layout_image
, fig.add_shape
, fig.add_scatter
, and fig.add_annotation
. My setup is a Windows pc with Python 3.11, Jupyterlab 4.3.1, Plotly 5.24.1, and the brwoser is Chrome 131.0.6778.71.
本文标签: python 3xRendering error with Plotly and JupyterlabStack Overflow
版权声明:本文标题:python 3.x - Rendering error with Plotly and Jupyterlab - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736309988a1934217.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论