jp-babel is an npm
package that implements a
babel kernel for the Jupyter notebook). A Jupyter
notebook combines the creation of rich-text documents (including equations,
plots and videos) with the execution of code in a number of programming
languages.
The execution of code is carried out by means of a kernel that implements the Jupyter messaging protocol. There are kernels available for Python, Julia, Ruby, Haskell and many other languages.
jp-babel came to existence prompted by a number of requests from IJavascript users. See this issue for further details.
By publishing jp-babel I'm seeking to:
-
provide users with a "usable" babel kernel that with some support may become a fully featured kernel,
-
reuse the IJavascript code and develop a Node.js library to implement Jupyter kernels for other languages.
Please, refer to the installation notes for IJavascript.
For example, in Ubuntu 14.04, you can run:
sudo apt-get install nodejs-legacy npm ipython ipython-notebook libzmq3-dev
sudo npm install -g jp-babel
Important: The installation of jp-babel
is affected by Babel's issue #2974. To work around this issue,
jp-babel
should be installed along with babel-preset-es2015
:
sudo npm install -g jp-babel babel-preset-es2015
Or alternatively, install jp-babel
v0.0.6, which depends on Babel v5 (not affected by this issue):
sudo npm install -g [email protected]
To install the kernel and start an Jupyter notebook session, run:
jp-babel
First of all, thank you for taking the time to contribute. The maintenance of IJavascript is currently my priority. I would really appreciate some help. Please, read CONTRIBUTING and use the issue tracker for any contributions: support requests, bug reports, enhancement requests, pull requests, submission of tutorials...
- Implement NEL package in babel
- Add tests