| 1 |
--- |
| 2 |
kernelspec: |
| 3 |
display_name: Python 3 |
| 4 |
language: python |
| 5 |
name: python3 |
| 6 |
--- |
| 7 |
|
| 8 |
```{code-cell} ipython3 |
| 9 |
%%html |
| 10 |
<p><a href="https://github.com/mwouts/jupytext", style="color: rgb(0,0,255)">Jupytext</a> on GitHub</p> |
| 11 |
``` |
| 12 |
|
| 13 |
```{code-cell} ipython3 |
| 14 |
%%latex |
| 15 |
$\frac{\pi}{2}$ |
| 16 |
``` |
| 17 |
|
| 18 |
```{code-cell} ipython3 |
| 19 |
%load_ext rpy2.ipython |
| 20 |
``` |
| 21 |
|
| 22 |
```{code-cell} ipython3 |
| 23 |
%%R |
| 24 |
library(ggplot2) |
| 25 |
ggplot(data=data.frame(x=c('A', 'B'), y=c(5, 2)), aes(x,weight=y)) + geom_bar() |
| 26 |
``` |
| 27 |
|
| 28 |
```{code-cell} ipython3 |
| 29 |
%matplotlib inline |
| 30 |
import pandas as pd |
| 31 |
pd.Series({'A':5, 'B':2}).plot(figsize=(3,2), kind='bar') |
| 32 |
``` |