|NO.Z.00004|——————————|Deployment|——|Hadoop&Arithmetic环境部署.v04|——|Arithmetic.v04|Jupyter交互程序:Jupyter插件配置|

一、指定默认启动目录
### --- 查看jupyter_noteboot_config.py配置文件所在地址

~~~     # 查看jupyter_noteboot_config.py配置文件所在地址
C:\Users\Administrator>jupyter notebook --generate-config
Overwrite C:\Users\Administrator\.jupyter\jupyter_notebook_config.py
### --- 使用pycharm打开配置文件编辑

~~~     # 修改配置文件jupyter_noteboot_config.py,指定jupyter默认启动目录
~~~     # 第391~393
## The directory to use for notebooks and kernels.
#  Default: ''
c.NotebookApp.notebook_dir = 'E:/NO.Z.60000.Arithmetic.project'
### --- 启动jupyter模块

~~~     # 启动jupyter模块
C:\Users\Administrator>jupyter notebook
~~~     # 输出参数:
    To access the notebook, open this file in a browser:
        file:///C:/Users/Administrator/AppData/Roaming/jupyter/runtime/nbserver-9848-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=d5b1b94ad7cad9948fe7ae1cfe557f253f18746d086ad44b
     or http://127.0.0.1:8888/?token=d5b1b94ad7cad9948fe7ae1cfe557f253f18746d086ad44b
### --- 通过浏览器访问:

~~~     http://localhost:8888/?token=d5b1b94ad7cad9948fe7ae1cfe557f253f18746d086ad44b
二、安装jupyter插件
### --- 安装插件:jupyter_contrib_nbextensions

~~~     # 安装插件jupyter_contrib_nbextensions
~~~     # 用 pip 安装,二选一
C:\Users\Administrator>pip install jupyter_contrib_nbextensions  -i https://pypi.tuna.tsinghua.edu.cn/simple
~~~     # 或用 conda 安装,二选一
C:\Users\Administrator>conda install -c conda-forge jupyter_contrib_nbextensions -i https://pypi.tuna.tsinghua.edu.cn/simple
### --- 安装插件:jupyter_nbextensions_configurator

~~~     # jupyter_nbextensions_configurator
~~~     # 用 pip 安装,二选一
C:\Users\Administrator>pip install jupyter_nbextensions_configurator -i https://pypi.tuna.tsinghua.edu.cn/simple
~~~     # 或用 conda 安装 ,二选一
C:\Users\Administrator>conda install -c conda-forge jupyter_nbextensions_configurator -i https://pypi.tuna.tsinghua.edu.cn/simple
### --- 设置并启动用户

~~~     # 设置并启动用户
~~~     # 设置用户: --User
C:\Users\Administrator>jupyter contrib nbextension install --user
~~~     # 启用用户
C:\Users\Administrator>jupyter nbextensions_configurator enable --user
### --- 运行Jupyter:

~~~     # 运行 Jupyter 以后,在地址栏里输入 http://localhost:8888/nbextensions,直接进入插件界面:
~~~     # 注意:有时候安装完会发现插件点不了,如下图,这时要去掉红框里的√。
C:\Users\Administrator>jupyter notebook
~~~     # 进入插件管理页面:
~~~     http://localhost:8888/nbextensions
### --- 添加相关依赖插件

~~~     Hinterland:代码自动补全
~~~     autopep8: 对单元格里的代码自动排版
~~~     Execute Time,查看单元格的执行时间
~~~     Table of Contents(2),自动目录,需要和 Markdown 配合
~~~     Variable Inspector,显示变量数据


附录一:
### --- Jupyter network插件配置教程

https://blog.csdn.net/j18233653274/article/details/103429137

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

posted on   yanqi_vip  阅读(30)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示