0
点赞
收藏
分享

微信扫一扫

更换jupyter notebook界面风格以及方便python解释内核


切换午夜主题

关于jupyterthemes的详细配置 可以点 ​​git jupyterthemes​​

conda activate base  # install jupyterthemes
pip install jupyterthemes
pip install --upgrade jupyterthemes

jt -t onedork -cellw 1400 # onedork为主题名字,cellw调整cell的width

想查看其他主题效果可以点​​Jupyter 各种主题(附图)​​ 中间登录jupyter notebook可能会报错,例如我这里jupyter服务端显示​​ImportError: cannot import name 'create_prompt_application'​​,是因为原因:prompt-toolkit版本不对

安装符合要求的版本即可,如pip3 install prompt-toolkit==1.0.15。百度一下都可以解决。

效果如下:

更换jupyter notebook界面风格以及方便python解释内核_python

方便更换python内核

激活想要使用的环境

conda python36
pip install ipykernel
#Link your environment with Jupyter
python -m ipykernel install --user --name=python36

可以看到,我们的内核已经添加进来啦

更换jupyter notebook界面风格以及方便python解释内核_python_02


​​参考​​


举报

相关推荐

0 条评论