Skip to content

baldwint/lektor-jupyter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jupyter Notebooks in Lektor CMS

This plugin provides rudimentary support for embedding Jupyter notebooks in the Lektor static content management system.

Usage

This extension makes available a new field type called jupyter which embeds a Jupyter notebook. To use it, define e.g. in your model ini file:

[fields.body]
type = jupyter
source = record.attachments

The source configuration is mandatory to tell Lektor where to look for the notebook you want to embed. In the admin interface there will be a drop-down selector where you choose which notebook you want.

Known shortcomings

  • At the moment, the only valid source for notebooks is record.attachments.
  • When the attached notebook is modified, Lektor doesn't know to update the page in which it is embedded unless you also change the contents.lr file.

Pull requests welcome!

About

Embed Jupyter notebooks in Lektor pages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages