当前位置: 首页 > ds >正文

jupyter notebook的相关知识及可能遇到的问题

文章目录

  • 前言
  • 一、jupter切换环境
  • 二、卸载jupyter
  • 三、jupyter扩展的安装
  • 四、jupyter notebook显示的扩展很少,只有四五个--解决方案
  • 五、启动jupyter notebook
  • 六、jupter打开网页没进入编程页面
  • 七、卸载并重新安装jupyter
  • 八、jupyter notebook使用新环境
  • 九、jupyter需要密码
  • 十、jupyter更改路径


前言

以下介绍初学者运行jupyter程序的相关知识及可能遇到的问题。


一、jupter切换环境

在这里插入图片描述

图1 jupter切换环境

二、卸载jupyter

pip uninstall -y jupyter
pip uninstall -y jupyter_core
pip uninstall -y jupyter-client
pip uninstall -y jupyter-console
pip uninstall -y notebook
pip uninstall -y qtconsole
pip uninstall -y nbconvert
pip uninstall -y nbformat
pip uninstall -y jupyter-packaging
pip uninstall -y jupyter-server
pip uninstall -y jupyterlab
pip uninstall -y jupyterlab-pygments
pip uninstall -y jupyter-console
pip uninstall -y jupyterlab-server
pip uninstall -y jupyterlab-widgets

三、jupyter扩展的安装

#1.安装
conda install -c conda-forge jupyter_contrib_nbextensions
#或者
pip install jupyter_contrib_nbextensions
#2.设置
jupyter contrib nbextension install --user

详细参考链接

四、jupyter notebook显示的扩展很少,只有四五个–解决方案

conda remove jupyter_nbextensions_configurator
conda install -c conda-forge jupyter_nbextensions_configurator
conda install -c conda-forge jupyter_contrib_nbextensions

详细参考链接

五、启动jupyter notebook

python -m notebook
Jupyter notebook

六、jupter打开网页没进入编程页面

Anaconda Prompt (ANaconda 3)中先激活环境activate jupter_huan,再输入jupyter notebook

七、卸载并重新安装jupyter

1.conda create -n p0 python=3.8
conda activate p0
2.conda install ipykernel
3.python -m ipykernel install --user --name p0 --display-name “pytorch3.7"
4.conda deactivate
//打开jupyter notebook
jupyter notebook
详细参考链接

八、jupyter notebook使用新环境

1.conda create -n p0 python=3.8
conda activate p0
2.conda install ipykernel
3.python -m ipykernel install --user --name p0 --display-name “pytorch3.7"
4.conda deactivate
//打开jupyter notebook
jupyter notebook
详细参考链接

九、jupyter需要密码

jupyter notebook --generate-config
将:jupyter_notebook_config.py文件中的c.NotebookApp.password后面的密码删掉,如下:
c.NotebookApp.password = ‘’

将jupyter_notebook_config.json文件中的"password"后面的密码删掉,如下:
“password”: “”

十、jupyter更改路径

管理员身份打开Anaconda prompt输入:jupyter notebook --generate-config
文件夹路径C:\Users\Administrator.jupyter
c.NotebookApp.notebook_dir = u’D:\Program Files\jupyter’
如果没有,就直接在文件末尾输入这句话,且不加#
详细参考学习链接

http://www.xdnf.cn/news/13835.html

相关文章:

  • LeetCode 2917.找出数组中的K-or值
  • Shell 脚本:系统管理与任务自动化的利器
  • docker compose安装Prometheus、Grafana
  • ubuntu网络连接失败 + mobaxterm拖拽文件出错等问题解决方法
  • CQL3D编译指南
  • PPIO 上线 Qwen3-Embedding 系列模型
  • C++学习-入门到精通【19】杂项汇总
  • 企业级人员评价系统Web端重构实战:前端架构效能升级
  • 【11408学习记录】考研数学核心突破:矩阵本质、系统信息与向量空间基
  • Linux系统lvm操作演示
  • 傲火集团传媒基地武汉启幕 构建数字娱乐产业生态闭环
  • 图像处理 | 基于matlab的多尺度Retinex(MSR)和自适应直方图均衡化(CLAHE)算法联合的低照度图像增强(附代码)
  • linux安装Redis6.0.8
  • 华为云物联网系统开发(纯云端)外包方案及项目需求说明书
  • PEP 8: E302 expected 2 blank lines, found 0
  • 在服务器上使用 Docker 部署 Node.js 后端服务和前端项目
  • 手写Antd的form组件源码
  • WPF调用Python心率监测脚本解决方案
  • 【iSAQB软件架构】以架构为中心的开发方法
  • 53. 最大的子数组和
  • iteration和每一轮,训练周期,迭代计数器 这些名词是什么关系?
  • 2025年中国人工智能发展研究报告:技术突破、行业变革与全球竞争新格局
  • ‘Target closed‘ error in Puppeteer解决
  • python打卡day52
  • 【GitOps】Kubernetes安装ArgoCD,使用阿里云MSE云原生网关暴露服务
  • 大数据学习(138)-Hive数据分析3
  • 利用Anything LLM和内网穿透工具在本地搭建可远程访问的AI知识库系统(1)
  • (十二)深度学习计算性能:硬件架构、算法效率与理论极限分析
  • Cursor 编辑器中的 Notepad 功能使用指南
  • sherpa-onnx开源语音处理框架研究报告:从技术解析到应用实践