Kernels

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

Kernels hero image

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  # Or python=2 for Python 2
source activate my_conda           # On Windows, remove the word 'source'
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


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 Python 2 with pip and a virtual environment


python -m pip install virtualenv  # install a package for creating virtual environment
cd my_project_folder              # create a project folder
virtualenv my_project             # create a virtual environment
source my_project/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

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

Using Python 2 globally (without a virtual environment)


python -m pip install ipykernel   # install the python kernel (ipykernel) globally
python -m ipykernel install       # install python kernel into nteract's available kernel list