简体   繁体   中英

Jupyter notebook load updated package

When I update a basic pack on cmd:

pip install --upgrade a=1.0.7 

But when I run the code:

import a
print(a.__version__)

outputs:

1.0.8

It doesn't have any change even if I refresh this notebook unless I reboot. But it will give up all my data in flush. Do you have any method help?

Does reloading the module help?

See https://www.geeksforgeeks.org/reloading-modules-python/ for info how to do it depending on your python version. Up to date documentation https://docs.python.org/3/library/importlib.html#importlib.reload on the python site.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM