If you want to enter the virtual environment with jupyter, nb_conda_kernels is recommended

Overview

As the title says. If you search in Japanese, only the method using jupyter_environment_kernels will be hit, but nb_conda_kernels developed by Anaconda official. Anaconda-Platform / nb_conda_kernels) is easier and more reliable.

Introduction

Just execute the following command in the environment where jupyter is started.

conda install -c conda-forge nb_conda_kernels

Open jupyter and select your favorite environment from "Kernel"-> "Change Kernel".

Details

I think there is a great demand to change the environment for running jupyter notebook and juypter lab to the virtual environment of anaconda. If you search for "jupyter virtual environment" in Japanese, you will find many articles that introduce the method using jupyter_environment_kernels. However, operations other than install, such as rewriting config, are required. Also, looking at this repository, the final commit is 2018/2, so maintenance concerns remain. Therefore, we recommend nb_conda_kernels as an alternative. This is developed by Anaconda official, and you can change the virtual environment in jupyter just by installing it. This is definitely recommended because there is no need to rewrite the config.

Recommended Posts

If you want to enter the virtual environment with jupyter, nb_conda_kernels is recommended
If you want to include awsebcli with CircleCI, specify the python version
AssertNumQueries is useful if you want to easily test N + 1 queries with django
[OpenCV] When you want to check if it is read properly with imread
If you don't know how to draw the graph you want with matplotlib, it is convenient to look at the gallery.
When the variable you want to superscript with matplotlib is two or more characters
Switch virtual environment with jupyter
I want to initialize if the value is empty (python)
I want to start a jupyter environment with one command
Reflect the virtual environment created with Miniconda in Jupyter notebook
Move what you installed with pip to the conda environment
If you want your colleagues to use the same language
If you want to become a data scientist, start with Kaggle
Don't write Python if you want to speed it up with Python
[TensorFlow] If you want to run TensorBoard, install it with pip
When you want to adjust the axis scale interval with APLpy
When you want to use multiple versions of the same Python library (virtual environment using venv)
What to do if the Pipenv environment is corrupted by updating Homebrew
How to easily switch the virtual environment created by Conda on Jupyter
When you want to use it as it is when using it with lambda memo
I want to blog with Jupyter Notebook
If you want to get multiple statistics with groupby in pandas v1
What to do if you can't install with pip in babun environment
If you think the PyCharm environment is broken, it's because of the file name
What you want to memorize with the basic "string manipulation" grammar of python
If you want to make a discord bot with python, let's use a framework
Create the strongest calculator environment with Sympy + Jupyter
If you want to create a Word Cloud.
When you want to update the chrome driver.
Try using conda virtual environment with Jupyter Notebook
From Python environment construction to virtual environment construction with anaconda
What is the last programming language you learn in your life? (If you want to catch up with a club with a lifetime salary of 300 million yen)
A convenient function memo to use when you want to enter the debugger if an error occurs when running a Python script.
I want to get started with the Linux kernel, what is the list head structure?
I want to plot the location information of GTFS Realtime on Jupyter! (With balloon)
If you get the error "basis matrix is singular to working precision" in GLPK
What to do if you get an Import Error when importing matplotlib with Jupyter
[Introduction to Python] What is the important "if __name__ =='__main__':" when dealing with modules?
Virtual environment construction with Docker + Flask (Python) + Jupyter notebook
If you want to use Cython, also include python-dev
Links to do what you want with Sublime Text
When you want to filter with Django REST framework
I want to inherit to the back with python dataclass
Ssh to virtual environment with remote development of vscode
The programming language you want to be able to use
I wrote you to watch the signal with Go
How to build Anaconda virtual environment used in Azure Machine Learning and link with Jupyter
Make a note of what you want to do in the future with Raspberry Pi
[Development environment] If you cannot migrate php artisan with Operation not permitted, check the permissions!
Solution if the module is installed in Python but you get an error in Jupyter notebook
If you want Python completion in VS Code, Microsoft Python Language Server is the best story
If you want to put an argument in the closure function and execute it later
If you want to use field names with hyphens when updating firestore data in python
When generating a large number of graphs with matplotlib, I do not want to display the graph on the screen (jupyter environment)
Virtual environment with Python 3.6
Solution when you want to use cv_bridge with python3 (virtualenv)
One liner to hit if you forget where today is
[AWS] What to do when you want to pip with Lambda
I tried to analyze the whole novel "Weathering with You" ☔️
[Python] If you suddenly want to create an inquiry form
Memo to get the value on the html-javascript side with jupyter