Jupyter远程连接

1,038 阅读1分钟

Jupyterhub 403 : Forbidden Blocking request with non-local 'Host'. If the notebook should be accessible at that name, set NotebookApp.allow_remote_access to disable the check

这个问题需要修改你的jupyter配置文件

创建配置文件

jupyter notebook --generate-config

配置位置

Writing default config to: /user_name/.jupyter/jupyter_notebook_config.py

修改配置文件

vim /user_name/.jupyter/jupyter_notebook_config.py

找到c.NotebookApp.allow_remote_access 设置为

c.NotebookApp.allow_remote_access = True

Vim查找

在vim下要查找字符串:

一、全匹配:

1,从上往下查找,比如“string” :   /string

2,从下往上查找,比如“string” : ?string 

二、模糊匹配(正则表达式)

1,. :通配1个字符 ,如 匹配 server, 可以用  /se...r

2,* :通配多个字符,如 匹配 privilege,可以用 p*ge

三、快速查找

  1. Shift + * :让光标停留在想要查找的单词的任意一个字母上面, 然后输入 Shift + * ,即可快速选中该单词,并且通过 n  或  N 进行上一个或下一个的匹配。\
  2. yw :让光标停留在单词的第一个字母上, 然后输入yw拷贝该单词, 然后输入 / (Ctrl + R) 0 (即 /”0),回车, 就查找到了第一个匹配的单词, 并且通过 n  或  N 进行上一个或下一个的匹配。