# API change for SCANVI

**URL:** <https://discourse.scverse.org/t/api-change-for-scanvi/53>\
**Category:** scvi-tools\
**Tags:** scanvi\
**Created:** [March 22, 2021, 9:45pm UTC](https://discourse.scverse.org/t/api-change-for-scanvi/53 "2021-03-22T21:45:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![webbedfeet](https://avatars.discourse-cdn.com/v4/letter/w/d07c76/32.png) [@webbedfeet](https://discourse.scverse.org/u/webbedfeet)\
**Post date:** [March 22, 2021, 9:45pm UTC](https://discourse.scverse.org/t/api-change-for-scanvi/53/1 "2021-03-22T21:45:22Z")

</div>

It appears that the API has changed for SCANVI.train from the documentation on the web to what is actual in version 0.8.1. For example, `train(max_epochs=200)` doesn’t work anymore. Can the online tutorials be updated to reflect the changed API

---

<div class="post-metadata">

**Author:** ![adamgayoso](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/adamgayoso/32/100_2.png) [@adamgayoso](https://discourse.scverse.org/u/adamgayoso)\
**Post date:** [March 23, 2021, 5:30pm UTC](https://discourse.scverse.org/t/api-change-for-scanvi/53/2 "2021-03-23T17:30:45Z")

</div>

Can you point to which tutorial is incorrect? If you’re using version 0.8.1, you’d need to change the documentation version at the bottom right of the documentation website. Also note that if you click the colab badge on an older version of the documentation, it will show the newest version of the tutorial.

All the tutorials and documentation are for version 0.9.X currently.

---

<div class="post-metadata">

**Author:** ![webbedfeet](https://avatars.discourse-cdn.com/v4/letter/w/d07c76/32.png) [@webbedfeet](https://discourse.scverse.org/u/webbedfeet)\
**Post date:** [March 23, 2021, 7:13pm UTC](https://discourse.scverse.org/t/api-change-for-scanvi/53/3 "2021-03-23T19:13:10Z")

</div>

Got it. Thanks for pointing to the version issue. I’ll update my version. The version-specific docs are fine.
