当前位置:网站首页>Solve the problem that jupyter cannot connect to the kernel based on pycharm and Anaconda -- solution 1
Solve the problem that jupyter cannot connect to the kernel based on pycharm and Anaconda -- solution 1
2022-06-11 16:31:00 【herongherong】
Knowledge point :
One 、Anaconda Create a virtual environment and use Jupyter-notebook Open the virtual environment
1、 complete anaconda Software installation
2、 complete pycharm Software installation
3、 complete anaconda Virtual environment creation
Tsinghua image quickly creates a virtual environment
4、 Activate the virtual environment
activate Name of the environment
5、 If your pycharm Medium terminal Before running PS, Then you may appear Jupyter Can't connect Kernel( kernel ) problem
stay setting Search for terminal, take shell path Switch to cmd.exe that will do
Then turn off , Reopen pycharm.




6、 Add virtual environment to jupyter notebook
(1) install ipykernel:pip install ipykernel
(2) Activate the environment

(3) Write environment to Notebook Of kernel in :
python -m ipykernel install --user --name Name of the environment --display-name "Python ( Name of the environment )"


result :C:\Users\herong\AppData\Roaming\jupyter\kernels\pytorch_test1 Under this path kernel.json The file displays correctly
(4) open Jupyter notebook
###### (5) Pop up jupyter Interface selection environment

Be careful :
1、 The address bar of your browser kernel_name=pytorch_test1 important , It means you start to enter that environment .
http://localhost:8888/notebooks/jupyter_20220606/Untitled4.ipynb?kernel_name=pytorch_test1
2、jupter To try connecting more , Sometimes I feel unstable , I don't know if it's metaphysics ?
''' This is just my solution , It may not be a good solution to all problems , I hope it can help you to some extent , If we can find a better solution , Can comment , Thank you bosses '''

边栏推荐
- [LeetCode每日一题] |686.重复叠加字符串匹配
- 减肥期间可以吃肉吗?会胖吗?
- Memory image of various data types in C language
- 回归预测 | MATLAB实现RBF径向基神经网络多输入单输出
- RDKit教程
- Factory calibrated gravity: working principle and installation position of carbon monoxide sensor, calibration standard description
- 2022安全员-C证特种作业证考试题库及答案
- Data enhancement
- 09 Minimum Spanning Tree highway
- Interview high frequency algorithm question --- longest palindrome substring
猜你喜欢

The flat life of older farmers from Beijing to Holland

R1 Quick Open Pressure Vessel Operation test Library and Simulation Test in 2022

leetcode684. Redundant connection (medium)

利用 MATLAB 和 DCRAW 处理数码相机 RAW 文件的完整流程

What if you can't access the desktop after the computer is turned on

Memory image of various data types in C language

回归预测 | MATLAB实现RBF径向基神经网络多输入单输出

JVM 的组成

web网页设计实例作业 ——河南美食介绍(4页) web期末作业设计网页_甜品美食大学生网页设计作业成品

Web page design example assignment -- Introduction to Henan cuisine (4 pages) web final assignment design web page_ Dessert and gourmet college students' web design homework finished product
随机推荐
LeetCode——24. 两两交换链表中的节点(三指针)
[learn FPGA programming from scratch -18]: quick start chapter - operation steps 2-6- VerilogHDL sequential circuit syntax analysis (taking the counter as an example)
A team of heavyweights came to the "digital transformation" arena of CLP Jinxin ice and snow sports
Differences between list and set access elements
Project workspace creation steps - Zezhong ar automated test tool
laravel8 实现签到功能案例
09-最小生成树 公路村村通
Production problem troubleshooting reference
What if you can't access the desktop after the computer is turned on
如何优化 Compose 的性能?通过「底层原理」寻找答案 | 开发者说·DTalk
时间复杂度与空间复杂度解析
Learn about Prometheus from 0 to 1
Can I eat meat during weight loss? Will you get fat?
整了20张高清数据分析全知识地图,强烈建议收藏!
2022安全员-C证特种作业证考试题库及答案
项目经理如何击退被工作汇报支配的恐惧感?
2022 R1 quick opening pressure vessel operation test question bank and simulation test
利用 MATLAB 和 DCRAW 处理数码相机 RAW 文件的完整流程
2022安全员-A证考试题模拟考试题库模拟考试平台操作
laravel 8 使用passport 进行Auth验证及颁发token