Anaconda creates and opens jupyter notebook in a new conda environment, and opens jupyter notebook in a new file directory (with video teaching)

Table of contents

The video link is as follows:

anaconda

1. Create a new conda environment;

2. Open jupyter notebook in the new conda environment;

3. Open jupyter notebook in the new file directory;

detailed steps:


The video link is as follows:

This article is also a note based on the teaching and learning of this video, hoping to help more people.

https://www.bilibili.com/video/BV1CU4y1v7PV/?spm_id_from=333.788.top_right_bar_window_history.content.click&vd_source=8cc79578a5f4761ab431858c6c83510a

anaconda

1. Create a new conda environment;

2. Open jupyter notebook in the new conda environment;

3. Open jupyter notebook in the new file directory;

detailed steps:

1. Create environment: conda create -n {environment name} python=3.9

                        conda create -n pytorch python=3.10

2. Open the pre-processing of jupyter in the environment:

(1)conda install ipykernel

(2) python -m ipykernel install --name {your virtual environment name, such as qq} --display-name {the name you want to display}     

        python -m ipykernel install --name pytorch --display-name pytorch

(3)conda install jupyter notebook

3. Open a certain folder on a certain disk:

(1)d:

(2) cd folder name cd base

(3)jupyter notebook

(Python) What should I do if Jupyter Notebook fails to run the code and prompts an error and autosave fails? Can't link kernel? _MqtGhj's Blog - CSDN Blog

Disclaimer: This article is written based on the video in the video link in this article. It is only for learning purposes. If there is any infringement, the contact must be deleted!

Guess you like

Origin blog.csdn.net/weixin_64338372/article/details/130441419