LoginSignup
3
3

More than 3 years have passed since last update.

JupyterLabでのtqdmがめんどくさい

Posted at

はじめに

tqdmとjupyterlab, pandasを合わせて使うといつもつまづくので、まとめておきます。

環境

Python: 3.7

インストール

pip3 install tqdm jupyterlab

諸々のインストール

pip3 install ipywidgets
jupyter nbextension enable --py --sys-prefix widgetsnbextension
jupyter labextension install @jupyter-widgets/jupyterlab-manager

サンプル

import pandas as pd 
from tqdm import tqdm, tqdm_notebook

tqdm_notebook.pandas() # コメントが必要ならdesc='hoge'とする
df = pd.DataFrame([[1, 2, 3], [1, 2, 3], [1, 2, 3]])
df.progress_apply(sum)

参考

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3