IBM/nodebook-code-pattern

Name: nodebook-code-pattern

Owner: International Business Machines

Description: Run Node.js code in Python notebooks

Created: 2018-02-06 22:49:52.0

Updated: 2018-05-24 00:43:43.0

Pushed: 2018-05-24 00:37:01.0

Homepage:

Size: 3797

Language: Jupyter Notebook

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Run Node.js code in Jupyter notebooks

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. To learn more follow the setup steps and explore the getting started notebook or click on the sample image below to preview the output.

preview

Flow

architecture

  1. Install Node.js in target environment (Watson Studio or a local machine)
  2. Open Node.js notebook in target environment
  3. Run Node.js notebook

Included Components

Featured Technologies

Steps

You can run Node.js code in Watson Studio or your local environment:

To preview an example notebook without going through a setup follow this link.

Run Node.js notebooks in Watson Studio

Creating a custom runtime environment

A runtime environment in Watson Studio (IBM's Data Science platform) is defined by its hardware and software configuration. By default, Node.js is not installed in runtime environments and you therefore need to create a custom runtime environment definition. [[Learn more about environments…]](https://dataplatform.ibm.com/docs/content/analyze-data/notebook-environments.html)

Loading the getting started notebook

The getting started notebook outlines how to

In the project you've created, add a new notebook from URL:

Follow the notebook instructions.

You should be able to run all cells without making any changes.


Run Node.js notebooks in a local environment
Setup
Prerequisites

To get started with nodebooks you'll need a local installation of

Installing the samples

To access the samples, clone this repository and launch a Jupyter server on your local machine.

it clone https://github.com/IBM/nodebook-code-pattern.git
d nodebook-code-pattern
upyter notebook notebooks/
Running the samples

Open nodebook_1 to learn more about

No notebook changes should be required to complete all steps.


Optional data source customization

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…]

Sample Output

Open this link to preview the completed notebook.

Links

Learn more

License

Apache 2.0


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.