File: inline_chunks.mdw

package info (click to toggle)
python-pweave 0.30.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,068 kB
  • sloc: python: 30,281; makefile: 167
file content (20 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

# This example tests inline code chunks  


Change properties of a matplotlib plot with inline chunk

<%
import matplotlib
matplotlib.rcParams.update({'figure.figsize' : (6, 4),
                        'savefig.dpi': 100,
                        'font.size' : 10,})
pweave_test = True
%>	


<<>>=
print(pweave_test)
@

Now do some calculation 2+2= <%= 2+2 %> and continue with text...