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

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -