安装jupyter notebook
pip install jupyter ipython
配置
ipython
from notebook.auth import passwd
passwd()
Out[2]: 'argon2:$argon2id$v=8**&&*&&*&*&*&*'
复制输出的Out[2]:后面的内容备用
jupyter notebook --generate-config
修改生成的 /home/miao/.jupyter/jupyter_notebook_config.py文件
c.NotebookApp.ip='localhost'
c.NotebookApp.password = 'argon2:$argon2id$v=8**&&*&&*&*&*&*'
c.NotebookApp.open_browser = False # 用本地的浏览器
c.NotebookApp.port =8890
设置tunneling
mobaxterm->tunneling
remote server和local clients写法相同,SSH server地址按服务端ip地址
step3:打开tunnel
step4: 在MobaxTerm的terminal输入
conda install -n yourenv ipykernel
conda install nb_conda
python -m ipykernel install --user --name yourenv --display-name yourenv
Q
/usr/bin/python: No module named ipykernel
A
python -m ipykernel install --user
python -m ipykernel install --user --name yourenv --display-name yourenv
conda avtivate yourvirtualenv
cd /home/miao/Documents/Notebook
jupyter notebook --allow-root
step5:打开浏览器
https://localhost:8890/
https://blog.csdn.net/cc__cc__/article/details/108060618