IBM / dse-do-dashboard

Plotly/Dash dashboard for Decision Optimization projects in IBM Cloud Pak for Data
Apache License 2.0
4 stars 3 forks source link

Port 8050 in CPD is not properly released #9

Open victorterpstra opened 2 years ago

victorterpstra commented 2 years ago

Typically, the Dash app claims port 8050. Killing the Python process running in a CPD/JupyterLab terminal is NOT releasing the port. So re-starting the dashboard is not possible, because the port is still 'in use'.

For this reason, the dse-do-dashboard contains a 'stop' button that properly ends the app server and releases the port. However, if a use forgets to 'stop' the dashboard and the process gets killed, it is very hard to be able to restart the dashboard. Using another port also didn't work well.

What can be done in the DSE-DO-Dashboard and/or the watson-studio-jupyter-applications to release the port properly.

victorterpstra commented 2 years ago

If you use cntr-C in the terminal, the port is released properly. Not with cntr-Z or ctrl-X.

In another attempt, running the dashboard on a different port did work well.

victorterpstra commented 2 years ago

How to kill a process:

victorterpstra commented 2 years ago

Added to ws_applications: https://github.ibm.com/dse-rnd-incubator/watson-studio-jupyter-applications/issues/4#issuecomment-41345246