 _ = require 'lodash'
 child_process = require 'child_process'
+fs = require 'fs'
+path = require 'path'
 
 Config = require './config'
 ConfigManager = require './config-manager'


            onStarted?(kernel)


    destroyRunningKernel: (kernel) ->
        delete @_runningKernels[kernel.kernelSpec.grammarLanguage]


        kernelSpec.grammarLanguage = grammarLanguage

        customKernelConnectionPath = path.join atom.project.rootDirectories[0].path, 'hydrogen', 'connection.json'

        finishKernelStartup = (kernel) =>
            @_runningKernels[grammarLanguage] = kernel

            startupCode = Config.getJson('startupCode')[kernelSpec.display_name]
