Jupyter Snippet
作者:
iidx | 来源:发表于
2020-02-13 12:34 被阅读0次
持久配置信息
1. 使用tqdm
# 安装tqdm
pip install tqdm
# 安装jupyter notebook
pip install notebook
# 安装插件
pip install ipywidgets
# 启用插件
jupyter nbextension enable --py widgetsnbextension
# 启动笔记本
jupyter notebook &
from tqdm import tqdm_notebook
import time
for i in tqdm_notebook(range(100),desc='demo:'):
time.sleep(0.01)
临时设置
显示每个变量
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
本文标题:Jupyter Snippet
本文链接:https://www.haomeiwen.com/subject/fqvkfhtx.html
网友评论