# End session request

**URL:** <https://support.prodi.gy/t/end-session-request/1865>\
**Category:** Uncategorized\
**Tags:** usage, api, solved\
**Created:** [August 3, 2019, 8:18pm UTC](https://support.prodi.gy/t/end-session-request/1865 "2019-08-03T20:18:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [August 4, 2019, 2:34pm UTC](https://support.prodi.gy/t/end-session-request/1865/4 "2019-08-04T14:34:25Z")

</div>

Ahh, okay! In that case, the `end_session` endpoint wouldn't work because it really just refers to the internal annotation session rather than the Python session.

If you need to stop the process from Python, you could try something like this and just kill the server on the port you're running Prodigy on:

> <https://stackoverflow.com/questions/20691258/is-it-possible-in-python-to-kill-process-that-is-listening-on-specific-port-for>

Alternatively, if you can call into the Jupyter kernels, you could try an approach like the one we're using in our `jupyterlab-prodigy` extension:

> <https://github.com/explosion/jupyterlab-prodigy/blob/master/src/index.ts#L65-L82>

---

_[View the full topic](https://support.prodi.gy/t/end-session-request/1865)._
