File tree 3 files changed +36
-25
lines changed
3 files changed +36
-25
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ const Toolbar: FunctionComponent<ToolbarProps> = ({
94
94
onResetToRemote ?.( ) ;
95
95
} ;
96
96
97
- const { jupyterServerIsAvailable, jupyterServerUrl } = useJupyterConnectivity ( ) ;
97
+ const { jupyterServerIsAvailable, jupyterServerUrl } =
98
+ useJupyterConnectivity ( ) ;
98
99
99
100
const getConnectionStatus = ( ) => {
100
101
if ( sessionClient ) {
@@ -139,32 +140,34 @@ const Toolbar: FunctionComponent<ToolbarProps> = ({
139
140
userSelect : "none" ,
140
141
} }
141
142
>
142
- < Tooltip title = { sessionClient ? `Connected to ${ jupyterServerUrl } ` : "" } >
143
+ < Tooltip
144
+ title = { sessionClient ? `Connected to ${ jupyterServerUrl } ` : "" }
145
+ >
146
+ < Box
147
+ sx = { {
148
+ display : "flex" ,
149
+ alignItems : "center" ,
150
+ gap : 1 ,
151
+ cursor : "pointer" ,
152
+ "&:hover" : {
153
+ opacity : 0.8 ,
154
+ } ,
155
+ } }
156
+ onClick = { ( ) => onJupyterConfigClick ?.( ) }
157
+ >
143
158
< Box
144
159
sx = { {
145
- display : "flex" ,
146
- alignItems : "center" ,
147
- gap : 1 ,
148
- cursor : "pointer" ,
149
- "&:hover" : {
150
- opacity : 0.8 ,
151
- } ,
160
+ width : 8 ,
161
+ height : 8 ,
162
+ borderRadius : "50%" ,
163
+ backgroundColor : status . color ,
152
164
} }
153
- onClick = { ( ) => onJupyterConfigClick ?.( ) }
154
- >
155
- < Box
156
- sx = { {
157
- width : 8 ,
158
- height : 8 ,
159
- borderRadius : "50%" ,
160
- backgroundColor : status . color ,
161
- } }
162
- />
163
- < Typography variant = "body2" color = "text.secondary" >
164
- { status . text }
165
- </ Typography >
166
- </ Box >
167
- </ Tooltip >
165
+ />
166
+ < Typography variant = "body2" color = "text.secondary" >
167
+ { status . text }
168
+ </ Typography >
169
+ </ Box >
170
+ </ Tooltip >
168
171
{ executingCellId ? (
169
172
< Tooltip title = { `Executing cell` } >
170
173
< CircularProgress size = { 20 } color = "primary" />
Original file line number Diff line number Diff line change @@ -225,6 +225,10 @@ const NotebookViewComponent: FunctionComponent<NotebookViewComponentProps> = ({
225
225
handleLogCell ( activeCellId ) ;
226
226
} else if ( event . key === "Escape" ) {
227
227
paperRef . current ?. focus ( ) ;
228
+ } else if ( event . key === "Home" ) {
229
+ setActiveCellId ( notebook . cellOrder . first ( ) ) ;
230
+ } else if ( event . key === "End" ) {
231
+ setActiveCellId ( notebook . cellOrder . last ( ) ) ;
228
232
}
229
233
} }
230
234
>
Original file line number Diff line number Diff line change @@ -217,7 +217,11 @@ export const useExecute = (
217
217
newCodeCell . get ( "source" ) ,
218
218
sessionClient ,
219
219
( outputs ) => {
220
- const newCodeCell = codeCell . set ( "outputs" , outputs ) ;
220
+ let newCodeCell = codeCell . set ( "outputs" , outputs ) ;
221
+ newCodeCell = newCodeCell . set (
222
+ "metadata" ,
223
+ newCodeCell . metadata . set ( "collapsed" , false ) ,
224
+ ) ;
221
225
newNotebook = newNotebook . setIn (
222
226
[ "cellMap" , activeCellId ] ,
223
227
newCodeCell ,
You can’t perform that action at this time.
0 commit comments