ipynb文件打开方式

https://github.com/zlotus/notes-linear-algebra 下载后解压的文件为ipynb格式,需要特殊方法才能打开。

如何打开ipynb文件

通过安装anaconda

anaconda包含大量的科学计算包,其中就包含ipython 和jupyter,安装之后即可用其打开ipython文件.安装方式为: 官网下载相应python版本的安装文件,我这里下载的是python2.7的版本.然后输入安装命令: 
bash Anaconda2-4.3.1-Linux-x86_64.sh

通过安装ipython 和jupyter

该方法与上面方法相同,只是需要手动安装ipython和jupyter,安装命令如下:

sudo pip install ipython --upgrade
sudo pip install jupyter

如何使用

接下来只需要在终端中输入:

# 切换到文件目录
c80k2@c80k2-Vostro-3667❯~$ cd ~/下载/notes-linear-algebra-master

即可在浏览器中打开当前目录,可以通过切换目录来选择所要打开的ipynb文件,双击即可查看文件内容.

c80k2@c80k2-Vostro-3667❯~/下载$ jupyter notebook
[I 13:47:52.639 NotebookApp] Writing notebook server cookie secret to /run/user/1000/jupyter/notebook_cookie_secret
[I 13:47:53.165 NotebookApp] Serving notebooks from local directory: /home/c80k2/下载
[I 13:47:53.166 NotebookApp] 0 active kernels
[I 13:47:53.166 NotebookApp] The Jupyter Notebook is running at:
[I 13:47:53.166 NotebookApp] http://localhost:8888/?token=7ab32f26f9d6dff054a20867bbcb15a7bf92b9bf578a7e8d
[I 13:47:53.166 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 13:47:53.167 NotebookApp] 
    
    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=7ab32f26f9d6dff054a20867bbcb15a7bf92b9bf578a7e8d
[I 13:47:53.712 NotebookApp] Accepting one-time-token-authenticated connection from 127.0.0.1
已在现有的浏览器会话中创建新的窗口。
[I 13:48:05.645 NotebookApp] Writing notebook-signing key to /home/c80k2/.local/share/jupyter/notebook_secret
[W 13:48:05.647 NotebookApp] Notebook notes-linear-algebra-master/chapter01.ipynb is not trusted
[I 13:48:05.923 NotebookApp] Kernel started: bdfb3567-49d6-48f7-b410-08c011c41bf4
[I 13:48:07.042 NotebookApp] Adapting to protocol v5.1 for kernel bdfb3567-49d6-48f7-b410-08c011c41bf4
[I 13:50:06.701 NotebookApp] Saving file at /notes-linear-algebra-master/chapter01.ipynb
[W 13:50:06.702 NotebookApp] Notebook notes-linear-algebra-master/chapter01.ipynb is not trusted
[I 15:32:53.587 NotebookApp] Starting buffering for bdfb3567-49d6-48f7-b410-08c011c41bf4:71a8ec54ec3b48b08c0c1ea0f62ae897

打开如下:

猜你喜欢

转载自my.oschina.net/u/3412738/blog/1619594