You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: remote-ssh.qmd
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,28 @@ For example, note that this Shiny application running on `:6868` automatically g
75
75
76
76

77
77
78
+
## Long-running sessions
79
+
80
+
By default, Positron will forcefully end your R and Python sessions when you close Positron. If you want to leave your sessions running even after you close Positron -- for example, to leave data loaded in memory or let long-running computations continue -- you can tell Positron's kernel supervisor to keep the sessions running. You can find this setting in _Settings > Extensions > Kernel Supervisor > Shutdown Timeout_.
Note that this setting only takes effect after restarting Positron!
85
+
86
+
### Resuming sessions
87
+
88
+
The long-running sessions are associated with the workspace in which you use them. When you reopen a workspace that contains active sessions, Positron will automatically reconnect to the sessions if it finds any that are still running.
89
+
90
+
### Shutdown timeout details
91
+
92
+
Because the supervisor runs your R and Python sessions without any UI attached, it can't tell when you're done with them. In order to prevent sessions from running indefinitely and consuming resources on your remote host, the supervisor will shut them down after a certain period of inactivity. This period is controlled by _Shutdown Timeout_ setting.
93
+
94
+
The shutdown timeout will never interrupt a kernel that's busy running code; it doesn't start counting down until the kernel is idle _and_ it's not connected to any Positron windows.
95
+
96
+
If you just want to allow your kernels to finish any running computations when you exit Positron, use the _when idle_ setting.
97
+
98
+
There's also an option to allow the kernels to run forever; if you use this option, your R and Python kernels will never exit unless you manually kill the processes or shut them down from Positron. We don't generally recommend using this option unless you are familiar with process management on your remote host, since it can lead to resource exhaustion.
99
+
78
100
## How it works & troubleshooting
79
101
80
102
When Positron connects to a new host for the first time, it does the following:
@@ -95,3 +117,4 @@ If you need to use a different URL to download Positron Server (for example to u
95
117
{width=650}
96
118
97
119
Note that the client and server must be using **exactly** the same Positron version.
0 commit comments