babel-repl

https://github.com/hung-phan/babel-repl.git

git clone 'git://github.com/hung-phan/babel-repl.git'
1

Babel REPL for emacs

MELPA

Acknowledgement

Thanks tmtxt for his plugin n4js.el

Dependencies

Installation

Melpa

babel-repl

Manual install

(add-to-list 'load-path "~/.emacs.d/babel-repl/")

Load the library

(require 'babel-repl)

Weird characters workaround

If you get weird characters in your REPL. Add this code snippet to your configuaration file.

(require 'comint)
(add-to-list 'comint-preoutput-filter-functions
             (lambda (output)
               (replace-regexp-in-string "\033\\[[0-9]+[A-Z]" "" output)))

Variables

Change these variables based on your demand

(setq babel-repl-cli-program "/path/to/babel-node")

Commands

Connect to a babel shell with option

(setq babel-repl-cli-arguments '("--trace-sync-io"))

Demo

Babel shell inside Emacs