JupyterLab|mac 安装和基础使用

(正在施工👷)

Posted by Elli0t on 2020-07-05

Installing the Jupyter Software

根据教程完成后

1
2
3
╭─ybm911@Mry-Mac ~
╰─$ jupyter notebook
command not found jupyter

使用Homewbrew安装jupyter

brew install jupyter

现在可以启动笔记本了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
╭─ybm911@Mry-Mac ~
╰─$ jupyter notebook
/usr/local/Cellar/jupyterlab/2.1.5/libexec/lib/python3.8/site-packages/traitlets/config/loader.py:795: SyntaxWarning: "is" with a literal. Did you mean "=="?
if len(key) is 1:
/usr/local/Cellar/jupyterlab/2.1.5/libexec/lib/python3.8/site-packages/traitlets/config/loader.py:804: SyntaxWarning: "is" with a literal. Did you mean "=="?
if len(key) is 1:
[I 23:09:48.045 NotebookApp] 把notebook 服务cookie密码写入 /Users/ybm911/Library/Jupyter/runtime/notebook_cookie_secret
[I 23:09:51.457 NotebookApp] JupyterLab extension loaded from /usr/local/Cellar/jupyterlab/2.1.5/libexec/lib/python3.8/site-packages/jupyterlab
[I 23:09:51.457 NotebookApp] JupyterLab application directory is /usr/local/Cellar/jupyterlab/2.1.5/libexec/share/jupyter/lab
[I 23:09:51.461 NotebookApp] 启动notebooks 在本地路径: /Users/ybm911
[I 23:09:51.461 NotebookApp] 本程序运行在: http://localhost:8888/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[I 23:09:51.461 NotebookApp] or http://127.0.0.1:8888/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[I 23:09:51.461 NotebookApp] 使用control-c停止此服务器并关闭所有内核(两次跳过确认).
[C 23:09:51.471 NotebookApp]

To access the notebook, open this file in a browser:
file:///Users/ybm911/Library/Jupyter/runtime/nbserver-12612-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
or http://127.0.0.1:8888/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[I 23:10:00.317 NotebookApp] Shutting down on /api/shutdown request.
[I 23:10:00.318 NotebookApp] 关闭 0 服务
╭─ybm911@Mry-Mac ~
╰─$