@@ -51,8 +51,7 @@ export namespace CommandIDs {
51
51
* A notebook widget extension that adds a voila preview button to the toolbar.
52
52
*/
53
53
class VoilaRenderButton
54
- implements DocumentRegistry . IWidgetExtension < NotebookPanel , INotebookModel >
55
- {
54
+ implements DocumentRegistry . IWidgetExtension < NotebookPanel , INotebookModel > {
56
55
/**
57
56
* Instantiate a new VoilaRenderButton.
58
57
* @param commands The command registry.
@@ -110,11 +109,11 @@ const extension: JupyterFrontEndPlugin<IVoilaPreviewTracker> = {
110
109
if ( restorer ) {
111
110
restorer . restore ( tracker , {
112
111
command : 'docmanager:open' ,
113
- args : ( panel ) => ( {
112
+ args : panel => ( {
114
113
path : panel . context . path ,
115
114
factory : factory . name
116
115
} ) ,
117
- name : ( panel ) => panel . context . path ,
116
+ name : panel => panel . context . path ,
118
117
when : app . serviceManager . ready
119
118
} ) ;
120
119
}
@@ -179,7 +178,7 @@ const extension: JupyterFrontEndPlugin<IVoilaPreviewTracker> = {
179
178
180
179
commands . addCommand ( CommandIDs . voilaRender , {
181
180
label : 'Render Notebook with Voilà' ,
182
- execute : async ( args ) => {
181
+ execute : async args => {
183
182
const current = getCurrent ( args ) ;
184
183
let context : DocumentRegistry . IContext < INotebookModel > ;
185
184
if ( current ) {
@@ -203,7 +202,7 @@ const extension: JupyterFrontEndPlugin<IVoilaPreviewTracker> = {
203
202
204
203
commands . addCommand ( CommandIDs . voilaOpen , {
205
204
label : 'Open with Voilà in New Browser Tab' ,
206
- execute : async ( args ) => {
205
+ execute : async args => {
207
206
const current = getCurrent ( args ) ;
208
207
if ( ! current ) {
209
208
return ;
@@ -221,7 +220,7 @@ const extension: JupyterFrontEndPlugin<IVoilaPreviewTracker> = {
221
220
222
221
if ( palette ) {
223
222
const category = 'Notebook Operations' ;
224
- [ CommandIDs . voilaRender , CommandIDs . voilaOpen ] . forEach ( ( command ) => {
223
+ [ CommandIDs . voilaRender , CommandIDs . voilaOpen ] . forEach ( command => {
225
224
palette . addItem ( { command, category } ) ;
226
225
} ) ;
227
226
}
0 commit comments