Skip to content

Linking notebooks together

One of the powerful features in Tonic is the ability to link notebooks together. Notebooks work just like modules in npm / CommonJS: there's a top level module object, and anything attached to its exports property is available to the outside world. 

Notebooks are required using our notebook module, like this:
require("notebook")("user-name/notebook-name/version");
You can export simple utility functions, like this map notebook, or this notebook that provides an easy way to turn things into d3 visualizations.  Here's a notebook that imports the d3 helper and graphs some data. 


Feedback and Knowledge Base