Conda/JupyterLab: Creating a Jupyter Kernel with conda environmentΒΆ

Support and Troubleshooting

To create a new Jupyter kernel with a custom conda environment, follow the steps provided below.

  • On your DKubeX terminal, create a new conda environment with the default conda configuration.

    conda create -n newenv
    

    Note

    You can also create a conda environment with custom Python version or custom packages installed. For more information, check the Conda documentation.

  • Activate the new conda environment.

    conda activate newenv
    
  • Install ipykernel.

    conda install ipykernel
    
  • Create the new Jupyter kernel with the following command. Replace the <kernel-name> part with the name of the new kernel.

    ipython kernel install --user --name=<kernel-name>
    
  • (OPTIONAL) Deactivate the conda environment.

    conda deactivate
    

Your new Jupyter kernel is now ready to use. You can use it by opening JupyterLab on your DKubeX workspace and opening a new Launcher.