У меня есть некоторый существующий код Python, который я хочу преобразовать в блокнот Jupyter. Я бегал:
jupyter notebook
Теперь я могу видеть это в моем браузере:

Но как мне создать новый блокнот? Ссылка Notebook в меню неактивна, и я не вижу других вариантов создания новой записной книжки.
Я заметил это в командной строке во время работы Jupyter:
[W 22:30:08.128 NotebookApp] Native kernel (python2) is not available
9 ответов
Лучший ответ
Похоже, у вас не установлено ядро IPython (или какое-либо другое ядро в этом отношении!).
Существуют различные способы (старые версии, новые версии) для этого. Один из самых простых способов — использовать pip. Из командной строки введите:
pip install ipython
Вам также может понадобиться зарегистрировать ядро в Jupyter (см. новые версии. страницы):
python -m pip install ipykernel
python -m ipykernel install [--user] [--name <machine-readable-name>] [--display-name <"User Friendly Name">]
Теперь вы сможете запускать записную книжку Python от Jupyter.
Кроме того, установка Jupyter с использованием любого из методов этой страница должна убедиться, что ядро IPython уже есть. Лично для меня Анаконда всегда работала «из коробки» (когда я использовал ее в Linux и Mac OS).
15
Alex Riley
25 Мар 2017 в 10:16
Для меня ошибка была:
ОШИБКА: ноутбук 6.0.0 требует tornado> = 5.0, но у вас будет tornado 4.5.3, который несовместим.
Я решил это, выполнив следующие шаги:
pip uninstall ipykernel
pip install --upgrade tornado
pip install ipykernel
Теперь откройте блокнот Jupyter из терминала. Это должно работать нормально.
1
political scientist
12 Сен 2019 в 09:31
У меня была похожая проблема, но она выглядит так, потому что я использовал python 2.7 . Мне удалось запустить записную книжку, выбрав раскрывающийся список «Python 2» .
3
smishra
25 Окт 2016 в 15:34
У меня была та же проблема, потому что я установил ipython с sudo apt-get -y install ipython ipython-notebook вместо sudo pip install ipython. Поэтому удалите все содержимое ipython, используя: sudo apt-get --purge удалить ipython sudo pip удалить ipython
А затем установить его с помощью pip
0
El Rakone
19 Окт 2016 в 11:20
Ни один из других ответов не работал для меня в Ubuntu 14.04. После 2 дней борьбы я наконец понял, что мне нужно установить последнюю версию IPython (а не ту, что в pip). Во-первых, я удалил ipython из моей системы с помощью:
sudo apt-get --purge remove ipython
sudo pip uninstall ipython
Я не знаю, нужны ли вам оба, но оба сделали что-то в моей системе.
Затем я установил ipython из исходного кода следующим образом:
git clone https://github.com/ipython/ipython.git
cd ipython
sudo pip install -e .
Обратите внимание на точку в конце последней строки. После этого я перезапустил ноутбук jupyter, и было обнаружено ядро python2!
17
dangirsh
20 Фев 2016 в 03:13
Если у кого-то все еще есть эта проблема, для меня это было решено запуском
pip install --upgrade ipykernel
0
Msingh
20 Ноя 2017 в 11:50
Я также получал ту же ошибку. Мой снимок ошибки здесь. Следующее ниже решило мою проблему:
sudo apt-get -y install ipython ipython-notebooksudo -H pip install jupyter
Это не сработало, потому что я получал 0 сообщение активного ядра, и это произошло потому, что я установил jupyter, используя только step2 (пропущено step1).
0
devil in the detail
7 Июл 2017 в 19:56
Потому что версия ipython слишком новая. Вы можете использовать следующие команды
pip uninstall ipython
pip install ipython==5.1
0
ascripter
10 Май 2018 в 08:35
Также проверьте, включены ли в вашем браузере файлы cookie. Без файлов cookie список каталогов выглядит пустым, как и меню создания блокнота.
0
Jan Šimbera
4 Окт 2018 в 14:10
I have some existing Python code that I want to convert to a Jupyter notebook. I have run:
jupyter notebook
Now I can see this in my browser:

