Chris Mendez in NodeJS, Jupyter, Data Science

Node: Configure Jupyter to work with Node on a Mac

Similar to my previous article on how to configure Jupyter to work with R, I want to do some data processing using NodeJS and Dataframes.

Step 1 - Clone from Github

Change directory to your Mac Desktop.

cd ~/Desktop

Download the NodeJS Kernel from Github.

git clone https://github.com/notablemind/jupyter-nodejs.git && \
cd jupyter-nodejs/

Step 2 - Create a Directory

This assumes that you already have Jupyter installed and you're simply adding a new directory within ~/.ipython/ for the remaining steps.

mkdir -p ~/.ipython/kernels/nodejs/

Step 3 - Install

npm install && node install.js

Step 4 - Build

Let's do some Node Package Manager building and extension building.

npm run build
npm run build-ext

Step 5 - Double Check

If you can run this command, then you're good.

jupyter console --kernel nodejs

jupyter-nodejs-cli

Step 6 - Done

Here's what it will look like if you open your notebook within a browser.

jupyter-nodejs


Resources