# Notebook added to binder but it doesn't run (kernel not connected)

**URL:** <https://discourse.jupyter.org/t/notebook-added-to-binder-but-it-doesnt-run-kernel-not-connected/543>\
**Category:** Binder\
**Created:** [March 21, 2019, 2:36pm UTC](https://discourse.jupyter.org/t/notebook-added-to-binder-but-it-doesnt-run-kernel-not-connected/543 "2019-03-21T14:36:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![monocongo](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/monocongo/32/269_2.png) [@monocongo](https://discourse.jupyter.org/u/monocongo)\
**Post date:** [March 21, 2019, 2:36pm UTC](https://discourse.jupyter.org/t/notebook-added-to-binder-but-it-doesnt-run-kernel-not-connected/543/1 "2019-03-21T14:36:15Z")

</div>

I have added my first notebook into [mybinder.org](http://mybinder.org), and it displays OK but doesn’t seem to run. The kernel status shows as “Not Connected” and clicking that button doesn’t connect it. I can’t work out how to see what the error is so I’m at a loss as to how to rectify this. Can someone please point me to the section of the docs that explain what I need to do to get things into proper order? BTW the notebook is [here](https://hub.mybinder.org/user/monocongo-climate_indices-gyior5qk/notebooks/notebooks/PDSI_Canadian_Stations.ipynb). Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![betatim](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/betatim/32/10_2.png) [@betatim](https://discourse.jupyter.org/u/betatim)\
**Post date:** [March 21, 2019, 3:24pm UTC](https://discourse.jupyter.org/t/notebook-added-to-binder-but-it-doesnt-run-kernel-not-connected/543/2 "2019-03-21T15:24:39Z")

</div>

Hi James 👋 !

thanks for finding us on gitter and then posting here instead 🙂

The [hub.mybinder.org](http://hub.mybinder.org) link you posted is to your personal instance in the cloud, so no one else will be able to access it. The link to share looks like: [https://mybinder.org/v2/gh/monocongo/climate\_indices/master](https://mybinder.org/v2/gh/monocongo/climate_indices/master) which you get when you enter you repositories link into the front page of [mybinder.org](http://mybinder.org) (Trying to solve the UX problem of “which link should I post??!?” is on our list but it is a bit tricky and also “just takes time” 🙂 )

Anyway, looking at your repo at [https://github.com/monocongo/climate\_indices](https://github.com/monocongo/climate_indices) you have a `setup.py` so we should have installed the dependencies listed in it. So that is all good.

I think the most likely explanation for what you are seeing is that you started the cloud instance (by visiting a link like [this](https://mybinder.org/v2/gh/monocongo/climate_indices/master)) but then did something else while the spinner was spinning. By the time you came back we had already garbage collected the idle instance. We do that fairly aggressively (~10min of inactivity). So I’d try visiting [https://mybinder.org/v2/gh/monocongo/climate\_indices/master](https://mybinder.org/v2/gh/monocongo/climate_indices/master) again and see what happens. When I just tried it a new notebook opened and I ran some simple Python in it.

---

<div class="post-metadata">

**Author:** ![monocongo](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/monocongo/32/269_2.png) [@monocongo](https://discourse.jupyter.org/u/monocongo)\
**Post date:** [March 21, 2019, 3:49pm UTC](https://discourse.jupyter.org/t/notebook-added-to-binder-but-it-doesnt-run-kernel-not-connected/543/3 "2019-03-21T15:49:29Z")

</div>

Thanks, Tim. You’ve cleared things up a bit more for me, very helpful. 😀

It looks like my `setup.py` needs some love, because when I run the first cell of the notebook file I’m focusing on at first it’s missing the `bokeh` module, so I probably need to add that into the `install_requires` section.

Thanks again for your help getting me over this initial usage hurdle.

---

<div class="post-metadata">

**Author:** ![jhermann](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/jhermann/32/257_2.png) [@jhermann](https://discourse.jupyter.org/u/jhermann)\
**Post date:** [March 21, 2019, 5:31pm UTC](https://discourse.jupyter.org/t/notebook-added-to-binder-but-it-doesnt-run-kernel-not-connected/543/4 "2019-03-21T17:31:39Z")

</div>

> [@monocongo](#):
>
> …, so I probably need to add that into the `install_requires` section.

Here’s an “all you can install” buffet, sort-of… ☺

> <https://github.com/mam-dev/debianized-jupyterhub/blob/2e3d329e4879e70dd97f67dae737f87bab6e362f/setup.py#L128-L166>
