2021-05-14 16:31:22 +08:00
|
|
|
|
# Docker+TensorFlow+Jupyter 环境搭建
|
|
|
|
|
|
2021-05-18 11:46:56 +08:00
|
|
|
|
## 1.安装和配置
|
|
|
|
|
|
2021-05-14 16:31:22 +08:00
|
|
|
|
```bash
|
2021-05-16 20:13:28 +08:00
|
|
|
|
# Tensorflow1
|
2021-05-18 11:46:56 +08:00
|
|
|
|
docker run -t -p 1008:8888 -e JUPYTER_ENABLE_LAB=yes --name=tensorflow --privileged -v <host dir>:/home/jovyan jupyter/tensorflow-notebook:17aba6048f44
|
2021-05-16 20:13:28 +08:00
|
|
|
|
# Tensorflow2(ubuntu-18.04)
|
2021-05-18 11:46:56 +08:00
|
|
|
|
docker run -t -p 1008:8888 -e JUPYTER_ENABLE_LAB=yes --name=tensorflow --privileged -v <host dir>:/home/jovyan jupyter/tensorflow-notebook:ubuntu-18.04
|
2021-05-14 16:31:22 +08:00
|
|
|
|
```
|
2021-05-18 11:46:56 +08:00
|
|
|
|
|
|
|
|
|
## 2.使能插件
|
|
|
|
|
|
|
|
|
|
settings->Advanced Settings Editor->Extension Manager
|
|
|
|
|
|
|
|
|
|
在 User Overrides 中进行修改
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"enabled": true
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2021-05-18 11:48:43 +08:00
|
|
|
|
然后 Save User Settings,刷新网页。侧边栏会显示“插件选项”在其中可进行搜索、安装和卸载等插件管理操作。
|