If you're here you probably already installed anaconda. Anaconda is a great tool that glues together a bunch of tools for python. However, there's some downsides to it: one being that it might be slow and also that it takes up too much space on your machine.
You can either leave it like that, or use miniconda, which is a much lighter program with the same features, which is also recommended.
If you want to switch, first, we'll uninstall:
rm -rf ~/anaconda3brew install --cask miniconda- Open your terminal and:
conda init zsh
- Create an environment
conda create --name ironhack
- Activate the environment
conda activate ironhack
- Install ipykernel
conda install -c anaconda ipykernel python -m ipykernel install --user --name=ironhack
- Open jupyter notebook
jupyter notebook
- Create a new jupyter notebook selecting your kernel as: ironhack
- In a cell:
import numpy as np
- If it returns 'module not found', go back to your terminal and within your environment, do:
pip install numpy
- Congrats! You now have a jupyter notebook that with a new environment and with a library that you installed through pip.