This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to use Mantel module on jupyter notebook (python)?

I'm trying to use the Mantel test as described here: http://jwcarr.github.io/MantelTest/. I try to import or even install using pip but it just doesn't work on jupyter. I keep getting the following error: "ModuleNotFoundError: No module named 'mantel". Does anybody know how have access to this module on jupyter? Thanks in advance!

python jupyter manteltest

Hi, I think there are two things you can check:

  1. Can you import your module in python interactive? means just type python, then import mantel
  2. If you can import in pure python, is the python used by jupyter the same as the python in the 1st step?

Thanks! I'm a beginner on python and jupyter. But I've figured. Mantel module is not like NumPy or SciPy (these are like native-modules of python). I had to download the git folder of mantel module to my computer cd to it and then it eventually worked.

answering your second question, I believe I'd have to upload it or access this same module through jupyter to use its functionalities.

0 answers

No answers yet.

Log in to answer this question.