Notebooks are where data scientists process, analyse, and visualise data in an iterative, collaborative environment. They typically run environments for languages like Python, R, and Scala. For years, data science notebooks have served academics and research scientists as a scratchpad for writing code, refining algorithms, and sharing and proving their work. Today, it's a workflow that lends itself well to web developers experimenting with data sets in Node.js.
To that end, pixiedust_node is an add-on for Jupyter notebooks that allows Node.js/JavaScript to run inside notebook cells. Not only can web developers use the same workflow for collaborating in Node.js, but they can also use the same tools to work with existing data scientists working in Python.
pixiedust_node is built on the popular PixieDust helper library. Let’s get started.
- Setup
- Running the samples
- Credits
To get started with nodebooks you'll need a local installation of
- PixieDust and its prerequisites
- A Python 2.7 kernel with Spark 2.x. (see section Install a Jupyter Kernel in the PixieDust installation instructions)
- Node.js/npm
Nodebooks are currently not supported by the Watson Data Platform.
To access the samples, clone this repository and launch a Jupyter server on your local machine.
$ git clone https://github.com/ibm-watson-data-lab/nodebook-code-pattern
$ cd nodebook-code-pattern
$ jupyter notebook notebooks/
Open nodebook_1 to learn more about
- using variables, functions, and promises,
- working with remote data sources, such as Apache CouchDB (or its managed sibling Cloudant),
- visualizing data
- sharing data between Python and Node.js.
No notebook changes should be required to complete all steps.
Some of the nodebook code pattern examples access a read-only Cloudant database for illustrative purposes. If you prefer you can create your own copy of this database by replicating from remote database URL https://56953ed8-3fba-4f7e-824e-5498c8e1d18e-bluemix.cloudant.com/cities. [Learn more about database replication...]
This code pattern is based on a series of blog posts that were first published by Glynn Bird on medium.com.