But how do I create a new notebook? The Notebook link in the menu is greyed out, and I can’t see any other options to create a new notebook.
I’ve noticed this on the command line while Jupyter is running:
[W 22:30:08.128 NotebookApp] Native kernel (python2) is not available
![]()
Alex Riley
163k45 gold badges255 silver badges234 bronze badges
asked Jan 18, 2016 at 9:56
3
None of the other answers worked for me on Ubuntu 14.04. After 2 days of struggling, I finally realized that I needed to install the latest version of IPython (not the one in pip). First, I uninstalled ipython from my system with:
sudo apt-get --purge remove ipython
sudo pip uninstall ipython
I don’t know if you need both, but both did something on my system.
Then, I installed ipython from source like this:
git clone https://github.com/ipython/ipython.git
cd ipython
sudo pip install -e .
Note the period at the end of the last line. After this, I reran jupyter notebook and the python2 kernel was detected!
answered Feb 20, 2016 at 3:13
dangirshdangirsh
3011 silver badge4 bronze badges
2
It looks like you don’t have an IPython kernel installed (or any other kernel for that matter!).
There are various ways (old versions, new versions) to do this. One of the simplest ways is to use pip. From the command line enter:
pip install ipython
You may also need to register the kernel with Jupyter (see the new versions page):
python -m pip install ipykernel
python -m ipykernel install [--user] [--name <machine-readable-name>] [--display-name <"User Friendly Name">]
You should now be able to launch a Python notebook from Jupyter.
Alternatively, installing Jupyter using any of the methods on this page should ensure that the IPython kernel is already there. Personally, Anaconda has always just worked out of the box for me (when I’ve used it on Linux and Mac OS).
answered Jan 18, 2016 at 10:21
![]()
Alex RileyAlex Riley
163k45 gold badges255 silver badges234 bronze badges
3
I had similar issue but looks like this its because I was using python 2.7. I was able to launch notebook by clicking on «Python 2» dropdown option.
answered Oct 25, 2016 at 15:34
smishrasmishra
2,92426 silver badges29 bronze badges
0
For me the error was:
ERROR: notebook 6.0.0 has requirement tornado>=5.0, but you’ll have tornado 4.5.3 which is incompatible.
I solved it by following the below steps:
pip uninstall ipykernel
pip install --upgrade tornado
pip install ipykernel
Now open jupyter notebook from terminal. It should work fine.
answered Sep 12, 2019 at 8:52
1
I had the same problem, it is because I installed ipython with sudo apt-get -y install ipython ipython-notebook instead of sudo pip install ipython.
Therefore, uninstall all ipython stuff using:
sudo apt-get --purge remove ipython
sudo pip uninstall ipython
and then install it with pip
answered Oct 19, 2016 at 11:20
![]()
El RakoneEl Rakone
1311 silver badge11 bronze badges
I was also getting the same error. My error snapshot is here. Following below solved my problem:
sudo apt-get -y install ipython ipython-notebooksudo -H pip install jupyter
It was not working because I was getting 0 active kernel message and this came because I installed jupyter using step2 only (skipped step1).
answered Jul 7, 2017 at 19:56
If anyone is still having this issue, for me it was solved by running
pip install --upgrade ipykernel
answered Nov 20, 2017 at 11:50
because ipython version is too new.
you can use follow commands
pip uninstall ipython
pip install ipython==5.1
ascripter
5,38712 gold badges49 silver badges66 bronze badges
answered May 10, 2018 at 7:41
![]()
Also, check if you have cookies enabled in your browser. Without cookies, the listing of the directory appears empty, as does the notebook creation menu.
answered Oct 4, 2018 at 14:10
Jan ŠimberaJan Šimbera
4483 silver badges15 bronze badges
I have some existing Python code that I want to convert to a Jupyter notebook. I have run:
jupyter notebook
Now I can see this in my browser:

