Examples

Below are some examples that demonstrate certain aspects of the content integration process that require careful consideration and are best explained in code:

Jupyter notebooks

Jypyter notebooks are a very powerful tool for interactive programming. You type in commands into an online shell, and you immediately see the results.

To install jupyter notebook on your machine, you run:

pip install jupyter

then to start the jupyter notebook server, run

jupyter notebook

If you then navigate to the directory docs/examples/ in the ricecooker source code repo, you’ll find the same examples described above in the form of runnable notebooks that will allow you to experiment and learn hands-on.

You’ll need to press CTRL+C in the terminal to stop the jupyter notebook server, or use the Shutdown button in the web interface.

Watch the beginning of this Video tutorial to learn how to use the Jypyter notebook environment for interactively coding parts of the chef logic.

 

Advanced examples

The links below will take you to the GitHub repositories of content integration scripts we use to create some of the most popular Kolibri channels in the library:

You can get a list of ALL the content integration scripts by searching for sushi-chef on GitHub.