IJavascriptEX is a JavaScript kernel for Jupyter. It is an EXtended version of the
IJavascript kernel that attempts to make
it as close as possible to the IPython experience by adding %magic
commands,
!shell
executables, and {variable}
substitution.
Here's a sample notebook that makes use of the IJavascript kernel:
![Screenshot: Notebook Hello Sample](https://github.com/apowers313/ijavascriptex/raw/HEAD/images/screenshot-notebook-hello.png)
Contents
Main Features
Installation
IJavascript is distributed as an npm package and thus
it requires:
Depending on your use, other Jupyter tools will be
necessary (e.g. Jupyter notebook). Note that IJavascript has been kept
backwards-compatibility with IPython v1, so that it's possible to use the
IPython notebook distributed in Ubuntu 14.04 LTS and Ubuntu 16.04 LTS.
For other platforms not listed below, or if you find any problems with the instructions above,
please, refer to the installation
notes.
Ubuntu
To install IJavascript in Ubuntu 18.04 for your user only, run:
sudo apt-get install nodejs npm jupyter-notebook
npm config set prefix $HOME
npm install -g ijavascript
ijsexinstall
Note: if ~/bin
folder didn't exist before, after running this instructions, you may need to log out and back in for ~/bin
to be added to your PATH
.
To install IJavascript in Ubuntu 18.04 for all users, run instead:
sudo apt-get install nodejs npm jupyter-notebook
sudo npm install -g --unsafe-perm ijavascript
sudo ijsexinstall --install=global
Also, note that older versions of Ubuntu (e.g. Ubuntu 16.04 LTS) depend on nodejs-legacy
and ipython-notebook
instead:
sudo apt-get install nodejs-legacy npm ipython ipython-notebook
Windows (Official Python Distribution)
In the command line:
pip3 install --upgrade pip
pip3 install jupyter
npm install -g ijavascript
ijsexinstall
Then you can run jupyter notebook
in your terminal to load Jupyter Notebook.
When you create a new Jupyter Notebook, you should see the Javascript (Node)
kernel available.
Windows (Anaconda Distribution)
Open the Anaconda prompt and run:
conda install nodejs
npm install -g ijavascript
ijsexinstall
Then you can run jupyter notebook
in your terminal to load Jupyter Notebook.
When you create a new Jupyter Notebook, you should see the Javascript (Node)
kernel available.
macOS
In macOS, Homebrew and
pip can be used to install
IJavascript and its prerequisites:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install pkg-config node zeromq
sudo easy_install pip
pip install --upgrade pyzmq jupyter
npm install -g ijavascript
ijsexinstall
Contributions
First of all, thank you for taking the time to contribute. Please, read
CONTRIBUTING and use
the issue tracker for any
contributions: support requests, bug reports, enhancement requests, pull
requests, submission of tutorials...