Orion Constellation Off Platform Project (Jupyter Notebook)

I am currently trying to answer this question:

However the first step is to use:
%matplotlib notebook
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

When I execute this cell I get an error:
ModuleNotFoundError Traceback (most recent call last)
----> 1 get_ipython().run_line_magic(‘matplotlib’, ‘notebook’)

This is followed by a long list of back end code being shown, then the line:
ModuleNotFoundError: No module named ‘matplotlib’

Can anyone help me fix this? I installed miniconda and the jupyter-notebook.exe file is in my miniconda folder; also the orion constellation notebook is in my miniconda folder so I’m unsure why matplotlib can’t be found?

Thank you very much for the help!

Miniconda is, by definition, a minimal installation. It only installs Python, the conda package manager, some utilities like pip, and any dependencies for those programs.

Any other packages which you want to use, like matplotlib, must be manually installed before you can use them.

The Miniconda documentation explains this. :slight_smile:

I had same issue.
My solution:

  1. From command line I started python:
    $ python
  2. In python shell I checked is matplotlib already installed:
    >>> help(“modules”)
    If you cannot find matplotlib, that mean you did not installed yet.
  3. Install matplotlib: I use pip. In command line:
    $ python -m pip install matplotlib
1 Like