3/01/2022

jupyter notebook, update 1 line printed string, python

 


refer to code.

...

from IPython.display import display

cnt=0
dh = display('Test2',display_id=True)
while True:
cnt += 1
dh.update(f'cnt:{cnt}') #print cnt and update
if cnt>100:
break

...


Thank you.

www.marearts.com

๐Ÿ™‡๐Ÿป‍♂️

No comments:

Post a Comment