如何远程访问linux的ipython notebook

在linux虚拟机上安装了Anaconda,想用windows打开linux上的ipython notebook,所以在SecureCRT上输入ipython notebook,结果如下:
[centos@localhost ~]$ ipython notebook
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future
[I 23:13:49.959 NotebookApp] Serving notebooks from local directory: /home/centos
[I 23:13:49.959 NotebookApp] 0 active kernels 
[I 23:13:49.959 NotebookApp] The Jupyter Notebook is running at: h没t有t中p:文/的/localhost:8888/?token=16587f36ceee954b4e646768c9b0d04b6801007dca9de91c
[I 23:13:49.959 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 23:13:49.959 NotebookApp] No web browser found: could not locate runnable browser.
[C 23:13:49.959 NotebookApp] 
    
    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        h没t有t中p:文/的/localhost:8888/?token=16587f36ceee954b4e646768c9b0d04b6801007dca9de91c
 
(小象问答不给贴链接,实际上没有中文的)

把“h没t有t中p:文/的/localhost:8888/?token=16587f36ceee954b4e646768c9b0d04b6801007dca9de91c照拷下来自然是不能打开的”
于是我把localhost改成linux的ip,即在浏览器中输入“h没t有t中p:文/的/192.168.2.109:8888/?token=16587f36ceee954b4e646768c9b0d04b6801007dca9de91c”
结果依然不能访问。
 
 
不知道是哪里弄错了,还是说我这想法是不能实现的?

fish - Hadooper

赞同来自: 鸿毛

只监听了127.0.0.1,因此只能从通过机器本身自带的浏览器,访问http://127.0.0.1:8888" rel="nofollow" target="_blank">http://localhost:8888或者 http://127.0.0.1:8888" rel="nofollow" target="_blank">http://127.0.0.1:8888 才行。但从你之前的提示看,你机器上并没有浏览器。

胡嘉蔚

赞同来自: fish

要更改一下jupyter的配置,把localhost换成服务器ip, 参考 http://blog.csdn.net/miss_snow_m/article/details/53093465  我前几天刚弄了一遍(第5步可以跳过)

fish - Hadooper

赞同来自:

启动之后,执行下netstat -antp | fgrep 8888,看这个端口是否在被监听状态。

鸿毛

赞同来自:

fish老师你好,我好像点不了评论您的回复,所以就在这里直接回复了,希望您看得到   我启动ipython notebook之后,在linux上执行netstat -antp | fgrep 8888,得到结果如下:[centos@localhost ~]$ netstat -antp | fgrep 8888 (Not all processes could be identified, non-owned process info  will not be shown, you would have to be root to see it all.) tcp        0      0 127.0.0.1:8888          0.0.0.0:*               LISTEN      5989/python          tcp6       0      0 ::1:8888                :::*                    LISTEN      5989/python linux比较渣,这应该是有被监听吧?需要用ROOT看下么?

鸿毛

赞同来自:

我是在windows用SecureCRT去访问linux的,也就是个命令行模式,自然没有浏览器了。   监听不是很了解,是需要系统先开启起来的还是需要客户端去访问的时候才有的?因为我windows是用192.168.2.109去访问linux的,这样像您说的只监听了127.0.0.1确实是有问题的。所以我在想,那我现在是需要用什么命令去把192.168.2.109的8888的监听启动起来呢,还是我原本打开的姿势就不对?

祝俊胜

赞同来自:

No web browser found: could not locate runnable browser. ipython notebook一直进不去

要回复问题请先登录注册