Explorar el Código

Add type for client session

Steven Silvester hace 8 años
padre
commit
f93e83e25e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      packages/docregistry/src/context.ts

+ 1 - 0
packages/docregistry/src/context.ts

@@ -65,6 +65,7 @@ class Context<T extends DocumentRegistry.IModel> implements DocumentRegistry.ICo
     this.session = new ClientSession({
       manager: manager.sessions,
       path: this._path,
+      type: ext === '.ipynb' ? 'notebook' : 'file',
       name: this._path.split('/').pop(),
       kernelPreference: options.kernelPreference || { shouldStart: false }
     });