=>PYTHONTEX#py#default#default#0#code#####8#
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))
=>PYTHONTEX:SETTINGS#
version=0.19
outputdir=pythontex-files-Arbre-de-probabilités
workingdir=.
workingdirset=false
gobble=none
rerun=default
hashdependencies=default
makestderr=false
stderrfilename=full
keeptemps=none
pyfuture=default
pyconfuture=none
pygments=true
pygglobal=:GLOBAL||
fvextfile=-1
pyconbanner=none
pyconfilename=stdin
depythontex=false
pygfamily=py|python3|
pygfamily=pycon|pycon|
pygfamily=sympy|python3|
pygfamily=sympycon|pycon|
pygfamily=pylab|python3|
pygfamily=pylabcon|pycon|
