温州网站建设温州,优质网站建设是哪家,佛山app定制,青岛网站建设公司报价nbclassic 经典版
新版的 jupyter notebook 太丑了。 最难受的是字体太小了。 我还是喜欢老版本的 jupyter notebook.
安装经典版: pip install nbclassic 启动经典版: jupyter server 或是 jupyter nbclassic 参考来源: https://github.com/jupyter/nbclassic
jupyter note…nbclassic 经典版
新版的 jupyter notebook 太丑了。 最难受的是字体太小了。 我还是喜欢老版本的 jupyter notebook.
安装经典版: pip install nbclassic 启动经典版: jupyter server 或是 jupyter nbclassic 参考来源: https://github.com/jupyter/nbclassic
jupyter notebook 设置黑色背景 pip install jupyterthemes jt -l 列出 jt -h 帮助 jt -T -N 显示 toolbar 和文件名 jt -t monokai -T -N # 使用 sublime 风格 jt -t onedork -T -N # 使用 atom 主题 jt -r 重置默认主题
jt -t monokai -fs 115 -nfs 125 -tfs 115 -dfs 115 -ofs 115 -cursc r -cellw 80% -lineh 115 -altmd -kl -T -N
魔法命令
%%timeit带 it, 把代码运行很多遍 会运行很久 %%time 只运行一次。 对单元格的代码计算用时。 %timeit 一个百分号 % 也是多次运行很耗时
注意一点 不要使用 it !!! %lsmagic 查看一些内建的的快捷键。 比如 %matplotlib inline%%HTML 可以直接渲染 HTML代码比如插入图片视频%%timeit -r 1 -n 1 单元格计时。%timeit 单行计时。 arr? max? 可以直观地查看数据类型帮助文档以及例子 arr?? 可以阅读相关源码
安装
新建一个conda 环境后需要安装 jupyter notebook 以及相关的插件
直接运行以下命令
import os os.system(pip install jupyter notebook)
os.system(pip install jupyter_contrib_nbextensions)
os.system(jupyter contrib nbextension install --user)
os.system(pip install jupyter_nbextensions_configurator)配置
修改自动保存文件的 【时间间隔】, 防止浏览器频繁闪烁。 打开这个文件: C:\Users\Administrator.jupyter\jupyter_notebook_config.py
添加 R 环境 conda install r-essentials conda install r r-essentials --channel conda-forge conda install r- --channel conda-forge 老哥留步支持一下。