jupyter-内核-手表
为您监视 jupyter 内核目录。
|
var KernelWatch = require ( 'jupyter-kernel-watch' )
var watcher = KernelWatch ( [ '/path/to/kernels' , '/another/path/to/.jupyter/kernels' ] )
watcher . on ( 'data' , function ( kernelSpecs ) {
// kernelSpecs is a list of the contents of the kernel.json as a JSON object
// e.g. [
// {
// "filepath": "/path/to/kernels/python/kernel.json",
// "dat
1