\documentclass{article}
\usepackage{tikz}
\usepackage{pythontex}
\usepackage{amsmath}

\begin{document}

\begin{pycode}
from arbre_proba import arbre_tikz

arbre = {
	"label": "$\Omega$",
	"mode": "fraction",
	"level distance 1": 3,
	"level distance 2": 3,
	"sibling distance 1": 4,
	"sibling distance 2": 2,
	"flechelength": .5,
	"flechecolor": "orange",
	"nodestyle": "circle, draw, fill=blue!15",
	"edgestyle": "thick, blue",
	"probastyle": "color=red, fill=white,inner sep=1mm",
	"probaend": True,
	"enfants": [
		{
			"prob": "3/10",
			"label": "A",
			"enfants": [
				{"prob": "4/10", "label": "$A_1$", "enfants": []},
				{"prob": "6/10", "label": "$A_2$", "enfants": [
					{"prob": "1/5", "label": "$C_1$", "enfants": []},
					{"prob": "4/5", "label": "$C_2$", "enfants": []}
					]}
			]
		},
		{
			"prob": "7/10",
			"label": "B",
			"enfants": [
				{"prob": "1/2", "label": "$B_1$", "enfants": []},
				{"prob": "1/2", "label": "$B_2$", "enfants": []}
			]
		}
	]
}

print(arbre_tikz(arbre))
\end{pycode}



\end{document}
