linux - 在命令行 (Ubuntu) 上运行 Ipython notebook 时出错

标签 linux python-2.7 ipython jupyter-notebook ubuntu-16.04

我尝试在 ubuntu 命令行上运行一个 ipython 笔记本:###

$ ipython assignment1.ipynb 

-----------------------------------------------------------------------------

NameError                                 Traceback (most recent call last)

/path/to/notebook/assignment1.ipynb in <module>()

36   { 

37    "cell_type": "code", 

---> 38    "execution_count": null,

39    "metadata": {

40     "collapsed": false

NameError: name 'null' is not defined

编辑:

我想像this这样打开终端中的笔记本

但我得到的是this

最佳答案

您正在尝试运行 IPython 笔记本,因此您的命令是错误的。 ipython notebook Playing_with_TensorFlow.ipynb 应该可以解决问题。

IPython Notebook ( http://ipython.org/notebook.html ) is a web based extension of iPython. It's very powerful and convenient and It allows you to mix code, annotation, text, figures into a single interactive document.

Source

并且在未来,请不要发布您的问题的屏幕截图,而是将其键入,请参阅 how to ask a question page .

关于linux - 在命令行 (Ubuntu) 上运行 Ipython notebook 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44450304/

相关文章:

php - 授予 php root 访问权限来运行 Linux cli 应用程序

linux - 如何知道当前进程数以及哪个进程派生了最多进程?

python - 从字典中的 <key, value> 加入值(列表)

python-2.7 - 如何在骨架化的迷宫图像中找到最短路径?

latex - Pandas 数据框作为 latex 或 html 表 nbconvert

python - 将 Pandas 数据框保存到 csv 时,如何保留 columns.name?

linux - 使用新 DNS 无法在 Linux 中 ping www.google.com

python - 输入二维矩阵的每个元素的最短方法

python - 我的一些 Python 包无法在 OSX 控制台中运行

python - 如何使用 bash 脚本结束 django 进程?