microsoft / vscode-tensorboard

Launch and view Tensorboards in VS Code
MIT License
4 stars 3 forks source link

Be able to stop the tensorboard server #26

Open BMMevius opened 2 months ago

BMMevius commented 2 months ago

Feature

Open the command palette and select the command Python: Stop Tensorboard.

Reasoning

I am often running close to the RAM limits of my machines that I use TensorFlow on. Sometimes it is enough to close the tensorboard server to have just enough RAM to complete my runs.

Workaround

Reloading the window shuts down the tensorboard server too, but it takes more time than just killing a process. Lately, I have been running the tensorboard server from the command line because it was easier to kill.

jasam-sheja commented 1 month ago

As a workaround, I've used the following command to find the process and send Ctrl+C signal to it. kill -2 $(ps -ef | grep "ms-toolsai.tensorboard" | grep -v grep | awk '{print $2}')