› Forums › Technical support › Jupyter Notebooks › Matplotlib
- This topic has 1 reply, 2 voices, and was last updated 3 years, 10 months ago by Catherine Lai.
-
AuthorPosts
-
-
September 27, 2020 at 20:02 #12023
Hi! I’ve been working through the Jupyter notebooks for Tutorial A in Module 1, but I have already run into some issues in terms of running the codes involving matplotlib. I was under the impression that matplotlib would have come installed as part of the Jupyter notebook that I installed on my Mac last week. Basically, when I run the cells at the top of notebooks 2-5, I get an error message that says “ModuleNotFoundError” followed by several paragraphs of code and then ending with another line saying “ModuleNotFoundError: No module named ‘matplotlib'”. I’m not really sure how to get around this, and it’s a bit problematic because I’m basically not able to run any of the other codes in those notebooks as a result and am therefore not really able to make sense of the module content. Do I need to install matplotlib separately or something?
-
September 28, 2020 at 08:31 #12024
Hi Kerim,
Yes, you need to install matplotlib separately to jupyter notebooks unless you are using the Edina Noteable server (where it is already installed by default).
The instructions here describe the install process if you want to run it locally (see ‘The Normal Way: Running Jupyter Notebooks on your computer’):
https://github.com/laic/uoe_speech_processing_course/blob/master/sp-m0-how-to-start.ipynb
But the basic options to install matplotlib are:
1. If you have Anaconda (or miniconda) installed, you can install matplotlib using the following command (after you have activated your conda environment)
> conda install -c conda-forge matplotlib
2. Otherwise you can use pip:
> pip install matplotlib
If you’ve done that and it still doesn’t work, you’ll need to check your installation of python and related path variables (i.e. where python looks for packages). Let us know, and we can go through that.
If you’re internet access is ok, you can also try using the Edina Noteable service (it really is easier!):
See the instructions in sp-m0-how-to-start.ipynb
-
-
AuthorPosts
- You must be logged in to reply to this topic.