Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Plots from Colab don’t show in Nbviewer #5314

Open
Assignees
Labels
P3backlog bugsomething broken
@mklilley

Description

I posted this on the plotly community forum but so far got no traction so I'm reporting this here.

  • What I did:
  • What I expected:
    • When loading in Nbviewer, I expected to see the rendered plotly graph as I did in Colab
  • What I saw:
    • No rendered plot in Nbviewer
    • Plotly-colab-nbviewer.ipynb:14916 Uncaught ReferenceError: Plotly is not defined at Plotly-colab-nbviewer.ipynb:14916:462 in the Brave dev tools
  • What seems strange:
    • When I look at the HTML inside Nbviewer, I do see a script tag that should pull in Plotly and it’s right next to the script that makes the plot.
     <script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.2.min.js"></script>
     <div id="5a0806d5-3da7-4c16-af56-b5fd7c6a67cb" class="plotly-graph-div" style="height:525px; width:100%;"></div>
    <script type="text/javascript"> 
     window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("5a0806d5-3da7-4c16-af56-b5fd7c6a67cb")) { Plotly.newPlot("5a0806d5-3da7-4c16-af56-b5fd7c6a67cb", [{"mode":"lines","name":"Simple Line","x":["2023年01月01日T00:00:00","2023年01月02日T00:00:00","2023年01月03日T00:00:00","2023年01月04日T00:00:00","2023年01月05日T00:00:00","2023年01月06日T00:00:00","2023年01月07日T00:00:00","2023年01月08日T00:00:00","2023年01月09日T00:00:00","2023年01月10日T00:00:00"],"y":[1,2,3,4,5,6,5,4,3,2],"type":"scatter"}], ...

I’ve seen a few posts that seem somewhat similar, but I thought I’d add some more details to the bug.

Any thoughts?

Metadata

Metadata

Labels

P3backlog bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /