private async Task <IRSession> StartSessionAsync(CancellationToken ct) { _session ??= _workflow.RSessions.GetOrCreate(@"REPL"); if (!_session.IsHostRunning) { await _session.EnsureHostStartedAsync(new RHostStartupInfo(isInteractive : true), _sessionCallback, null, 3000, ct); await _session.SetVsGraphicsDeviceAsync(); } return(_session); }