Skip to content

Template for converting Jupyter notebooks to an asciidoc book.

License

Notifications You must be signed in to change notification settings

AllenDowney/JupyterAsciidocTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JupyterAsciidocTemplate

Template for converting Jupyter notebooks to an asciidoc book.

  1. Put the notebooks in the notebooks folder.

  2. Install nbmake and fastdoc

https://semaphoreci.com/blog/test-jupyter-notebooks-with-pytest-and-nbmake https://fastai.github.io/fastdoc/

pip install nbmake
pip install fastdoc
  1. cd into fd and git clone your Atlas repo.

  2. Review prep_notebooks.py and post_process.py to see if there's anything you need to adjust.

  3. Run

sh build.sh

to copy over the notebooks, run the notebooks using nbmake, prep the notebooks, convert them, postprocess the asciidoc, and copy the files into the Atlas repo.

Note that utils.py configures Matplotlib to generate figures with high enough resolution for print. You can also configure it to generate other formats, etc.

About

Template for converting Jupyter notebooks to an asciidoc book.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published