'Creating a jupyter notebook with node

After some research I've come across https://gist.github.com/fperez/9716279 which has examples of how to build a jupyter notebook with python.

sample code:

text = """\
# My first automatic Jupyter Notebook
This is an auto-generated notebook."""

code = """\
%pylab inline
hist(normal(size=2000), bins=50);"""

nb['cells'] = [nbf.v4.new_markdown_cell(text),
nbf.v4.new_code_cell(code) ]

Is there a way to do this is node/js



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source