Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 487 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 487 Bytes

data_common

Tools to tidy up jupyter notebook use. Includes default mysociety theme for altair charts and helper functions to render to markdown readmes.

To use the altair chart with support for our fonts + logo, use Chart rather than alt.Chart.

In cell code at top include:

from data_common.notebook import *

and if wanted to automatically render, add this cell code to bottom:

# make sure you save before running this
render_to_markdown()
render_to_html()