Search code examples
pythontensorflowtensorboard

How to kill tensorboard with Tensorflow2 (jupyter, Win)


sorry for the noob question, but how do I kill the Tensorflow PID?

It says:

Reusing TensorBoard on port 6006 (pid 5128), started 4 days, 18:03:12 ago. (Use '!kill 5128' to kill it.)

But I can not find any PID 5128 in the windows taks manager. Using '!kill 5128' within jupyter the error returns that comand kill cannot be found. Using it in the Windows cmd or conda cmd does not work either.

Thanks for your help.


Solution

  • In Windows cmd type tasklist | more It will display all the process running in the system and find tensorboard.exe enter image description here

    You can kill the process using the process ID

    taskkill /F /PID 20036
    

    you can kill the process by its name

    taskkill /IM "tensorboard.exe" /F