一、准备工作
1. 安装Anaconda、pycharm
(也可以使用独立安装和使用,无需依赖 Anaconda)
pip install jupyter notebook
2. Jupyter官网
3. Jupyter常用命令
Jupyter
usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir] [--paths] [--json] [--debug] [subcommand] Jupyter: Interactive Computing positional arguments: subcommand the subcommand to launch optional arguments: -h, --help show this help message and exit --version show the versions of core jupyter packages and exit --config-dir show Jupyter config dir --data-dir show Jupyter data dir --runtime-dir show Jupyter runtime dir --paths show all Jupyter paths. Add --json for machine-readable format. --json output paths as machine-readable json --debug output debug information about paths Available subcommands: bundlerextension console dejavu events execute kernel kernelspec lab labextension labhub migrate nbclassic nbconvert nbextension notebook qtconsole run script server serverextension troubleshoot trust Please specify a subcommand or one of the optional arguments.
二、PyCharm配置 Jupyter Notebook
1. 启动Jupyter Notebook 服务器
终端输入:
jupyter notebook
2. 复制URL 地址
如图,终端中显示 Jupyter Notebook 服务器的 URL 地址(通常是 http://localhost:8888/),复制如下任一链接(包括token部分)