python - echo=False by default in pweave -
how can set flag echo=false default code, when precessing python-script file pweave.
minimal example:
#' # minimal example.  #' minimal example, #' says 'hello' you.  #+ echo=false print('hello')  #' end. which gets processed by
# either: py html pypublish test.py  # or: py markdown pweave -f pandoc test.py 
include following lines @ beginning of document: 1.set echo false first code chunk , change false every other code chunk. 2.you can have in documentation http://mpastell.com/pweave/defaults.html
#+ echo = false import pweave pweave.rcparams["chunk"]["defaultoptions"].update({'echo' : false, 'f_pos' : "h!"}) following documentation can change other parameters, have picked 'f_pos' documentation.
Comments
Post a Comment