Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify python3 kernel in jupyter in pyCharm?

Here is my setting enter image description here and this is my script enter image description here

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

Any idea about this problem?

Add:

this pic is running jupyter notebook in chrome. enter image description here

like image 900
Stanley Avatar asked Nov 08 '22 20:11

Stanley


1 Answers

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'.

like image 55
Jochen Avatar answered Nov 15 '22 06:11

Jochen