Skip to content

Commit

Permalink
narrow some lines in main a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
willwhitney committed May 23, 2015
1 parent 0a879d3 commit 0de8151
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ module.exports = AtomRepl =
@subscriptions.add atom.commands.add 'atom-workspace',
'hydrogen:clear-results': => @clearResultBubbles()

@subscriptions.add atom.workspace.observeActivePaneItem(@updateCurrentEditor.bind(this))
@subscriptions.add(atom.workspace.observeActivePaneItem(
@updateCurrentEditor.bind(this)))

@editor = atom.workspace.getActiveTextEditor()

Expand All @@ -59,7 +60,8 @@ module.exports = AtomRepl =
@statusBarElement.onclick = =>
editorView = atom.views.getView(atom.workspace.getActiveTextEditor())
atom.commands.dispatch(editorView, 'hydrogen:show-kernel-commands')
@statusBarTile = statusBar.addLeftTile(item: @statusBarElement, priority: 100)
@statusBarTile = statusBar.addLeftTile(item: @statusBarElement,
priority: 100)


provide: ->
Expand Down Expand Up @@ -162,7 +164,9 @@ module.exports = AtomRepl =
view.spin(false)
view.addResult(result)
else
atom.notifications.addError("No kernel for language `#{language}` found", {
atom.notifications.addError(
"No kernel for language `#{language}` found",
{
detail: "Check that the language for this file is set in Atom
and that you have a Jupyter kernel installed for it."
})
Expand Down

0 comments on commit 0de8151

Please sign in to comment.