1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
`````python
from pylab import *
x = linspace(0, 2*pi, 1000)
`````
```python
plot(x, sin(x))
```
```{python, caption="Sinc function", echo=False}
plot(x, sinc(x))
```
```{python}
print("Hello")
```
```{.python, wrap = True }
print("pweave " * 20)
```
Some text in between
```{python, wrap = False}
print("pweave " * 20)
```
```{python, evaluate = False}
plot(x)
```
```{python, f_spines = False}
plot(x)
```
```{python, results = "markdown"}
print("**Bold stuff**")
```
```{python term=True}
for i in range(10):
print(i)
```
```{python engine="shell"}
echo hello
```
|