Skip to content

Commit 215871d

Browse files
author
minjk-bl
committed
Load vp functions on kernel restart
1 parent d6b964b commit 215871d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

js/loadVisualpython.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,13 @@
238238
if (cfg.vp_section_display && vpFrame) {
239239
vpFrame.openVp();
240240
}
241+
242+
// Operations on kernel restart
243+
events.on('kernel_ready.Kernel', function (evt, info) {
244+
vpLog.display(VP_LOG_TYPE.LOG, 'vp operations for kernel ready...');
245+
// read vp functions
246+
_readKernelFunction();
247+
});
241248
}
242249

243250
return { initVisualpython: initVisualpython, readConfig: readConfig };

0 commit comments

Comments
 (0)