 
         kernelSpec.grammarLanguage = grammarLanguage
 
-        ConfigManager.writeConfigFile (filepath, config, onlyConnect = false) =>
-            kernel = new Kernel kernelSpec, grammar, config, filepath, onlyConnect
+        customKernelConnectionPath = path.join atom.project.rootDirectories[0].path, 'hydrogen', 'connection.json'
 
+        finishKernelStartup = (kernel) =>
             @_runningKernels[grammarLanguage] = kernel
 
             startupCode = Config.getJson('startupCode')[kernelSpec.display_name]


            onStarted?(kernel)


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

_ = require 'lodash'
child_process = require 'child_process'
fs = require 'fs'
path = require 'path'

Config = require './config'
ConfigManager = require './config-manager'
