1
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT License.
3
3
4
- import { CancellationToken , Event , Uri , WorkspaceFolder , QuickPickItem , extensions } from 'vscode' ;
4
+ import { CancellationToken , Event , Uri , WorkspaceFolder , extensions } from 'vscode' ;
5
5
6
6
/*
7
7
* Do not introduce any breaking changes to this API.
@@ -12,9 +12,6 @@ export interface PythonExtension {
12
12
* Promise indicating whether all parts of the extension have completed loading or not.
13
13
*/
14
14
ready : Promise < void > ;
15
- jupyter : {
16
- registerHooks ( ) : void ;
17
- } ;
18
15
debug : {
19
16
/**
20
17
* Generate an array of strings for commands to pass to the Python executable to launch the debugger for remote debugging.
@@ -109,47 +106,6 @@ export interface PythonExtension {
109
106
} ;
110
107
}
111
108
112
- interface IJupyterServerUri {
113
- baseUrl : string ;
114
- token : string ;
115
-
116
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
117
- authorizationHeader : any ; // JSON object for authorization header.
118
- expiration ?: Date ; // Date/time when header expires and should be refreshed.
119
- displayName : string ;
120
- }
121
-
122
- type JupyterServerUriHandle = string ;
123
-
124
- export interface IJupyterUriProvider {
125
- readonly id : string ; // Should be a unique string (like a guid)
126
- getQuickPickEntryItems ( ) : QuickPickItem [ ] ;
127
- handleQuickPick ( item : QuickPickItem , backEnabled : boolean ) : Promise < JupyterServerUriHandle | 'back' | undefined > ;
128
- getServerUri ( handle : JupyterServerUriHandle ) : Promise < IJupyterServerUri > ;
129
- }
130
-
131
- interface IDataFrameInfo {
132
- columns ?: { key : string ; type : ColumnType } [ ] ;
133
- indexColumn ?: string ;
134
- rowCount ?: number ;
135
- }
136
-
137
- export interface IDataViewerDataProvider {
138
- dispose ( ) : void ;
139
- getDataFrameInfo ( ) : Promise < IDataFrameInfo > ;
140
- getAllRows ( ) : Promise < IRowsResponse > ;
141
- getRows ( start : number , end : number ) : Promise < IRowsResponse > ;
142
- }
143
-
144
- enum ColumnType {
145
- String = 'string' ,
146
- Number = 'number' ,
147
- Bool = 'bool' ,
148
- }
149
-
150
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
151
- type IRowsResponse = any [ ] ;
152
-
153
109
export type RefreshOptions = {
154
110
/**
155
111
* When `true`, force trigger a refresh regardless of whether a refresh was already triggered. Note this can be expensive so
0 commit comments