jupyter notebook提示功能与主题


第一步:在anaconda中的Anaconda Prompt的root(或者base)环境下依次运行以下命令,在其他环境下发现没有效果

命令1:

pip install jupyter_contrib_nbextensions

jupyter contrib nbextension install --user

命令2:

pip install --user jupyter_nbextensions_configurator

jupyter nbextensions_configurator enable --user

 

第二步:安装成功会在http://localhost:8888/tree中出现Nbextensions

 

 

点击并勾选Hinteriand,即可开启代码提示功能

 

 

 

更改主题:

1、设置主题和背景

1.1 安装背景

  pip install jupyterthemes

1.2更新主题

  pip install --upgrade jupyterthemes

1.3 查看可用主题

  jt -l

1.4 选择黑色背景monokai,它还支持语法高亮。

  jt -t monokai -f fira -fs 13 -cellw 90% -ofs 11 -dfs 11 -T -N

 

-f(字体)  -fs(字体大小) -cellw(占屏比或宽度)  -ofs(输出段的字号)  -T(显示工具栏)  -N(显示自己主机名)

 

其余参数,大家可以查询文档。

参考 :https://blog.csdn.net/panshangfeng/article/details/100731033

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM