Después de investigar un poco, encontré https://gist.github.com/fperez/9716279 que tiene ejemplos de cómo construir un cuaderno jupyter con python.
Código de muestra:
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) ]¿Hay alguna manera de hacer esto es node/js?