Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions pweave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ def publish(file, doc_format="html", theme="skeleton", latex_engine="pdflatex",
return

doc = Pweb(file, kernel="python3", doctype=pformat,
output=output)

doc.theme = theme
output=output, theme=theme)

doc.read()
doc.run()
Expand Down
5 changes: 3 additions & 2 deletions pweave/pweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ class Pweb(object):
:param figdir: ``string`` figure directory
:param mimetype: Source document's text mimetype. This is used to set cell
type in Jupyter notebooks
:param theme: ``string`` html theme
"""

def __init__(self, source, doctype = None, *, informat = None, kernel = "python3",
output = None, figdir = 'figures', mimetype = None):
output = None, figdir = 'figures', mimetype = None, theme = "skeleton"):
self.source = source
name, ext = os.path.splitext(os.path.basename(source))
self.basename = name
Expand Down Expand Up @@ -63,7 +64,7 @@ def __init__(self, source, doctype = None, *, informat = None, kernel = "python3
self.formatted = None
self.reader = None
self.formatter = None
self.theme = "skeleton"
self.theme = theme

self.setformat(doctype)
self.read(reader = informat)
Expand Down