Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 2.07 KB

README.md

File metadata and controls

45 lines (32 loc) · 2.07 KB

Atom support Weave.jl and Pweave

Atom syntax highlighting for Weave.jl and Pweave documents.

Provides the following modes:

  • Weave.jl: markdown for .jmd, .mdw and .jmdw (markdown with noweb)
  • Weave.jl: LaTex for texw, .jtexw and .jnw.
  • Weave.jl: reStructuredText for .jrstw
  • Pweave: markdown for .pmd and .pmdw (markdown with noweb)
  • Pweave: LaTex for .ptexw and .pnw
  • Pweave: reStructuredText for .prstw and .rstw

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.