jupyter-specta 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/tool.js +1 -14
  2. package/package.json +1 -1
package/lib/tool.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { PageConfig, URLExt } from '@jupyterlab/coreutils';
2
2
  import { FilterFileBrowserModel } from '@jupyterlab/filebrowser';
3
- import { NotebookModelFactory } from '@jupyterlab/notebook';
4
3
  import { VoilaFileBrowser } from '@voila-dashboards/voila';
5
4
  import { NotebookGridWidgetFactory } from './document/factory';
6
5
  import { SpectaWidgetFactory } from './specta_widget_factory';
@@ -18,7 +17,7 @@ export function registerDocumentFactory(options) {
18
17
  const widgetFactory = new NotebookGridWidgetFactory({
19
18
  name: factoryName,
20
19
  modelName: 'notebook',
21
- fileTypes: ['ipynb'],
20
+ fileTypes: ['notebook'],
22
21
  spectaWidgetFactory,
23
22
  preferKernel: true,
24
23
  canStartKernel: true,
@@ -27,18 +26,6 @@ export function registerDocumentFactory(options) {
27
26
  });
28
27
  // Registering the widget factory
29
28
  app.docRegistry.addWidgetFactory(widgetFactory);
30
- // Creating and registering the model factory for our custom DocumentModel
31
- const modelFactory = new NotebookModelFactory({});
32
- app.docRegistry.addModelFactory(modelFactory);
33
- // register the filetype
34
- app.docRegistry.addFileType({
35
- name: 'ipynb',
36
- displayName: 'IPYNB',
37
- mimeTypes: ['text/json'],
38
- extensions: ['.ipynb', '.IPYNB'],
39
- fileFormat: 'json',
40
- contentType: 'notebook'
41
- });
42
29
  widgetFactory.widgetCreated.connect((sender, widget) => {
43
30
  widget.context.pathChanged.connect(() => {
44
31
  spectaTracker.save(widget);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyter-specta",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/trungleduc/specta",