How to specify python3 kernel in jupyter in pyCharm?

Viewed 4172

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

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

Related