Skip to content

Newest plotly (6.0.0) doesn't work in Positron #6154

Closed
@testlabauto

Description

@testlabauto

System details:

Positron and OS details:

Main on 1/29/25
Ubuntu 24

Interpreter details:

Python 3.10.12

Describe the issue:

New release of plotly:
https://github.com/plotly/plotly.py/releases

No longer works with:
https://github.com/posit-dev/qa-example-content/blob/main/workspaces/large_py_notebook/spotify.ipynb

Steps to reproduce the issue:

  1. Update to newest plotly
  2. Run spotify.ipynb
  3. Look for console errors (see below)

Expected or desired behavior:

Plots generate

Were there any error messages in the UI, Output panel, or Developer Tools console?

Plotly is not defined
ReferenceError: Plotly is not defined
    at <anonymous>:1:179
    at nt (https://file+.vscode-resource.vscode-cdn.net/home/runner/work/positron/positron/extensions/notebook-renderers/renderer-out/index.js:11:977)
    at Dt (https://file+.vscode-resource.vscode-cdn.net/home/runner/work/positron/positron/extensions/notebook-renderers/renderer-out/index.js:11:1686)
    at async Object.renderOutputItem (https://file+.vscode-resource.vscode-cdn.net/home/runner/work/positron/positron/extensions/notebook-renderers/renderer-out/index.js:121:185)
    at async Renderer.renderOutputItem (notebookWebviewPreloads.js:1504:17)
    at async Object._doRender (notebookWebviewPreloads.js:1788:17)
    at async Object.render (notebookWebviewPreloads.js:1761:19)
    at async OutputElement.render (notebookWebviewPreloads.js:2365:21)
    at async OutputCell.renderOutputElement (notebookWebviewPreloads.js:2209:13)
kP.select is not a function
TypeError: kP.select is not a function
    at Ehe (https://cdn.plot.ly/plotly-3.0.0.min.js:21:259206)
    at Object.Yft [as _doPlot] (https://cdn.plot.ly/plotly-3.0.0.min.js:21:255283)
    at Object.Qft [as newPlot] (https://cdn.plot.ly/plotly-3.0.0.min.js:21:260707)
    at <anonymous>:1:186
    at nt (https://file+.vscode-resource.vscode-cdn.net/home/runner/work/positron/positron/extensions/notebook-renderers/renderer-out/index.js:11:977)
    at Dt (https://file+.vscode-resource.vscode-cdn.net/home/runner/work/positron/positron/extensions/notebook-renderers/renderer-out/index.js:11:1686)
    at async Object.renderOutputItem (https://file+.vscode-resource.vscode-cdn.net/home/runner/work/positron/positron/extensions/notebook-renderers/renderer-out/index.js:121:185)
    at async Renderer.renderOutputItem (notebookWebviewPreloads.js:1504:17)
    at async Object._doRender (notebookWebviewPreloads.js:1788:17)
    at async Object.render (notebookWebviewPreloads.js:1761:19)

Metadata

Metadata

Labels

area: notebooksIssues related to Notebooks category.bugSomething isn't workinginfo neededWaiting on informationlang: pythonwebview-assetsIssues related to asset loading in webviews.

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions