GithubHelp home page GithubHelp logo

junolab / language-weave Goto Github PK

View Code? Open in Web Editor NEW
21.0 9.0 9.0 72 KB

Atom syntax highlighting for Weave.jl and Pweave documents. Currently supports markdown input formats.

Home Page: https://atom.io/packages/language-weave

License: MIT License

JavaScript 100.00%
pweave hydrogen reproducible-research python julia

language-weave's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.