|
@@ -14,12 +14,6 @@ import {
|
|
|
} from './widget';
|
|
|
|
|
|
|
|
|
-/**
|
|
|
- * The list of file extensions for csv tables.
|
|
|
- */
|
|
|
-const EXTENSIONS = ['.csv'];
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* The table file handler extension.
|
|
|
*/
|
|
@@ -36,14 +30,5 @@ const csvHandlerExtension: JupyterLabPlugin<void> = {
|
|
|
* Activate the table widget extension.
|
|
|
*/
|
|
|
function activateCSVWidget(app: JupyterLab, registry: IDocumentRegistry): void {
|
|
|
- let options = {
|
|
|
- fileExtensions: EXTENSIONS,
|
|
|
- defaultFor: EXTENSIONS,
|
|
|
- displayName: 'Table',
|
|
|
- modelName: 'text',
|
|
|
- preferKernel: false,
|
|
|
- canStartKernel: false
|
|
|
- };
|
|
|
-
|
|
|
- registry.addWidgetFactory(new CSVWidgetFactory(), options);
|
|
|
+ registry.addWidgetFactory(new CSVWidgetFactory());
|
|
|
}
|