Code Monkey home page Code Monkey logo

nbpages's Introduction

nbpages

Tools for building collections of notebooks into web pages for public consumption.

There are two versions, outlined below. They use cookiecutter to build a notebook repository, but depend on shared python code in this package (which depends heavily on nbconvert). The cookiecutter templates that generate these repository are in separate branches in this repo named cookiecutter_*.

nbpages-html

This is the simpler version, which uses a set of templates to generate an html site directly from the notebooks. To set up a repo for this version, do:

$ cookiecutter gh:eteq/nbpages --checkout cookiecutter_html

Once this has been created, the build step is simply:

$ python convert.py

Which should generate your html pages.

nbpages-sphinx

This version uses the same input notebook layout, but instead uses sphinx. That is, it converts the notebooks to RST, then runs sphinx to generate the web page. While this is more complex (and there is therefore more to go wrong), it allows intermixing of notebook pages and narrative text without needing to hand-write any HTML. It also provides all the sphinx indexing, code-documenting, and linking goodness for cases where that is desirable.

To set up a repo in this case, do:

$ cookiecutter gh:eteq/nbpages --checkout cookiecutter_sphinx

but then do the standard build as for a sphinx project:

$ make html

This should automatically do the notebook to RST conversion as a pre-step.

nbpages's People

Contributors

adrn avatar eteq avatar york-stsci avatar astrofrog avatar bsipocz avatar pllim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.