Skip to content

Commit

Permalink
docs: update Jupyter notebook server README with token info
Browse files Browse the repository at this point in the history
  • Loading branch information
ensorrow committed Nov 13, 2024
1 parent d18b4ad commit 6417ff0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/notebook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ c.ServerApp.allow_origin = "*"
c.ServerApp.allow_remote_access = True
c.ServerApp.allow_root = True
c.ServerApp.ip = '0.0.0.0'
c.IdentityProvider.token = ''
c.IdentityProvider.token = '<YOUR_TOKEN>'
```

运行 `jupyter server` 启动服务,将服务地址配置到 `notebookServerHost` 字段即可:
运行 `jupyter server` 启动服务,将服务地址配置到 `notebookServerHost` 字段、token 信息填到 `notebookServerToken` 字段即可(token 设置为空字符串时可不填)

```typescript
renderApp(
Expand All @@ -25,6 +25,7 @@ renderApp(
opts: {
// ...
notebookServerHost: 'localhost:8888',
notebookServerToken: '<YOUR_TOKEN>',
},
}),
);
Expand Down

0 comments on commit 6417ff0

Please sign in to comment.