zondag 26 februari 2017

Remove in block

Make template
make a file called noinblock.tplx and add:

% extend the default article template:
((* extends 'article.tplx' *))

% display input without prompts:
((* block input scoped *))

((* endblock input *))

% treat execute_result (output with prompt) as display_data (output without prompt)
((* block execute_result scoped *))
    ((* block display_data scoped *))
        ((( super() )))
    ((* endblock display_data *))
((* endblock execute_result *))



Run 

$ jupyter nbconvert rapport.ipynb --to pdf --template noinblock



Geen opmerkingen:

Een reactie posten