jupyter 配置文件 设置(centos)

首先执行下面一条命令  生成 jupyter notebook的配置文件

jupyter notebook --generate-config

 

 

进入路径修改配置

 

 

绑定ip

修改

## The IP address the notebook server will listen on.
#  Default: 'localhost'
# c.NotebookApp.ip = 'localhost'

 

## The IP address the notebook server will listen on.
#  Default: 'localhost'
c.NotebookApp.ip = 'your ip address'

 

 

设置启绑定端口
## The port the notebook server will listen on (env: JUPYTER_PORT).
#  Default: 8888
# c.NotebookApp.port = 8888

## The port the notebook server will listen on (env: JUPYTER_PORT).
#  Default: 8888
c.NotebookApp.port = port

 

 

关闭开启浏览器

 

修改

# Whether to open in a browser after starting. The specific browser used is
#  platform dependent and determined by the python standard library `webbrowser`
#  module, unless it is overridden using the --browser (NotebookApp.browser)
#  configuration option.
#  Default: True
# c.NotebookApp.open_browser = True

 

 

# Whether to open in a browser after starting. The specific browser used is
#  platform dependent and determined by the python standard library `webbrowser`
#  module, unless it is overridden using the --browser (NotebookApp.browser)
#  configuration option.
#  Default: True
c.NotebookApp.open_browser = False

 



上一篇:手机上利用python进行数据分析——创建自己的远程jupyter notebook


下一篇:linux服务器搭建之(三):在服务器上配置jupyter lab