赞
踩
使用 国家超算互联网中心 的服务器,创建
jupyterlab 容器,想在之前 conda 创建的环境中运行,可是不行,进入容器就直接进入 jupyterlab
配置内核
conda activate peft
pip install ipykernel -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install ipywidgets -i https://pypi.tuna.tsinghua.edu.cn/simple
~$ python -m ipykernel install --user --name=peft --display-name peft
Installed kernelspec peft in /public/home/acc5trotmy/.local/share/jupyter/kernels/peft
查看内核
$ 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 内核
打开任意 .ipynb 的python 代码,在右上方小甲虫旁边 选择内核
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。