c.NotebookApp.notebook_dir = u'/media/data1/jupyter'
c.NotebookApp.allow_remote_access = True
c.NotebookApp.open_browser = False
c.NotebookApp.password = 'sha1:dca85e0da2fd:fb5e2ccb21178554bbc19b84aa6717a64fa2478b'
c.NotebookApp.port = 2188
c.NotebookApp.password_required = True
c.NotebookApp.allow_origin = '*'
# 这一段是为了一会能用<iframe>在html里嵌入jupyter。http://127.0.0.1:5500/是html的ip,如果你已经有自己的网站,这里就放你想嵌入jupyter的那个网页的网址。
c.NotebookApp.tornado_settings = { 'headers':
{ 'Content-Security-Policy': "frame-ancestors http://172.16.0.10:2191/ http://bigdata.zynpgroup.cn:2191/ http://172.16.0.9:2191/ http://172.16.0.15:2188/ http://127.0.0.1:2188 http://localhost:2188 'self' "
}
}