如何在pyCharm的jupyter中指定python3内核? [英] How to specify python3 kernel in jupyter in pyCharm?

查看:311
本文介绍了如何在pyCharm的jupyter中指定python3内核?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的设定 这是我的剧本

Here is my setting and this is my script

我试图在pyCharm中使用jupyter笔记本,但是它一直使用python2而不是python3.

I am trying to use jupyter notebook in pyCharm, but it kept using python2 instead of python3.

添加:

此图片在Chrome中运行jupyter笔记本.

this pic is running jupyter notebook in chrome.

推荐答案

我的问题是我有多个内核,而PyCharm启动了默认内核.一种方法可能是配置PyCharm以指定要启动的首选内核,我没有研究如何做到这一点.我只是在Jupyter中更改了默认内核,这对我有用(我为tensorflow提供了virtualenv). c.MultiKernelManager.default_kernel_name = 'tensorflow'.

My problem was that I had multiple kernels, and PyCharm launches the default kernel. One approach might be to configure PyCharm to specify the kernel of choice to start up, I didn't investigate how to do that. I simply changed the default kernel in Jupyter and this worked for me (I have a virtualenv for tensorflow). c.MultiKernelManager.default_kernel_name = 'tensorflow'.

这篇关于如何在pyCharm的jupyter中指定python3内核?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