【经验总结】Jupyter 配置内核

1. 背景描述

使用 国家超算互联网中心 的服务器,创建

jupyterlab 容器,想在之前 conda 创建的环境中运行,可是不行,进入容器就直接进入 jupyterlab

2. 解决方法

配置内核

2.1 激活环境

bash 复制代码
conda activate peft

2.2 安装内核

bash 复制代码
pip install ipykernel -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install ipywidgets -i https://pypi.tuna.tsinghua.edu.cn/simple

2.3 添加内核

bash 复制代码
~$ python -m ipykernel install --user --name=peft  --display-name peft
Installed kernelspec peft in /public/home/acc5trotmy/.local/share/jupyter/kernels/peft

查看内核

bash 复制代码
$ jupyter kernelspec list
Available kernels:
  python3    /public/home/acc5trotmy/.conda/envs/peft/share/jupyter/kernels/python3
  peft       /public/home/acc5trotmy/.local/share/jupyter/kernels/peft

此时启动页有了 peft 内核

3. 使用内核

打开任意 .ipynb 的python 代码,在右上方小甲虫旁边 选择内核

相关推荐
mr_LuoWei20099 分钟前
python工具:python代码知识库笔记
数据库·python
weixin_395448919 分钟前
cursor日志
人工智能·python·机器学习
天天爱吃肉821827 分钟前
【跨界封神|周杰伦×王传福(陶晶莹主持):音乐创作与新能源NVH测试,底层逻辑竟完全同源!(新人必看入行指南)】
python·嵌入式硬件·算法·汽车
岱宗夫up40 分钟前
Python 数据分析入门
开发语言·python·数据分析
码界筑梦坊42 分钟前
325-基于Python的校园卡消费行为数据可视化分析系统
开发语言·python·信息可视化·django·毕业设计
asheuojj44 分钟前
2026年GEO优化获客效果评估指南:如何精准衡量TOP5关
大数据·人工智能·python
多恩Stone1 小时前
【RoPE】Flux 中的 Image Tokenization
开发语言·人工智能·python
网安墨雨1 小时前
Python自动化一------pytes与allure结合生成测试报告
开发语言·自动化测试·软件测试·python·职场和发展·自动化
powerfulhell1 小时前
寒假python作业5
java·前端·python
铉铉这波能秀1 小时前
LeetCode Hot100 中 enumerate 函数的妙用(2026.2月版)
数据结构·python·算法·leetcode·职场和发展·开发