Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthieu Boileau
nbcourse
Commits
bd5f9add
Commit
bd5f9add
authored
Nov 06, 2020
by
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
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
bd5f9add
...
...
@@ -15,4 +15,4 @@ tests/notebooks
*.egg-info/
dist/
poetry.lock
.venv
.venv
*/
CHANGELOG.md
View file @
bd5f9add
# Changelog
## [0.3.2] - 2020-11-06
### Changed
*
Handle bookbook import error
## [0.3.1] - 2020-11-06
### Changed
*
u
se flit instead of poetry
*
U
se 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
*
s
ome code enhancement
*
S
ome code enhancement
### Fixed
...
...
nbcourse/__init__.py
View file @
bd5f9add
...
...
@@ -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
nbcourse/book.py
View file @
bd5f9add
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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment