Install Anaconda & Jupyter Notebook
0. Intro
Anaconda offers the easiest way to perform Python/R data science and machine learning on a single machine.
Jupyter Notebook is the original web application for creating and sharing computational documents.
More information related to this topic could be found from:Installing Python · cs109/content Wiki · GitHub
1. Install Anaconda
官网下载链接:Anaconda | Anaconda Distribution
For Windows user:
点击绿色按钮即可下载,若下载速度过慢,可以考虑镜像清华大学开源软件镜像站 | Tsinghua Open Source Mirror,或右键使用迅雷下载。
下载完毕后打开安装包,一路next默认同意即可。安装进度条走完需要约五到六分钟。
安装成功后,打开开始菜单(
win
+s
)→搜索Anaconda
,打开。一般首次启动时间较长,有时会提示更新,安装更新即可。
启动 Jupyter Notebook
正常情况下浏览器打开,可以看到所在目录
将
.ipynb
文件添加到该目录下,点击即可在浏览器中打开。
Install Libraries
Change the working directory
如果未生成过 Jupyter 的配置文件jupyter_notebook_config.py
打开 Anaconda Prompt
输入
jupyter notebook --generate-config
配置文件生成在了对应路径下,即C:\Users\xiaonan\.jupyter
打开此配置文件,找到c.NotebookApp.notebook_dir
字段,等号右边填入需要变更为的目标路径
即c.NotebookApp.notebook_dir = "D:\XJTLU\INT303\Labs"
,并去除行前的注释#
重新打开Jupyter Notebook 即可。
Install Anaconda & Jupyter Notebook
http://www.tsingloo.com/2022/09/12/ec4e8f0ed6ab46c6a5b20a38145de4ff/