# Jupyter notebook 'Connect to Jupyter' button not rendering

**URL:** <https://discourse.openondemand.org/t/jupyter-notebook-connect-to-jupyter-button-not-rendering/225>\
**Category:** Get Help\
**Created:** [February 28, 2019, 2:24pm UTC](https://discourse.openondemand.org/t/jupyter-notebook-connect-to-jupyter-button-not-rendering/225 "2019-02-28T14:24:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![09wattry](https://avatars.discourse-cdn.com/v4/letter/0/e95f7d/32.png) [@09wattry](https://discourse.openondemand.org/u/09wattry)\
**Post date:** [February 28, 2019, 2:24pm UTC](https://discourse.openondemand.org/t/jupyter-notebook-connect-to-jupyter-button-not-rendering/225/1 "2019-02-28T14:24:02Z")

</div>

We have successfully established interactive desktop applications and connected via xfce. We are now trying to use the Jupyter plugin to try launch a Jupyter notebook session.

I have set it up as a dev app in my home directory and it appears as an interactive app as expected. I can launch the application and if the before script template has the following c.NotebookApp.ip = ‘\*’ line a permission denied error. If it is changed to c.NotebookApp.ip = ‘0.0.0.0’ the output of the job is as follows:

```
 Script starting...
 Waiting for Jupyter Notebook server to open port 35203...

```

> ```
> TIMING - Starting wait at: Thu Feb 28 08:07:06 EST 2019
> TIMING - Starting main script at: Thu Feb 28 08:07:06 EST 2019
> 
> Currently Loaded Modules:
> 1) gcc/5.1.0 2) python/3.5.0
> 
> TIMING - Starting jupyter at: Thu Feb 28 08:07:06 EST 2019
> + jupyter notebook --config=/home/user/ondemand/data/sys/dashboard/batch_connect/dev/jupyter/output/7739ca56-2370-43a0-ac58-27bf6ed7ac41/config.py
> [I 08:07:08.360 NotebookApp] Serving notebooks from local directory: /home/wattry
> [I 08:07:08.360 NotebookApp] The Jupyter Notebook is running at:
> [I 08:07:08.360 NotebookApp] http://127.0.0.1:35203/node/test-compute/35203/
> [I 08:07:08.360 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
> Timed out waiting for Jupyter Notebook server to open port 35203!
> TIMING - Wait ended at: Thu Feb 28 08:08:07 EST 2019
> [C 08:08:07.365 NotebookApp] received signal 15, stopping
> Cleaning up...
> [I 08:08:07.383 NotebookApp] Shutting down 0 kernels
> /var/spool/slurmd/job00079/slurm_script: line 20: 22452 Terminated "/home/user/ondemand/data/sys/dashboard/batch_connect/dev/jupyter/output/7739ca56-2370-43a0-ac58-27bf6ed7ac41/script.sh"
> 
> ```

The button view is not rendered and we are unable to launch the application. However, if we run this command manually:

```
jupyter notebook --config=/home/user/ondemand/data/sys/dashboard/batch_connect/dev/jupyter/output/7739ca56-2370-43a0-ac58-27bf6ed7ac41/config.py

```

We are then able to navigate to the Jupyter Notebook login page using a browser we installed on the compute node. Is there somewhere we should be looking to see why the connect button is not being rendered? I have a feeling it could possibly be a networking issue. How does OOD Dash handle the http request for the Jupyter Notebook session?

---

<div class="post-metadata">

**Author:** ![09wattry](https://avatars.discourse-cdn.com/v4/letter/0/e95f7d/32.png) [@09wattry](https://discourse.openondemand.org/u/09wattry)\
**Post date:** [February 28, 2019, 4:38pm UTC](https://discourse.openondemand.org/t/jupyter-notebook-connect-to-jupyter-button-not-rendering/225/2 "2019-02-28T16:38:03Z")

</div>

We don’t install netcat by default for security

[https://listsprd.osu.edu/pipermail/ood-users/2018-October/000269.html](https://listsprd.osu.edu/pipermail/ood-users/2018-October/000269.html)

We added this function to our before script to validate the script:

port\_used () {  
local port="{1#\*:}" sleep 2 netstat -nap 2\>/dev/null | grep -q "0.0.0.0:{port} "  
}

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:16pm UTC](https://discourse.openondemand.org/t/jupyter-notebook-connect-to-jupyter-button-not-rendering/225/3 "2022-05-26T15:16:38Z")

</div>


