How to use Mantel module on jupyter notebook (python)?
0
0
Entering edit mode
4.6 years ago

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 • 1.2k views
ADD COMMENT
0
Entering edit mode

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?
ADD REPLY
0
Entering edit mode

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.

ADD REPLY

Login before adding your answer.

Traffic: 2692 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6