But how do I create a new notebook? The Notebook link in the menu is greyed out, and I can’t see any other options to create a new notebook.
I’ve noticed this on the command line while Jupyter is running:
[W 22:30:08.128 NotebookApp] Native kernel (python2) is not available
![]()
Alex Riley
163k45 gold badges255 silver badges234 bronze badges
asked Jan 18, 2016 at 9:56
3
None of the other answers worked for me on Ubuntu 14.04. After 2 days of struggling, I finally realized that I needed to install the latest version of IPython (not the one in pip). First, I uninstalled ipython from my system with:
sudo apt-get --purge remove ipython
sudo pip uninstall ipython
I don’t know if you need both, but both did something on my system.
Then, I installed ipython from source like this:
git clone https://github.com/ipython/ipython.git
cd ipython
sudo pip install -e .
Note the period at the end of the last line. After this, I reran jupyter notebook and the python2 kernel was detected!
answered Feb 20, 2016 at 3:13
dangirshdangirsh
3011 silver badge4 bronze badges
2
It looks like you don’t have an IPython kernel installed (or any other kernel for that matter!).
There are various ways (old versions, new versions) to do this. One of the simplest ways is to use pip. From the command line enter:
pip install ipython
You may also need to register the kernel with Jupyter (see the new versions page):
python -m pip install ipykernel
python -m ipykernel install [--user] [--name <machine-readable-name>] [--display-name <"User Friendly Name">]
You should now be able to launch a Python notebook from Jupyter.
Alternatively, installing Jupyter using any of the methods on this page should ensure that the IPython kernel is already there. Personally, Anaconda has always just worked out of the box for me (when I’ve used it on Linux and Mac OS).
answered Jan 18, 2016 at 10:21
![]()
Alex RileyAlex Riley
163k45 gold badges255 silver badges234 bronze badges
3
I had similar issue but looks like this its because I was using python 2.7. I was able to launch notebook by clicking on «Python 2» dropdown option.
answered Oct 25, 2016 at 15:34
smishrasmishra
2,92426 silver badges29 bronze badges
0
For me the error was:
ERROR: notebook 6.0.0 has requirement tornado>=5.0, but you’ll have tornado 4.5.3 which is incompatible.
I solved it by following the below steps:
pip uninstall ipykernel
pip install --upgrade tornado
pip install ipykernel
Now open jupyter notebook from terminal. It should work fine.
answered Sep 12, 2019 at 8:52
1
I had the same problem, it is because I installed ipython with sudo apt-get -y install ipython ipython-notebook instead of sudo pip install ipython.
Therefore, uninstall all ipython stuff using:
sudo apt-get --purge remove ipython
sudo pip uninstall ipython
and then install it with pip
answered Oct 19, 2016 at 11:20
![]()
El RakoneEl Rakone
1311 silver badge11 bronze badges
I was also getting the same error. My error snapshot is here. Following below solved my problem:
sudo apt-get -y install ipython ipython-notebooksudo -H pip install jupyter
It was not working because I was getting 0 active kernel message and this came because I installed jupyter using step2 only (skipped step1).
answered Jul 7, 2017 at 19:56
If anyone is still having this issue, for me it was solved by running
pip install --upgrade ipykernel
answered Nov 20, 2017 at 11:50
because ipython version is too new.
you can use follow commands
pip uninstall ipython
pip install ipython==5.1
ascripter
5,38712 gold badges49 silver badges66 bronze badges
answered May 10, 2018 at 7:41
![]()
Also, check if you have cookies enabled in your browser. Without cookies, the listing of the directory appears empty, as does the notebook creation menu.
answered Oct 4, 2018 at 14:10
Jan ŠimberaJan Šimbera
4483 silver badges15 bronze badges
I have just upgraded Jupyter to the version 4.3.1
While I can open previously created ipynb files, I cannot create new ones.
When I try to create a new notebook file, I get a pop up windows saying:
Creating Notebook Failed
An error occurred while creating a new notebook
Forbidden
In the terminal I notice this output:
[W 12:53:23.375 NotebookApp] 403 POST /api/contents (::1): '_xsrf' argument missing from POST
[W 12:53:23.383 NotebookApp] 403 POST /api/contents (::1) 8.92ms referer=http://localhost:8888/tree?token=e7fbbb58516dc1359fcc26a1079093166a1f713ee5b94ccd
I use Jupyter with Python 3.5.2 and IPython 5.1.0
asked Jan 8, 2017 at 11:59
Mauro GentileMauro Gentile
1,4056 gold badges26 silver badges36 bronze badges
3
Another alternative to confirm the issue is to open your Jupyter Session in another browser and you might be redirected to a screen like the following:

If you open a new console and type
jupyter notebook list
You’ll see your current notebook and the URL will contain a token. Open that in a new tab and problem solved.
Output command should look like this:
Currently running servers:
http://localhost:8888/?token=cbad1a6ce77ae284725a5e43a7db48f2e9bf3b6458e577bb :: <path to notebook>
answered Jun 4, 2018 at 22:40
2
Jupyter blocks non-local requests. To access Jupyter from an external address we can execute it with the following parameters:
jupyter notebook --NotebookApp.allow_origin=* --NotebookApp.allow_remote_access=1
answered May 20, 2021 at 8:34
FreemanFreeman
5,6843 gold badges46 silver badges48 bronze badges
I had this problem just now, but I noticed that it worked in Edge. Deleting all browser cache including cookies in Chrome solved this in my case.
answered May 15, 2017 at 8:37
larslovlielarslovlie
1891 gold badge2 silver badges10 bronze badges
У меня есть ununtu 18.04.1 установленных, а также анаконда 4.5.8.
После ввода:
$ jupyter notebook
Я получаю стандарт jupyter домашняя страница.
Но когда я пытаюсь нажать New/Notebook/Python3, я получаю следующую ошибку:
Creating Notebook Failed>An error occurred while creating a new notebook>Permission denied: Untitled.ipynb
Как я могу зафиксировать это?
Когда я ввожу навигатора анаконды в терминал GUI ниже запусков. Я могу затем запустить s jypter ноутбук, который работает путем простого нажатия на jupyter вкладку ноутбука.

Однако я не вижу, что анаконда не предлагает нигде ни одному GUI выше на на исходном терминальном сеансе?
desktop:~$ cd /Projects/jupyter-notebook
desktop:/Projects/jupyter-notebook$ anaconda-navigator
Не возможно ввести что-либо на этом терминальном сеансе, в то время как навигатор анаконды все еще работает!
задан
30 July 2018 в 14:58
поделиться