# How to use jsmva

**URL:** <https://swan-community.web.cern.ch/t/how-to-use-jsmva/150>\
**Category:** Jupyter Notebooks\
**Created:** [October 24, 2019, 5:29pm UTC](https://swan-community.web.cern.ch/t/how-to-use-jsmva/150 "2019-10-24T17:29:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hrussell](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/h/82dd89/32.png) [@hrussell](https://swan-community.web.cern.ch/u/hrussell)\
**Post date:** [October 24, 2019, 5:29pm UTC](https://swan-community.web.cern.ch/t/how-to-use-jsmva/150/1 "2019-10-24T17:29:27Z")

</div>

Hi,

I’m trying to use jsmva but I keep getting import errors. Is there a specific configuration this needs to be used under? and (aside from asking), is there any place I could find this out?

I found this tutorial: [https://nbviewer.jupyter.org/github/iml-wg/tmvatutorials/blob/master/TMVAinJupyter\_FullTutorial.ipynb](https://nbviewer.jupyter.org/github/iml-wg/tmvatutorials/blob/master/TMVAinJupyter_FullTutorial.ipynb), which seem to indicate it should work with root 6.09 (and I gather higher?)

I’ve tried JupyROOT 6.18/00 (from the default kernel config), both with python 2 and python 3.

python 2 error:  
ImportError: No module named utils

python 3 error:  
ModuleNotFoundError: No module named ‘JupyROOT.utils’

Thanks,  
Heather

---

<div class="post-metadata">

**Author:** ![etejedor](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://swan-community.web.cern.ch/u/etejedor)\
**Post date:** [October 25, 2019, 7:32am UTC](https://swan-community.web.cern.ch/t/how-to-use-jsmva/150/2 "2019-10-25T07:32:39Z")

</div>

Hi Heather,

This looks like some bug that was introduced in JsMVA at some point. What you can do is try with older stacks (e.g. LCG\_95?) and check if the error is there.

Also, please open a ticket in the ROOT forum to report the issue ([https://root-forum.cern.ch/](https://root-forum.cern.ch/)) and choose the TMVA category.

---

<div class="post-metadata">

**Author:** ![hrussell](https://swan-community.web.cern.ch/letter_avatar_proxy/v4/letter/h/82dd89/32.png) [@hrussell](https://swan-community.web.cern.ch/u/hrussell)\
**Post date:** [October 25, 2019, 7:43am UTC](https://swan-community.web.cern.ch/t/how-to-use-jsmva/150/3 "2019-10-25T07:43:55Z")

</div>

Hi Enric,

thanks, I’ll file a bug. I got it working with LCG\_93 (didn’t explicitly try 95, though).

cheers,  
Heather
