language-weave

Support for Weave.jl and Pweave

JunoLab

20,587

4

Bug Reports

0.7.2

MIT

GitHub

This package consumes the following services:

Atom support Weave.jl and Pweave

Atom syntax highlighting for Weave.jl and Pweave documents.

Provides the following modes:

If you need support for other formats open as issue or make a pull request.

Juno integration image

Run code using Hydrogen

Hydrogen supports running code from Pweave and Weave code chunks using its rich multi language document -feature.

For Python you simply need to install Hydrogen and you can use hydrogen keybindings to run code e.g ctrl-enter to run a line and ctrl-alt-enter to run entire chunk.

For Julia you need to add the following to .atom/keymap.cson if you want to use Hydrogen instead of Juno:

'.platform-linux .item-views > atom-text-editor[data-grammar="source weave md"],
.platform-linux .item-views > atom-text-editor[data-grammar="source weave latex"],
.platform-win32 .item-views > atom-text-editor[data-grammar="source weave md"],
.platform-win32 .item-views > atom-text-editor[data-grammar="source weave latex"]':
    'ctrl-enter': 'hydrogen:run'
    'shift-enter': 'hydrogen:run-and-move-down'

'.platform-darwin .item-views > atom-text-editor[data-grammar="source weave md"],
.platform-darwin .item-views > atom-text-editor[data-grammar="source weave latex"]':
    'cmd-enter': 'hydrogen:run'
    'shift-enter': 'hydrogen:run-and-move-down'

Run Julia code using Juno

If you have installed Juno, running code from Weave.jl documents works using ctrl-enter and shift-enter keybindings.