Commit bd5f9add authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Merge branch 'develop' into 'master'

v0.3.2

See merge request !21
parents 8c20b1f1 5fba87d9
Pipeline #10147 passed with stages
in 1 minute and 51 seconds
......@@ -15,4 +15,4 @@ tests/notebooks
*.egg-info/
dist/
poetry.lock
.venv
.venv*/
# Changelog
## [0.3.2] - 2020-11-06
### Changed
* Handle bookbook import error
## [0.3.1] - 2020-11-06
### Changed
* use flit instead of poetry
* Use flit instead of poetry
## [0.3.0] - 2020-11-05
### Changed
* `style_ipython.tplx` -> `style_ipython.tex.j2` in `/theme/default/templates/book.tplx`. Please update this file in your local `theme/` dir if you are using nbconvert >= 6.0
* some code enhancement
* Some code enhancement
### Fixed
......
......@@ -6,4 +6,4 @@ import logging
log = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
__version__ = '0.3.1'
\ No newline at end of file
__version__ = '0.3.2'
\ No newline at end of file
import jinja2
from . import log
import os
from bookbook.latex import combine_and_convert
from pathlib import Path
......@@ -57,6 +57,15 @@ class Book:
with BookContext(self.bookbook_filename, bookbook_template,
self.output_path):
# Call bookbook
try:
from bookbook.latex import combine_and_convert
except ModuleNotFoundError:
msg = """\
bookbook is not installed. Due to a change in nbconvert install this forked version:
pip install git+https://github.com/boileaum/bookbook.git@master
"""
log.error(msg)
exit(msg)
combine_and_convert(Path.cwd(),
Path(self.book_title),
pdf=True,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment