# Which ecosystem to choose for teaching

**URL:** <https://discourse.mc-stan.org/t/which-ecosystem-to-choose-for-teaching/11626>\
**Category:** Interfaces\
**Created:** [October 29, 2019, 12:46pm UTC](https://discourse.mc-stan.org/t/which-ecosystem-to-choose-for-teaching/11626 "2019-10-29T12:46:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbaranowski](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jbaranowski/32/5734_2.png) [@jbaranowski](https://discourse.mc-stan.org/u/jbaranowski)\
**Post date:** [October 29, 2019, 12:46pm UTC](https://discourse.mc-stan.org/t/which-ecosystem-to-choose-for-teaching/11626/1 "2019-10-29T12:46:38Z")

</div>

I am in a bit stuck at the moment.  
I’m relatively new to stan, but I want to incorporate it into my teaching.  
However, I am not sure which ecosystem should I focus on.  
My students are much more familiar with Python, and Python is something that the local work market wants.  
On the other hand, a sheer amount of tools available in R is amazing. Are there even packages comparable to brms for python?  
What would you recommend? Are advantages of easier interfaces to stan overweight the requirement of learning R?

I’ll be grateful for any suggestions.

---

<div class="post-metadata">

**Author:** ![mitzimorris](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/mitzimorris/32/29_2.png) [@mitzimorris](https://discourse.mc-stan.org/u/mitzimorris)\
**Post date:** [October 29, 2019, 1:22pm UTC](https://discourse.mc-stan.org/t/which-ecosystem-to-choose-for-teaching/11626/2 "2019-10-29T13:22:31Z")

</div>

> [@jbaranowski](#):
>
> Are there even packages comparable to brms for python?

right now the Python ecosystem lacks anything like BRMS - we’re working on it!

the Arviz package has some of the Bayesplot functionality for downstream visualization and analysis.

Aki just pointed me to “bambi” - [GitHub - bambinos/bambi: BAyesian Model-Building Interface (Bambi) in Python.](https://github.com/bambinos/bambi) which has a syntax similar to lme4 and uses PyMc3 as a backend.

I’ve been working on [CmdStanPy](https://github.com/stan-dev/cmdstanpy) which is a lightweight wrapper around Stan - it’s feature complete but still in Beta - [https://cmdstanpy.readthedocs.io/en/latest/](https://cmdstanpy.readthedocs.io/en/latest/) - there are corresponding notebooks here: [https://github.com/stan-dev/cmdstanpy/tree/master/docs/notebooks](https://github.com/stan-dev/cmdstanpy/tree/master/docs/notebooks)

some of the Stan case studies are already written for PyStan - you could probably update these to use CmdStanPy and Arviz, and if you do these, we’ll be happy to add your version to the case studies page.

---

<div class="post-metadata">

**Author:** ![jbaranowski](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jbaranowski/32/5734_2.png) [@jbaranowski](https://discourse.mc-stan.org/u/jbaranowski)\
**Post date:** [October 30, 2019, 7:47pm UTC](https://discourse.mc-stan.org/t/which-ecosystem-to-choose-for-teaching/11626/3 "2019-10-30T19:47:15Z")

</div>

Thanks for pointing me in a right direction.

---

<div class="post-metadata">

**Author:** ![jbaranowski](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jbaranowski/32/5734_2.png) [@jbaranowski](https://discourse.mc-stan.org/u/jbaranowski)\
**Post date:** [December 16, 2022, 5:58pm UTC](https://discourse.mc-stan.org/t/which-ecosystem-to-choose-for-teaching/11626/6 "2022-12-16T17:58:18Z")

</div>

As the topic reactivated after 3 years, I just wanted to post, that I’ve chosen **cmdstanpy**. Main reason was that at the moment I started pystan was not available for Windows machines, and I have full scope of systems among my students. So far I am much more pleased with using it over my previous experiences with pystan.

The problem now is that I got bitten by an INLA bug, and this is only available in R ;-)
