ExternalSessions
Listing of External Evaluators »gives the list of currently active external evaluator sessions.
ExternalSessions[sys]
gives the list of sessions associated with the system sys.
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)
Start a session and see it listed with ExternalSessions:
Now the session is not present in ExternalSessions:
Start sessions and list them independently by specifying the system:
ExternalSessions[sys] only shows sessions for that system:
Start some sessions and delete all of them with DeleteObject and ExternalSessions:
DeleteObject works with a list of more than one ExternalSessionObject:
Scope (1)
Sessions are automatically removed from ExternalSessions once they are deleted:
Text
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.
APA
Wolfram Language. (2017). ExternalSessions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExternalSessions.html