Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Unable to set the kernel ("Not specified") for a jupyter notebook in Pycharm

Writer Matthew Barrera

As seen in the screenshot the kernel is "Not specified" and can not set since the dropdown is disabled. Can this be remedied?

enter image description here

The Project interpreter is python3 and otherwise for other file types the project works fine

enter image description here

1 Answer

I've run into the same issue of PyCharm not allowing me to select a Jupyter kernel other than the one that is saved to the notebook (the drop-down menu is either grayed-out as in your picture, or disappears altogether). This condition appears to occur when the kernel that was active when the notebook was saved is not available in the current environment. The only workaround I've found for this situation is:

  1. Start a Jupyter notebook server using the same Python environment as you are using in PyCharm
  2. From the Jupyter server web page, open the notebook
  3. From the Kernel menu, select Change kernel, and then select the desired kernel
  4. Save the notebook, then close/halt it
  5. Re-open the notebook in PyCharm. It should then be able to execute with the kernel that was chosen in Step 3 above.
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.