To use Python in nteract, a Python kernel, ipykernel, is added to an environment, such as a virtual environment or conda environment. Installing ipykernel into your environment will add Python to your available kernels' list in nteract.
conda create -n my_conda python=3
conda activate my_conda
conda install ipykernel # install Python kernel (ipykernel) into the conda environment
python -m ipykernel install # install python kernel into nteract's available kernel list
python3 -m venv my_environment_name # create a virtual environment
source my_environment_name/bin/activate # activate the virtual environment
python -m pip install ipykernel # install the python kernel (ipykernel) into the virtual environment
python -m ipykernel install # install python kernel into nteract's available kernel list
python3 -m venv my_environment_name # create a virtual environment
my_environment_name\Scripts\activate # activate the virtual environment
python -m pip install ipykernel # install the python kernel (ipykernel) into the virtual environment
python -m ipykernel install # install python kernel into nteract's available kernel list
Alternatively, you may wish to install the Python kernel, ipykernel, globally on your system. This enables you to use the Python kernel without creating a virtual environment.
python3 -m pip install ipykernel # install the python kernel (ipykernel) globally
python3 -m ipykernel install # install python kernel into nteract's available kernel list