Giter VIP home page Giter VIP logo

org-babel-eval-in-repl's Introduction

MELPA MELPA Stable Travis CI

org-babel-eval-in-repl

Execute babel source code blocks with eval-in-repl.

Demonstration

Features

  • Async execution (because it uses an external process!)
  • Babel execution without the output written in the buffer (Less visual distraction! Output is reproducible as long as the code is saved)

Installation

Available via MELPA (Set up MELPA if you haven't already). Run

M-x package-install RET org-babel-eval-in-repl RET

Usage

No keybindings are provided by default (because I couldn't find one that's appropriate). Create your own comfortable keybind for execution. Here's my case:

(with-eval-after-load "ob"
  (require 'org-babel-eval-in-repl)
  (define-key org-mode-map (kbd "C-<return>") 'ober-eval-in-repl)
  (define-key org-mode-map (kbd "M-<return>") 'ober-eval-block-in-repl))

See the wiki for more usage (you can find more practical keybindings)

Recommended config (optional):

(This prevents the cursor to jump to the repl buffer after execution. I was more comfortable with this)

(with-eval-after-load "eval-in-repl"
  (setq eir-jump-after-eval nil))

Example

#+BEGIN_SRC ruby
p "Test"
#+END_SRC

Press C-<return> on the source code.

Available languages

Available languages (Prepared in the package) Requirements
matlab matlab-mode settings
R ESS-mode
stata
Available languages (Delegated to eval-in-repl) Requirements
ruby
clojure
racket
scheme
hy
emacs-lisp
javascript
ocaml
prolog
python
sh
lisp
perl
sml

Contributors

Check out here for a list of contributors.

org-babel-eval-in-repl's People

Contributors

diadochos avatar actondev avatar theldoria avatar syohex avatar takeshi-teshima avatar

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.