В текстовом файле этот блокнот выглядит так:
Код: Выделить всё
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"print(\"Hello\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "test-kernel",
"language": "python",
"name": "test-kernel"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Код: Выделить всё
(env) ...$ ipython Untitled.ipynb
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
~/.../Untitled.ipynb in
3 {
4 "cell_type": "code",
----> 5 "execution_count": null,
6 "metadata": {},
7 "outputs": [],
NameError: name 'null' is not defined
Код: Выделить всё
ipykernel 5.3.4
ipython 7.2.0
ipython-genutils 0.2.0
jupyter-client 6.1.7
jupyter-core 4.6.3
Подробнее здесь: https://stackoverflow.com/questions/652 ... count-null
Мобильная версия