From d918e462eecd67eb8386fd6da155248c135013b9 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Thu, 20 May 2021 15:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20Jupyter=20Notebook=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Docker_TensorFlow_Jupyter_环境搭建.md | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Software/Applications/Tensorflow/Docker_TensorFlow_Jupyter_环境搭建.md b/Software/Applications/Tensorflow/Docker_TensorFlow_Jupyter_环境搭建.md index 76bb00e..3eb466a 100644 --- a/Software/Applications/Tensorflow/Docker_TensorFlow_Jupyter_环境搭建.md +++ b/Software/Applications/Tensorflow/Docker_TensorFlow_Jupyter_环境搭建.md @@ -9,7 +9,9 @@ docker run -t -p 1008:8888 -e JUPYTER_ENABLE_LAB=yes --name=tensorflow --privile docker run -t -p 1008:8888 -e JUPYTER_ENABLE_LAB=yes --name=tensorflow --privileged -v :/home/jovyan jupyter/tensorflow-notebook:ubuntu-18.04 ``` -## 2.使能插件 +之后通过浏览器访问对应 IP:Port 即可。 + +## 2.使能 Jupyter Lab 插件 settings->Advanced Settings Editor->Extension Manager @@ -22,3 +24,25 @@ settings->Advanced Settings Editor->Extension Manager ``` 然后 Save User Settings,刷新网页。侧边栏会显示“插件选项”在其中可进行搜索、安装和卸载等插件管理操作。 + +## 3.Jupyter Notebook 配置 + +```bash +docker exec -it pip install jupyter_contrib_nbextensions +docker exec -it jupyter contrib nbextension install --user --skip-running-check +# 重启容器 +docker stop +docker start -a +``` + +访问 Jupyter Notebook->Nbextensions,勾选: + +1. Highlight selected word +2. highlighter +3. jupyter-js-widgets/extension +4. Table of Contents +5. contrib_nbextensions_help_item +6. Hinterland +7. jupyter-matplotlib/extension +8. Nbextensions dashboard tab +9. Nbextensions edit menu item