Skip to content

Commit cc2e7f0

Browse files
committed
removed sleep
1 parent 12ec207 commit cc2e7f0

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/client/datascience/jupyter/interpreter/jupyterInterpreterSubCommandExecutionService.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
SpawnOptions
1717
} from '../../../common/process/types';
1818
import { IOutputChannel, IPathUtils, Product } from '../../../common/types';
19-
import { sleep } from '../../../common/utils/async';
2019
import { DataScience } from '../../../common/utils/localize';
2120
import { noop } from '../../../common/utils/misc';
2221
import { EXTENSION_ROOT_DIR } from '../../../constants';
@@ -152,7 +151,6 @@ export class JupyterInterpreterSubCommandExecutionService
152151
@reportAction(ReportableAction.ExportNotebookToPython)
153152
public async exportNotebookToPython(file: string, template?: string, token?: CancellationToken): Promise<string> {
154153
// Before we export check if our selected interpreter is available and supports export
155-
await sleep(5_000);
156154
let interpreter = await this.getSelectedInterpreter(token);
157155
if (!interpreter || !(await this.jupyterDependencyService.isExportSupported(interpreter, token))) {
158156
// If not available or not supported install missing dependecies

src/client/datascience/jupyter/jupyterExecution.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { Cancellation } from '../../common/cancellation';
99
import { WrappedError } from '../../common/errors/errorUtils';
1010
import { traceError, traceInfo } from '../../common/logger';
1111
import { IConfigurationService, IDisposableRegistry, IOutputChannel } from '../../common/types';
12-
import { sleep } from '../../common/utils/async';
1312
import * as localize from '../../common/utils/localize';
1413
import { noop } from '../../common/utils/misc';
1514
import { StopWatch } from '../../common/utils/stopWatch';
@@ -113,7 +112,6 @@ export class JupyterExecutionBase implements IJupyterExecution {
113112

114113
@reportAction(ReportableAction.CheckingIfImportIsSupported)
115114
public async isImportSupported(cancelToken?: CancellationToken): Promise<boolean> {
116-
await sleep(5_000);
117115
// See if we can find the command nbconvert
118116
return this.jupyterInterpreterService.isExportSupported(cancelToken);
119117
}

0 commit comments

Comments
 (0)