# Blank plots in jupyter notebook in offline mode

**URL:** https://community.plotly.com/t/blank-plots-in-jupyter-notebook-in-offline-mode/8167
**Category:** 📊 Plotly Python
**Created:** [February 5, 2018, 12:16pm UTC](https://community.plotly.com/t/blank-plots-in-jupyter-notebook-in-offline-mode/8167 "2018-02-05T12:16:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jackRe](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jackRe](https://community.plotly.com/u/jackRe)
#### Post date: [February 5, 2018, 12:16pm UTC](https://community.plotly.com/t/blank-plots-in-jupyter-notebook-in-offline-mode/8167/1 "2018-02-05T12:16:06Z")

</div>

Hello,

i’m trying to run PLOTLY in offline mode on a disconnected computer (real offline !)

this simple code WORKS well when i run it IN CONSOLE mode (not via notebook):

> import plotly#.plotly as py  
> import plotly.graph\_objs as go
> 
> trace = {‘x’:[1,2],‘y’:[1,2]}  
> data = [trace]  
> fig = go.Figure(data = data, layout = {})
> 
> plotly.offline.plot(fig)

but fail to run in jupyter notebook producing blank plots (i see the space for the graph is used but no plots in it)  
i did the required adjustments needed for notebook:

> import plotly#.plotly as py  
> import plotly.graph\_objs as go  
> plotly.offline.init\_notebook\_mode(connected=True)
> 
> trace = {‘x’:[1,2],‘y’:[1,2]}  
> data = [trace]  
> fig = go.Figure(data = data, layout = {})
> 
> plotly.offline.iplot(fig)

i think it because its really offline mode, when i connect the cable of the internet back its working , when disconnecting its not working, like its depend on something online and i need it to work on a standalone computer

thanks for anyhelp !

---

<div class="post-metadata">

### Author: ![jackRe](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jackRe](https://community.plotly.com/u/jackRe)
#### Post date: [February 6, 2018, 9:21am UTC](https://community.plotly.com/t/blank-plots-in-jupyter-notebook-in-offline-mode/8167/2 "2018-02-06T09:21:24Z")

</div>

anyone ?

its seems its failing to load resource: **plotly-latest.min.js**  
and i cant find this file in my local files … any thoughts?

---

<div class="post-metadata">

### Author: ![eirikdaude](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@eirikdaude](https://community.plotly.com/u/eirikdaude)
#### Post date: [February 16, 2018, 1:02pm UTC](https://community.plotly.com/t/blank-plots-in-jupyter-notebook-in-offline-mode/8167/3 "2018-02-16T13:02:09Z")

</div>

I had a similar problem which I posted [here](https://community.plotly.com/t/no-output-from-plotly-offline-iplot/8086) and [on StackOverflow](https://stackoverflow.com/questions/48560138/plotly-offline-iplot-gives-a-large-blank-field-as-its-output-why?).

What’s more, I actually got an answer which solved the problem for me over there - apparently plots not appearing can be a result of a too low data rate limit. Try changing the setting c.NotebookApp.iopub\_data\_rate\_limit to a higher value in your jupyter notebook settings file, and see if that helps.

---

<div class="post-metadata">

### Author: ![mszczepaniak](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mszczepaniak](https://community.plotly.com/u/mszczepaniak)
#### Post date: [June 7, 2019, 2:08am UTC](https://community.plotly.com/t/blank-plots-in-jupyter-notebook-in-offline-mode/8167/4 "2019-06-07T02:08:56Z")

</div>

I first started seeing this issue running a notebook from within jupyter **lab**. When I ran it from the notebook app, this suggestion worked. Any way to get to work within jupyter **lab**?

---

<div class="post-metadata">

### Author: ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)
#### Post date: [June 10, 2019, 12:38pm UTC](https://community.plotly.com/t/blank-plots-in-jupyter-notebook-in-offline-mode/8167/5 "2019-06-10T12:38:20Z")

</div>

Hi @mszczepaniak,

To display plots using `iplot` in JupyterLab, you’ll need to install the `@jupyterlab/plotly-extension` JupyterLab extension. See [https://github.com/plotly/plotly.py#jupyterlab-support-python-35](https://github.com/plotly/plotly.py#jupyterlab-support-python-35) for full installation instructions.

Hope that helps,  
-Jon

---

<div class="post-metadata">

### Author: ![mszczepaniak](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mszczepaniak](https://community.plotly.com/u/mszczepaniak)
#### Post date: [June 17, 2019, 8:52pm UTC](https://community.plotly.com/t/blank-plots-in-jupyter-notebook-in-offline-mode/8167/6 "2019-06-17T20:52:59Z")

</div>

Thanks Jon. That did help. I was initially having trouble installing the extension, but eventually got it installed. After successfully installing the extension, it started working as expected.
