jupyterはメモを使います

1250 ワード

主な内容:Linuxクラウドサーバーにおけるjupyterの使用に関する問題
システム環境:アリ雲Ubuntu 16.04+Python 2.7
1.Jupyterの設置 
REF:http://blog.csdn.net/jenyzhang/article/details/73275232
    Pip install jupyterの時にヒントを与えます。IPython 6.0+does not support Python 2.6、2.7、3.0、3.1、or 3.2。    When using Python 2.7,please install IPython 5.LTS Long Term Support version.    Beginning with IPython 6.0,Python 3.3 and above is required.
REF:http://www.fatalerrors.org/a/ipython-6.0-does-not-support-python-2.6-2.7-3.0-3.1-or-3.2.html
   追加インストール:
wangpeng@ubuntu:~$ wget https://pypi.python.org/packages/f7/48/5702699caf20208d61a92157c01d1eb281093e3e02e9bcd4b5031ccea6a1/ipython-5.4.1-py2-none-any.whl#md5=2b801f50b5e82a3fabca42b661568bf5
wangpeng@ubuntu:~$ sudo pip install ipython-5.4.1-py2-none-any.whl
jupyterの再インストールを試みました。成功しました。
2.Jupyterを配置してサービスを提供する。
uuntuでは、以下のパラメータを使用します。
jupyter notebook--ip=0.0.0--port==8888
一般的には、terminal sessionが終了したら、サーバー側はまだ稼働しています。nohup command&コマンドで書き換えるといいです。
その後、本機のブラウザを使って、IP:8888を入力すればアクセスできます。
Jupyterのルートディレクトリは、jupyter命令を実行する時にある現在のディレクトリですので、あらかじめ新しいものを作っておいたほうがいいです。
また、リモートで直接TerminalでJupyterを実行すると、このセッションが終了するとjupyterサーバも閉鎖されますので、このような状況を避けるために、nohupコマンドを使用することができます。