 
     run_context.cli = cli = bind_cli run_context
 
-    functions = {}
-    vars = lead: {github, graphite, colors}
-
-    handle_exception = (e, compiled) ->
-      console.error e.stack
-      cli.error printStackTrace({e}).join('\n')
-      cli.text 'Compiled JavaScript:'
-      cli.source 'javascript', compiled
-
     error = (message) ->
       $pre = $ '<pre class="error"/>'
       $pre.text message

      current_options: {}
      default_options: notebook.default_options
      output: output output_cell.$el
      set_code: (code) ->
        cell = add_input_cell notebook, code: code, after: run_context.cell
        focus_cell cell

        nested_context.cli = bind_cli nested_context
        handle_renderable.call nested_context, o
        # TODO warn if not renderable

      handle_exception: (e, compiled) ->
        console.error e.stack
        @cli.error printStackTrace({e}).join('\n')
        @cli.text 'Compiled JavaScript:'
        @cli.source 'javascript', compiled

      value: (value) -> _lead_cli_value: value
      open_file: -> open_file_picker run_context
      export_notebook: -> export_notebook input_cell
