UPDATE

上级 9b4d4e42
run = "pip install -r requirements.txt;jupyter lab --ip=0.0.0.0 --allow-root --NotebookApp.tornado_settings='{\"headers\": {\"Content-Security-Policy\": \"frame-ancestors 'self' *\"}}'"
run = "pip install -r requirements.txt;jupyter lab --ip=0.0.0.0 --allow-root --NotebookApp.tornado_settings='{\"headers\": {\"Content-Security-Policy\": \"frame-ancestors 'self' *\"}}' --NotebookApp.cookie_options='SameSite=None Secure=False' "
[env]
VIRTUAL_ENV = "/root/${PROJECT_DIR}/venv"
......
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "cb7862db-f193-4273-9ce5-46cecf57a4a6",
"metadata": {},
"outputs": [],
"source": [
"print(123)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "717bc011-c505-422c-9e8a-538981ba2a65",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"name": ""
}
},
"nbformat": 4,
"nbformat_minor": 5
}
c.ServerApp.ip = '0.0.0.0'
c.ServerApp.allow_root = True
# c.NotebookApp.token = '123456789'
c.NotebookApp.tornado_settings = {
'headers': {
'Content-Security-Policy': "frame-ancestors 'self' *"
}
}
c.NotebookApp.cookie_options = {'SameSite': 'None', 'Secure': False}
c.NotebookApp.allow_origin = '*'
c.NotebookApp.trust_xheaders = True
c.NotebookApp.allow_origin_pat = ".*"
c.NotebookApp.allow_credentials = True
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册