インタラクティブプログラミング-jupyter notebook
1588 ワード
インストール新しい仮想環境Python仮想環境virtualenvwrapperインストール構成(オプション) Pip取付 起動
リモート・アクセスの構成デフォルトプロファイル を生成する.パスワード設定 方法1 方法2 メソッド1ファイルのpasswordまたはメソッド2の出力をコピーする暗号文字列 編集 加入起動 バックグラウンドで起動し、スクリプト~/cmd/jupyterを作成する.sh 別名構成 を加える.有効エイリアス構成 バックグラウンド起動 Kill
mkvirtualenv jupyter -p python3
pip3 install jupyter
jupyter notebook --no-browser --port 8888
リモート・アクセスの構成
# path ~/.jupyter/jupyter_notebook_config_backup.py
jupyter notebook --generate-config
jupyter notebook password
Enter password: # ,
Verify password: #
# ~/.jupyter/jupyter_notebook_config.json
ipython
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: '************'
~/.jupyter/jupyter_notebook_config_backup.py
c.NotebookApp.ip = '*'
c.NotebookApp.password = u'***... '
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888 # ,
cd /home/user_name
[python_path]/bin/jupyter notebook > jupyter.log 2>&1 &
~/.bash_profile
alias jupyter="bash ~/cmd/jupyter.sh"
source ~/.bash_profile
jupyter
lsof -i:8888
kill -9 [pid]