OpenMarkov is an open-source software tool for probabilistic graphical models. It has been developed especially medicine, but also used to build applications in other fields and tuition, more than 30 countries. In this paper we explain how use it as a pedagogical teach the main concepts of Bayesian networks influence diagrams, such conditional dependence independence, d-separation, Markov blank...