介绍
jupyter
自由软件,开放标准,跨越所有语言交互计算的web服务.
JupyterLab:下一代Notebook 接口
JupyterLab是最新的为基于web交互开发环境,用于notebook,code和数据. 它的灵活的接口允许用户配置和重排 数据科学里的工作流, 科学计算, 计算新闻,和机器学习. 模块化设计招致扩展插件来扩展并且丰富了功能.
Jupyter Notebook:经典的notebook接口
Jupyter Notebook 是最初的web应用,用来创建分享计算文件.它提供一个简单的,流线的,文档为中心的体验.
安装
JupyterLab
Install JupyterLab with pip:
pip install jupyterlab
Note: If you install JupyterLab with conda or mamba, we recommend using the conda-forge channel.
Once installed, launch JupyterLab with:
jupyter-lab
Jupyter Notebook
Install the classic Jupyter Notebook with:
pip install notebook
To run the notebook:
jupyter notebook
常用命令
jupyter notebook --no-browser
jupyter server list
jupter notebook --help
jupter-lab --help
# 便捷获取配置文件所在路径的命令; 如果非第一次运行会提示是否覆盖
jupyter notebook --generate-config
安装
安装软件
import sys
!{sys.executable} -m pip install pandas
或在命令文件中执行
!pip install pandas
Q & A
jupyter notebook忘记密码解决办法
方法1 关闭密码
jupyter notebook--generate-config # 第一次执行会自动生成,再次会提示覆盖
生成目录的~/.jupyter\jupyter_notebook_config.py
NotebookApp.allow_password_require=False # 前的注释删除