 ###
 
 async = require('async')
-
 
 
 {EventEmitter} = require('events')

class Kernel extends EventEmitter
    constructor : (@name, @_dbg, @_path, @_actions) ->
        @store = key_value_store()
        @_directory = misc.path_split(@_path)?.head
        @_set_state('off')
        @_identity = misc.uuid()
        @_start_time = new Date() - 0

            return
        @_nbconvert_lock = true
        args = misc.copy(opts.args)
        args.push(@_filename)
        nbconvert.nbconvert
            args      : args
            timeout   : opts.timeout
            directory : @_directory
            cb        : (err) =>
                delete @_nbconvert_lock
                opts.cb(err)

