File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed
packages/collaboration-extension/src Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -192,22 +192,20 @@ export const userEditorCursors: JupyterFrontEndPlugin<void> = {
192192 }
193193} ;
194194
195- export const notebookCellExecutor : JupyterFrontEndPlugin < INotebookCellExecutor > = {
196- id : '@jupyter/collaboration-extension:notebook-cell-executor' ,
197- description :
198- 'Add notebook cell executor that uses REST API instead of kernel protocol over WebSocket.' ,
199- autoStart : true ,
200- provides : INotebookCellExecutor ,
201- activate : (
202- app : JupyterFrontEnd
203- ) : INotebookCellExecutor => {
204- if ( PageConfig . getOption ( 'serverSideExecution' ) === 'true' ) {
205- return Object . freeze ( { runCell : runCellServerSide } ) ;
195+ export const notebookCellExecutor : JupyterFrontEndPlugin < INotebookCellExecutor > =
196+ {
197+ id : '@jupyter/collaboration-extension:notebook-cell-executor' ,
198+ description :
199+ 'Add notebook cell executor that uses REST API instead of kernel protocol over WebSocket.' ,
200+ autoStart : true ,
201+ provides : INotebookCellExecutor ,
202+ activate : ( app : JupyterFrontEnd ) : INotebookCellExecutor => {
203+ if ( PageConfig . getOption ( 'serverSideExecution' ) === 'true' ) {
204+ return Object . freeze ( { runCell : runCellServerSide } ) ;
205+ }
206+ return Object . freeze ( { runCell } ) ;
206207 }
207- return Object . freeze ( { runCell } ) ;
208- }
209- } ;
210-
208+ } ;
211209
212210async function runCellServerSide ( {
213211 cell,
You can’t perform that action at this time.
0 commit comments