<commit_before># knitpy: Elegant, flexible and fast dynamic report generation with python

This is a port of knitr (http://yihui.name/knitr/) and rmarkdown
(http://rmarkdown.rstudio.com/) to python.

To start with, you can run the [example overview document](examples/knitpy_overview.pymd). To 
convert to all defined output formats, run `knitpy --to="all"  -- examples\knitpy_overview.pymd`.
This will produce a `html`, `docx` and `pdf` output (if you have `pdflatex` in path). You can 
view a html version of this file: 
[html rendered version](http://htmlpreview.github.io/?https://github.com/JanSchulz/knitpy/blob/master/examples/knitpy_overview.html)

For a description of the code format see http://rmarkdown.rstudio.com/ and replace
`{r <r style options>}` by `{python <python style options>}` and of course use python 
code blocks...

It uses the IPython kernel infrastructure to execute code, so all kernels for IPython 
are (aem... can potentially be) supported.

## What works:
* `knitpy filename.pymd` will convert filename `filename.pymd` to the defaul output format `html`.
* output formats `html`, `pdf` and `docx`. Change with `--to=<format>`
* code blocks and inline code
* plots are shown inline<commit_msg>Update Readme with link to markdown rendered example<commit_after># knitpy: Elegant, flexible and fast dynamic report generation with python

This is a port of knitr (http://yihui.name/knitr/) and rmarkdown
(http://rmarkdown.rstudio.com/) to python.

To start with, you can run the [example overview document](examples/knitpy_overview.pymd). To 
convert to all defined output formats, run `knitpy --to="all"  -- examples\knitpy_overview.pymd`.
This will produce a `html`, `docx` and `pdf` output (if you have `pdflatex` in path). You can 
view a [markdown rendered](examples/knitpy_overview.html_document.md) and a 
[html rendered](http://htmlpreview.github.io/?https://github.com/JanSchulz/knitpy/blob/master/examples/knitpy_overview.html)
version of this file. It's not yet as pretty as the knitr version...

For a description of the code format see http://rmarkdown.rstudio.com/ and replace
`{r <r style options>}` by `{python <python style options>}` and of course use python 
code blocks...

It uses the IPython kernel infrastructure to execute code, so all kernels for IPython 
are (aem... can potentially be) supported.

## What works:
* `knitpy filename.pymd` will convert filename `filename.pymd` to the defaul output format `html`.
* output formats `html`, `pdf` and `docx`. Change with `--to=<format>`
* code blocks and inline code
* plots are shown inline
{'fraction_non_alphanumeric': 0.11072530864197531, 'fraction_numerical': 0.0, 'mean_word_length': 4.5405982905982905, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6659008', 'n_tokens_mistral': 819, 'n_tokens_neox': 796, 'n_words': 317}