Kernels

Kernels connect your favorite languages to nteract projects for an improved REPL experience.

Installation

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.

Using conda


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

Using Python3 with pip and a virtual environment on macOS and Linux


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

Using Python3 with pip and a virtual environment on Windows


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.

Using Python3 globally (without 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