Details

- ExternalSessions returns an ExternalSessionObject for each active session.
- DeleteObject kills an external session.
- In ExternalSessions[sys], possible choices of sys include:
-
"Python" Python "NodeJS" JavaScript running through Node.js "Julia" Julia "Ruby" Ruby "R" R "Shell" Bash, Sh, Zsh, ... "Jupyter" Jupyter kernel "SQL" SQL database "SQL-JDBC" SQL database using JDBC
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Start a session and see it listed with ExternalSessions:

https://wolfram.com/xid/05fl98mpf4-hjdpe8


https://wolfram.com/xid/05fl98mpf4-6xldfr
Now the session is not present in ExternalSessions:

https://wolfram.com/xid/05fl98mpf4-7akgzh

Start sessions and list them independently by specifying the system:

https://wolfram.com/xid/05fl98mpf4-0nrw37


ExternalSessions[sys] only shows sessions for that system:

https://wolfram.com/xid/05fl98mpf4-fxvm6r


https://wolfram.com/xid/05fl98mpf4-72a1yc


https://wolfram.com/xid/05fl98mpf4-nynauu
Start some sessions and delete all of them with DeleteObject and ExternalSessions:

https://wolfram.com/xid/05fl98mpf4-jmed9j

DeleteObject works with a list of more than one ExternalSessionObject:

https://wolfram.com/xid/05fl98mpf4-fa0ha6
Scope (1)Survey of the scope of standard use cases
Sessions are automatically removed from ExternalSessions once they are deleted:

https://wolfram.com/xid/05fl98mpf4-t965o6


https://wolfram.com/xid/05fl98mpf4-5edoca

Wolfram Research (2017), ExternalSessions, Wolfram Language function, https://reference.wolfram.com/language/ref/ExternalSessions.html (updated 2020).
Text
Wolfram Research (2017), ExternalSessions, Wolfram Language function, https://reference.wolfram.com/language/ref/ExternalSessions.html (updated 2020).
Wolfram Research (2017), ExternalSessions, Wolfram Language function, https://reference.wolfram.com/language/ref/ExternalSessions.html (updated 2020).
CMS
Wolfram Language. 2017. "ExternalSessions." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/ExternalSessions.html.
Wolfram Language. 2017. "ExternalSessions." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/ExternalSessions.html.
APA
Wolfram Language. (2017). ExternalSessions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExternalSessions.html
Wolfram Language. (2017). ExternalSessions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExternalSessions.html
BibTeX
@misc{reference.wolfram_2025_externalsessions, author="Wolfram Research", title="{ExternalSessions}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ExternalSessions.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_externalsessions, organization={Wolfram Research}, title={ExternalSessions}, year={2020}, url={https://reference.wolfram.com/language/ref/ExternalSessions.html}, note=[Accessed: 29-March-2025
]}