Setting up the environment
Let's see how we can set up Blurr in a JavaScript environment.
Pre-requisites for Blurr
Before installing Blurr, we must know what Node.js is and how its package manager works. Just having Node.js and NPM installed should be enough. To install these packages, please go to the official documentation here: https://nodejs.org/en/docs/guides/getting-started-guide/.
The Node.js installation will include NPM, which will already take us halfway. We're now able to initialize a new Node.js project using npm init
on the command line. Now let's learn how to install the package.
Also, we're going to need Jupyter Kernel Gateway running in WebSocket mode. To learn how to set up and initialize an instance, read the documentation available here: https://jupyter-kernel-gateway.readthedocs.io/.
Installing the package
To install Blurr in an already set-up Node.js project, we can use the following command in our Terminal or Command Prompt...