Set Jupyter Notebook to start with the system, and set up conda custom environment Ubuntu Python

Set Jupyter Notebook to start with the system, and set up conda custom environment Ubuntu Python

Jupyter Notebook is a powerful interactive development environment widely used in fields such as data analysis, machine learning and scientific computing. When using Jupyter Notebook, we may want it to be able to start with the system and use a specific conda environment. This article will introduce how to achieve such a setup on an Ubuntu system.

First, we need to install Jupyter Notebook and conda. Assuming you have conda installed, next we will install Jupyter Notebook in the conda environment. Open a terminal and activate the conda environment you want to use. Then run the following command to install Jupyter Notebook:

conda install jupyter notebook

After the installation is complete, we can use the following steps to set up Jupyter Notebook to start with the system and use a specific conda environment.

Step 1: Create a startup script

First, we need to create a startup script to start Jupyter Notebook. Create a new startup script by entering the following command in the terminal:

nano jupyter_start.sh

In the text editor that opens, enter the following:

#!/bin/bash

conda activate <your_conda_environment>
jupyter notebook

Guess you like

Origin blog.csdn.net/wellcoder/article/details/132748748