# Plots from Colab don't show in Nbviewer

**URL:** <https://community.plotly.com/t/plots-from-colab-dont-show-in-nbviewer/93179>\
**Category:** 📊 Plotly Python\
**Tags:** bug-reporter\
**Created:** [July 17, 2025, 8:44am UTC](https://community.plotly.com/t/plots-from-colab-dont-show-in-nbviewer/93179 "2025-07-17T08:44:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Lilley](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/matthew_lilley/32/32204_2.png) [@Matthew\_Lilley](https://community.plotly.com/u/Matthew_Lilley)\
**Post date:** [July 17, 2025, 8:44am UTC](https://community.plotly.com/t/plots-from-colab-dont-show-in-nbviewer/93179/1 "2025-07-17T08:44:21Z")

</div>

**What I did:**

- Created this [Colab notebook](https://colab.research.google.com/github/mklilley/test/blob/main/Plotly-colab-nbviewer.ipynb) with a simple plotly line chart
- Added `pio.renderers.default = "notebook_connected+colab"` as per [Plotly’s instructions](https://plotly.com/python/renderers/) for using Multiple Renderers
- Pushed it to [this public Github repo](https://github.com/mklilley/test/blob/main/Plotly-colab-nbviewer.ipynb)
- Loaded the [notebook in Nbviewer](https://nbviewer.org/github/mklilley/test/blob/main/Plotly-colab-nbviewer.ipynb)

**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. 🤷

```auto
<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-01T00:00:00","2023-01-02T00:00:00","2023-01-03T00:00:00","2023-01-04T00:00:00","2023-01-05T00:00:00","2023-01-06T00:00:00","2023-01-07T00:00:00","2023-01-08T00:00:00","2023-01-09T00:00:00","2023-01-10T00: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?

Thanks.
