一.jupyter notebook的打开方式
方法1.打开文件夹 --- shift + 右击 (空白处,不可选中任何文件) --- 在此处打开Powershell窗口---(输入)jupyter notebook
方法2.计算机 --- *盘 --- ProgramDate --- Anaconda 3 --- Scripts --- Jupyter notebook.exe 右击 发送到(桌面快捷方式)。 Jupyter notebook.exe (桌面的) --- 右击 属性 --- 快捷方式 ----目标:增加目标文件夹位置 起始位置:更改为目标文件夹位置。
二.设置全部行输出
# 设置全部行输出 (在code中运行)
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
三.安装目录索引。
在Anaconda Prompt中进行安装
1.pip install jupyter_contrib_nbextensions
2.jupyter contrib nbextension install --user (jupyter notebook 要未开启)
3.启动Jupyter Notebook,点选nbextensions,勾选Table of Contents