This repo includes instructions and templates for using nbconvert to export Jupyter Notebooks to Sakai.
The sakai.tpl
file is the nbconvert template that removes the unneccessary Bootstrap CSS and adds the Sakai theme CSS.
-
Install nbconvert
-
Copy the sakai.tpl template to your nbconvert template directory
For example, when installing nbconvert on MacOS via Brew, the nbconvert template directory is
/usr/local/lib/python3.7/site-packages/nbconvert/templates
-
Export a notebook to HTML
jupyter nbconvert --to HTML --template sakai Expressions.ipynb
-
Upload your HTML files to Sakai resources
-
Embed the HTML in Lessons using Add Content :: Embed Content on Page
-
Choose the "Or select existing files from Resources" option