The Data Lab menu
  • Topicsarrow_drop_down
  • Projects
  • Aboutarrow_drop_down
  • Get Connected
  • Machine Learning for Developers
  • Notebooks for Developers
  • Offline First
  • Partners + Data
  • Serverless + Data
  • Working with JSON
  • Team
  • Get Involved
  • Code of Conduct
  • Event Support
  • Projects
  • Topicsarrow_drop_down
  • Aboutarrow_drop_down
  • Get Connected
  • Machine Learning for Developers
  • Notebooks for Developers
  • Offline First
  • Partners + Data
  • Serverless + Data
  • Working with JSON
  • Team
  • Get Involved
  • Code of Conduct
  • Event Support
Notebooks for Developers / Collection

NodeBooks

Python and Node.js code, in the same data science notebook.

Glynn Bird
Making it easier to work with JSON.
More by Glynn Bird

Notebooks are where data scientists process, analyze, and visualize data in an iterative, collaborative environment. Having a scratchpad where you can write some code, iteratively work on some algorithms, and visualize the results quickly can speed the collaborative process.

As convenient as Jupyter Python notebooks are, sometimes it’s better to collaborate with tools others find more familiar. For many people, that means JavaScript, in the form of Node.js.

pixiedust_node is an add-on for Jupyter notebooks that allows Node.js to run inside notebook cells. In fact, it’s built on the popular PixieDust helper library.

Getting started

Configuration is only two short notebook cells.

Now you’re ready to fetch some data, in this case, from a Cloudant database.

Then use your favorite Node.js package to generate a data visualization.

In the context of a Jupyter notebook, you’ll see your chart rendered like so:

Rendered pixiedust_node chart in Jupyter Python Notebook

↓ View projects in this collection
Essentials
  • pixiedust_node on GitHub →

Projects

  • Sharing Variables Between Python & Node.js in Jupyter Notebooks
    Medium | GitHub

    They live apart and speak different languages, but these variables hold common values.

    • PixieDust
    • Jupyter Notebook
    • Nodejs
    • Python
  • Mapping the Songs of Bruce Springsteen
    GitHub | Medium

    Analysing geospatial references in The Boss’s lyrics using data science notebooks and Node.js.

    • Jupyter Notebook
    • PixieDust
    • Nodejs
    • Mapbox
    • Cloudant
  • Visualizing Data with Jupyter Notebooks, PixieDust, and Compose MongoDB
    Compose Articles

    Connecting to Compose MongoDB and creating rich presentations for your data inside a Jupyter notebook is made easier with PixieDust.

    • Jupyter Notebook
    • Compose
    • MongoDB
    • PixieDust
    • Python
    • Nodejs
  • Nodebooks: Visualising Data the Node.js Way
    Medium | GitHub

    Generating charts in Python notebooks using only Node.js code (part 3).

    • PixieDust
    • Cloudant
    • Nodejs
    • Python
  • Nodebooks: Sharing Data Between Node.js & Python
    Medium | GitHub

    Connecting to a Cloudant database for analysis (part 2).

    • PixieDust
    • Cloudant
    • Nodejs
    • Python
  • Nodebooks: Introducing Node.js Data Science Notebooks
    Medium | GitHub

    Python and Node.js in the same Jupyter notebook (part 1).

    • PixieDust
    • Nodejs
    • Python
© 2017 IBM Watson Data Lab