obestwalter / lektor-jupyter-preprocess

Jupyter notebook integration by preprocessing notebook and rendering to contents.lr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lektor Jupyter preprocess

Integrate Jupyter notebooks into Lektor CMS.

Installation

The plugin is not installable via PyPI (yet), so you have to install it as a local plugin in the packages folder of your site.

Get the code

Copy it

Download this folder and copy it into <your lektor site>/package.

... or add as git submodule

$ mkdir <your lektor site>/packages
$ cd <your lektor site>/packages
$ git submodule add https://github.com/obestwalter/lektor-jupyter-preprocess

Get started

Once you have the plugin in packages, run a lektor clean and lektor serve to start integrating notebook powered articles into your site.

Have a look at the example project how to configure and use it.

The plugin is in use on my personal website - read more about how it works in the obligatory meta article about my website.

Warning: minimal implementation

I am mainly using this to render simple notebooks with text output. Anything more involved would need to render directly to HTML, which is likely possible by extending this plugin. The are a few todos in the code already about this.

If this is not what you want

About

Jupyter notebook integration by preprocessing notebook and rendering to contents.lr


Languages

Language:Jupyter Notebook 80.6%Language:Python 16.7%Language:HTML 1.9%Language:CSS 0.7%