Reputation: 3535
May I ask how to change the kernel display name from Python [defaul]
to Python 2.7.12
for example?
I've been trying to modify the kernel.json file, particularly chaning the "display_name" from Python 2
to Python 2.7.12
But whenever I reopen the user interface through command ipython notebook
, it never changes to what I want.
To clarify the possible duplicate with previous question: I did try what it suggests to do as I describe in the question. Unfortunately, it just doesn’t work. It would be nice if someone who does make this change successfully could share how they do
Upvotes: 4
Views: 7004
Reputation: 59
OK,I don't know how you add the kernel. I add the kernel like this, and it does work. first, make sure you have installed ipykernel; then run the command:
python -m ipykernel install --name kernelname
Upvotes: 0
Reputation: 2897
I use Linux Mint 17. From a terminal I ran:
jupyter kernelspec list
I have a Python 2 kernel listed:
python2 /home/matthew/.local/share/jupyter/kernels/python2
I edited the file:
/home/matthew/.local/share/jupyter/kernels/python2/kernel.json
Changing line 2 from:
"display_name": "Python 2",
To:
"display_name": "Python 2 test",
I killed the jupyter notebook tabs in chrome, then stopped and restarted the jupyter notebook server.
Now, instead of seeing 'Python 2' as the kernel name, I see 'Python 2 test'.
Hope this helps.
Upvotes: 5